Creating a new User in Azure SQL

by ebarcza 3/31/2020 8:38:00 AM

First Create the Login

-----------------------------------------

CREATE LOGIN Big_Bad_Man WITH PASSWORD = 'SecurePWD' GO

 

Next Create the USER in the target database

--------------------------------------------

CREATE USER [Big_Bad_Man] FOR LOGIN [Big_Bad_Man] WITH DEFAULT_SCHEMA=[dbo]

 

Add to ROLE

-----------------------------------------------

EXEC sp_addrolemember db_owner, 'Big_Bad_Man' GRANT CONNECT TO Big_Bad_Man

Tags:

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen

About the author

Name of author Author name
Something about me and what I do.

E-mail me Send mail

Calendar

<<  June 2021  >>
MoTuWeThFrSaSu
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

View posts in large calendar

Recent comments

Tags

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2021

Sign in