Sql-server – the use of GO in SQL Server Management Studio & Transact SQL

sql serverssmstsql

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?

Best Answer

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