• Suppose I want to eg. create a view part way through my stored proc. SQL Server will tell me "'CREATE VIEW' must be the first statement in a query batch." In a plain SQL I'd just throw in a GO to terminate the batch before the CREATE VIEW and start a new one.

    Seems to me that's a reason for wanting to be able to use GO in a stored proc. Anyone know what to do about this?