0

I created a database then I create a procedure. When I want to alter this database, I got an error while altering this database says:

create/alter must be the first statement in a query batch

1 Answer 1

1

If you have more than one statement to run use 'GO' command:

alter database xyz ...
GO

INSERT INTO myTable() ...
GO

etc

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.