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
Just replace "GO" with "" and it works.
SqlCommand command = new SqlCommand(script.Replace("GO", ""), connection); command.CommandType = CommandType.Text; command.ExecuteNonQuery();