Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 about "GO"

Author  Topic 

smile
Starting Member

22 Posts

Posted - 2009-03-06 : 18:15:41
Hello again!

Is "GO" used only in stored procedures or it could be also used in simple queries? When writing an ordinary query, usually I execute it by the button "EXECUTE". If I just type "GO" after the query and press ENTER, it just does not work...

Thanks again!

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2009-03-06 : 18:33:03
Go is a batch separator.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2009-03-07 : 01:34:36
Also refer
http://sqlblogcasts.com/blogs/madhivanan/archive/2008/09/05/fun-with-go.aspx

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -