Creating Logins and Users in Azure SQL

This is one of those things that comes up every now and then. Each time I have to go digging to remember the right syntax and steps involved.

Not any more! Today I spent a few extra minutes capturing a slightly re-usable script.

I’ll detect if you’re on master for the login creation, or not on master for user creation.

For further customisation you can comment out / tweak lines before running it.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s