Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 6
    Whether you can simply delete all the "GO"s depends on what's in your script. There are certain statements, like CREATE PROCEDURE, that have to be the first statement in the batch (i.e. they must either be on their own, or preceded by a "GO"). Commented Feb 21, 2013 at 22:36
  • This may not be a great solution. The reason for "GO" in the scripts is that people want the rest of the script to continue excecution if the part before "GO" failed. Stripping the GO means that your script will not run as its writers intended. Commented Feb 25, 2013 at 22:09
  • 1
    The answer is incorrect! Just removing "GO" is not enough. You must SPLIT your script into batches and execute them separately. Because that's what the GO command is for. Otherwise you can get problems, as Rory MacLeod said. Commented Jul 14, 2015 at 21:30