GO is not a SQL keyword.
It’s a batch separator used by client tools (like SSMS) to break the entire script up into batches
You’ll have to break up the script into batches yourself or use something like sqlcmd with “-c GO” or osql to deal with “GO”
More Related Contents:
- Using a variable for table name in ‘From’ clause in SQL Server 2008
- SQL Identity (autonumber) is Incremented Even with a Transaction Rollback
- What’s a good way to trim all whitespace characters from a string in T-SQL without UDF and without CLR?
- Correct use of transactions in SQL Server
- Does End Using close an open SQL Connection
- Does this code prevent SQL injection?
- TSQL md5 hash different to C# .NET md5
- How do I write LINQ’s .Skip(1000).Take(100) in pure SQL?
- How can you name the Dataset’s Tables you return in a stored proc?
- Implementing transactions over multiple databases
- Generating sql code programmatically
- Will ANSI JOIN vs. non-ANSI JOIN queries perform differently?
- Convert Month Number to Month Name Function in SQL
- How to do SQL Like % in Linq?
- Multiple INSERT statements vs. single INSERT with multiple VALUES
- Limit on the WHERE col IN (…) condition
- Removing leading zeroes from a field in a SQL statement
- Getting result of dynamic SQL into a variable for sql-server
- Better techniques for trimming leading zeros in SQL Server?
- Update primary key value using entity framework
- SQL error: Incorrect syntax near the keyword ‘User’
- SQL Server SELECT into existing table
- SQL Select Upcoming Birthdays
- How can I include null values in a MIN or MAX?
- How to solve “unable to switch the encoding” error when inserting XML into SQL Server
- How to build RUNAS /NETONLY functionality into a (C#/.NET/WinForms) program?
- Unable to load DLL ‘SqlServerSpatial.dll’
- Date serial in SQL?
- SQL Server: +(unary) operator on non-numeric Strings
- Parameterise table name in .NET/SQL?