Created
May 15, 2024 13:46
-
-
Save Storager/e3032220c8faecaae6a12e2034b5fc3a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| CREATE DATABASE ${DB_NAME}; | |
| GO | |
| USE ${DB_NAME}; | |
| GO | |
| CREATE LOGIN [${DB_USER}] WITH PASSWORD = '${DB_PASSWORD}', CHECK_EXPIRATION = OFF, CHECK_POLICY = OFF; | |
| GO | |
| CREATE USER [${DB_USER}] FROM LOGIN [${DB_USER}]; | |
| ALTER SERVER ROLE dbcreator | |
| ADD MEMBER [${DB_USER}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment