http://www.sqlservercentral.com/blogs/mssqlfun/2012/09/25/sql-server-change-batch-separator/

Printed 2014/11/27 02:40AM

SQL Server || Change Batch separator

2012/09/25

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.



Copyright © 2002-2014 Simple Talk Publishing. All Rights Reserved. Privacy Policy. Terms of Use. Report Abuse.