-
-
Save justinyoo/29d2c173d7c76838be44b329615bd4d2 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 ('ALTER ROLE [db_owner] ADD MEMBER [' + @Username + ']') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment