I have a small CLR proc that i use to execute SQL from a file. If the SQL has "GO" in it as it would if SSMS generated
it, it fails with:
Msg 6522, Level 16, State 1, Procedure ExecuteSQLFromFile, Line 0
A .NET Framework error occurred during execution of user-defined routine or ...