Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.20 KB | None | 0 0
  1. -- SQL Server 2008: Works
  2. -- SQL Server 2005: Errors with "Incorrect syntax near 'sp_help'"
  3. DECLARE @SQL NVARCHAR(256)
  4. SET @SQL = 'sp_help @obj'
  5. EXECUTE sp_executesql @SQL, N'@obj NVARCHAR(100)', 'sp_help'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement