We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8325d55 commit fe3fd63Copy full SHA for fe3fd63
1 file changed
samples/features/security/contoso-clinic/setup/Create-Application-Login.sql
@@ -1,3 +1,9 @@
1
-- Create a non-sysadmin account for the application to use
2
-CREATE LOGIN ContosoClinicApplication WITH PASSWORD = '{Some Strong Password}'
+CREATE LOGIN [ContosoClinicApplication] WITH PASSWORD = <enter a strong password here>
3
+CREATE USER [ContosoClinicApplication] FOR LOGIN [ContosoClinicApplication]
4
+EXEC sp_addrolemember N'db_datareader', N'ContosoClinicApplication'
5
+EXEC sp_addrolemember N'db_datawriter', N'ContosoClinicApplication'
6
+GRANT VIEW ANY COLUMN MASTER KEY DEFINITION TO [ContosoClinicApplication]
7
+GRANT VIEW ANY COLUMN ENCRYPTION KEY TO [ContosoClinicApplication]
8
+
9
0 commit comments