Last active
February 16, 2018 13:51
-
-
Save richardbasile/ae6c7350c1e557e57b022f9cd5221410 to your computer and use it in GitHub Desktop.
SQL Server - Create User
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 login <user name> with password = '<password>', default_database = <db name>; | |
create user <user name> from login <user name> with default_schema = dbo; | |
alter role <role> add member <user name>; | |
grant showplan to <user name>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment