About 29,300 results
Open links in new tab
  1. t sql - What is the use of GO in SQL Server Management Studio ...

    The GO command is used to group SQL commands into batches which are sent to the server together. The commands included in the batch, that is, the set of commands since the last GO …

  2. Use of Begin / End Blocks and the Go keyword in SQL Server?

    Apr 25, 2023 · Imagine you are entering in SQL statements on the command line. You don't necessarily want the thing to execute every time you end a statement, so SQL Server does …

  3. sql server - Incorrect syntax near 'GO' - Stack Overflow

    The GO keyword is not T-SQL, but a SQL Server Management Studio artifact that allows you to separate the execution of a script file in multiple batches.I.e. when you run a T-SQL script file …

  4. In SQL Server, when should you use GO and when should you use …

    Sep 13, 2010 · GO is a batch terminator, a semi-colon is a statement terminator. you will use GO when you want to have multiple create proc statements in 1 script because create proc has to …

  5. Execute a large SQL script (with GO commands) - Stack Overflow

    I need to execute a large set of SQL statements (creating a bunch of tables, views and stored procedures) from within a C# program. These statements need to be separated by GO …

  6. How to use rows.Scan of Go's database/sql - Stack Overflow

    Jun 10, 2019 · I use database/sql and define a struct mapping to DB table columns (tag field):

  7. sql - Is there a way to persist a variable across a go ... - Stack …

    Some SQL Statements must be the first statement in a block (the region between GO statements). For example: CREATE PROCEDURE or CREATE FUNCTION must both occur …

  8. What is the difference between ";" and "GO" in T-SQL?

    Oct 4, 2009 · I use ADO.NET as well as the sqlcmd utility to send SQL scripts to SQL Server 2008. What is the difference between using ; and GO to separate chunks of SQL?

  9. What is the difference between ; and GO in stored procedure in …

    The semicolon separates queries, the GO command separates batches. (Also GO is not a T-SQL command, it's a command recognised by the sqlcmd and osql utilities and Management …

  10. .net - Using "GO" within a transaction - Stack Overflow

    Jun 9, 2009 · The issue is not that you cannot use GO within a transaction so much as GO indicates the end of a batch, and is not itself a T-SQL command. You could execute the whole …