What is the use of GO in SQL Server Management Studio & Transact SQL?

tvanfosson picture tvanfosson · Feb 19, 2010 · Viewed 289.8k times · Source

SQL Server Management Studio always inserts a GO command when I create a query using the right click "Script As" menu. Why? What does GO actually do?

Answer

SQLMenace picture SQLMenace · Feb 19, 2010

It is a batch terminator, you can however change it to whatever you want alt text