Skip to content

Instantly share code, notes, and snippets.

@anzekrpic
Created March 24, 2015 13:24
Show Gist options
  • Save anzekrpic/2b08641058221c75bca5 to your computer and use it in GitHub Desktop.
Save anzekrpic/2b08641058221c75bca5 to your computer and use it in GitHub Desktop.
Sample for creating login and user for Azure website
CREATE LOGIN [mySampleWeb]
WITH PASSWORD = N'NePovem';
GO
CREATE USER [mySampleWeb] FOR LOGIN [mySampleWeb] WITH DEFAULT_SCHEMA=[dbo]
GO
EXEC sp_addrolemember 'db_datareader', 'mySampleWeb';
EXEC sp_addrolemember 'db_datawriter', 'mySampleWeb';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment