Working with sp_executeSQL? You’ve probably seen the Incorrect Syntax Near Go error at one time or another.
I created a quick video showing what happens when you use GO inside of an sp_executesql statement:

Incorrect Syntax Near go in SQL Server from Rudy Rodarte on Vimeo.

If you still have questions, please leave a comment and we can work through your particular issue.


Rudy Rodarte is a SQL Server Database professional based in Austin, TX. Over his career, Rudy has worked with SSRS, SSIS, performance tuning troubleshooting. When away from Keyboard, Rudy goes to Spurs and Baylor Bear sporting events.

More Posts - Website - Twitter