• In SSMS, if you write the statement in 1 line, you get a syntax error:

    print 'Hey what''s going on ?';GO 10

    But changing it to 2 lines works fine:

    print 'Hey what''s going on ?';

    GO 10

    Can somebody explain why GO preceded by a ; gives error?