Home » SQL Server » SQL Server || Change Batch separator

SQL Server || Change Batch separator

SQL Server utilities interpret GO as a keyword to separate the batch. GO is not a Transact-SQL statement. it is a keyword or command recognized by the sqlcmd and osql utilities and SQL Server Management Studio Code.

Customizing Changing the Batch separator in SSMS

Steps to customize the batch separator in SSMS:

  1. Launch SSMS
  2. Go to Tools –> Options
  3. Click on the “Query Execution” node
  4. Notice that we have an option to change the Batch Separator
  5. Change the batch separator
  6. Click “OK”

New Batch Seprator working Old Batch “GO” goes unknown word

Customizing Changing the Batch separator in SQLCMD

You need to use SQLCMD option –c to set new batch separator.

Leave a Reply

Join us on Facebook

microsoftcommunitycontributor
%d bloggers like this: