• GO should be fine in script files when executed via sqlcmd.

    I'll be damned if I can see where the problem is though if it isn't that.

    Do you get the same error if it's executed in SSMS using SQLCMD mode (Query menu -> SQLCMD Mode)?

    Thanks