-
-
Save justinyoo/8f910737a59677bf3f0f7a82787c318a to your computer and use it in GitHub Desktop.
DevOps Pro Tip - Creating Accounts on Azure SQL Database through PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EXECUTE ('CREATE USER [' + @Username + '] FOR LOGIN [' + @Username + '] WITH DEFAULT_SCHEMA=[dbo]') | |
EXECUTE ('GRANT SELECT,INSERT,UPDATE,DELETE ON SCHEMA::dbo TO [' + @Username + ']') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment