Last active
March 26, 2021 16:59
-
-
Save besteban1989/9ad13d0ba26deb8004610b8970aa94b1 to your computer and use it in GitHub Desktop.
[Azure SQL Snippets]
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
-- Add an Azure AD user, make sure your connection is set to the target database | |
CREATE USER [[email protected]] FROM EXTERNAL PROVIDER | |
GO | |
ALTER ROLE db_datareader ADD MEMBER [[email protected]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment