To be more accurate, If the batch separator in SSMS is configured as "GO" then SSMS will execute the given TSQL statement "N" times if it is followed by "GO N".
Keep in mind that, GO is not a SQL Server command. It is just a separator that SSMS uses it. Also, remember that you can change the batch separator from GO to something else too.
commented on Sep 1 2011 9:59AM