Home Products Support Sales Corporate
Products
Performance Monitor
Database Compare
Database Manager
Job Scheduler






Home > Articles > SQL Guide > SQL Statements > GO

GO



Signals the end of a batch of SQL statements in Microsoft SQL Server utilities. It is not a Transact-SQL command. Users must follow the rules for batches. For example, any execution of a stored procedure after the first statement in a batch must include the EXECUTE keyword. The scope of local (user-defined) variables is limited to a batch, and cannot be referenced after a GO command.

 

Example

SELECT *
FROM table1
   INNER JOIN table2 ON table1.c1 = table2.c1
WHERE table1.c1 > 10
ORDER BY table1.c1

GO

 

Tools

Troubleshoot SQL Server Performance


Compare and Sync SQL Server Databases


Import & Export SQL Server Data


Schedule SQL Server Express Backups







Articles

Advantages of SQL Server 64-bit


Understanding SQL Server Blocking & Deadlocks


SQL Server Memory Internals

Privacy Statement License Agreement Articles Site Map         Copyright © 2002-2010 Teratrax Inc. All rights reserved.