Skip to content

Instantly share code, notes, and snippets.

@xximjasonxx
Created January 17, 2022 20:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xximjasonxx/19c5baf33ce18ac6fcb3919a0f0e49db to your computer and use it in GitHub Desktop.
Save xximjasonxx/19c5baf33ce18ac6fcb3919a0f0e49db to your computer and use it in GitHub Desktop.
DROP USER IF EXISTS [id-pocapplication-pojm2j]
GO
CREATE USER [id-pocapplication-pojm2j] FROM EXTERNAL PROVIDER;
GO
ALTER ROLE db_datareader ADD MEMBER [id-pocapplication-pojm2j];
ALTER ROLE db_datawriter ADD MEMBER [id-pocapplication-pojm2j];
GRANT EXECUTE TO [id-pocapplication-pojm2j]
GO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment