I have a very simple C# command shell app that executes a sql script generated by SQL Server for scripting schema and data. It\'s blowing up on the \"GO\" statements. Error
As an alternative to massaging the scripts to make them runnable through C#, you could just run them as-is by using the sqlcmd
utility. Lot of details at:
http://technet.microsoft.com/en-us/library/ms180944.aspx
By using sqlcmd, you can script out the execution of any number of your SQL Server generated scripts, without stripping out the Go
statements.