Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- SQL Server 2008: Works
- -- SQL Server 2005: Errors with "Incorrect syntax near 'sp_help'"
- DECLARE @SQL NVARCHAR(256)
- SET @SQL = 'sp_help @obj'
- EXECUTE sp_executesql @SQL, N'@obj NVARCHAR(100)', 'sp_help'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement