Tuesday 3 November 2015

[Azure solved] The CREATE USER statement must be the only statement in the batch

I was creating multiple users in sql management editor with syntax as shown in figure but i was getting error "The CREATE USER statement must be the only statement in the batch".


I changed few words and it worked for me you can see, how i am using GO statement in each line of code to execute all syntax in a batch.

Solution