• Just for the information to Know;

    Go : Signals the end of a batch of Transact-SQL statements to the SQL Server utilities.

    From the below you may get the idea:

    declare @i int

    set @i=1

    select @i

    GO

    select @i /*will fail since the batch has been complited*/

    Thanks
    Parthi