How can I execute the following SQL inside a single command (single execution) through ADO.NET?
ALTER TABLE [MyTable]
ADD NewCol INT
GO
UPDATE [MyTable]
SET [NewCol] = 1
The batch separator GO
is not supported, and without it the second statement fails.
Are there any solutions to this other than using multiple command
executions?