Last active
December 17, 2015 15:59
-
-
Save tax/5635087 to your computer and use it in GitHub Desktop.
Role to be able to only execute stored procedure 1. Create login on server2. run code3. Add login with role to specific DB
This file contains hidden or 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
| USE [mydb] | |
| GO | |
| /****** Object: DatabaseRole [db_executestoredprocedures] Script Date: 05/23/2013 12:10:19 ******/ | |
| CREATE ROLE [db_executestoredprocedures] AUTHORIZATION [dbo] | |
| GO | |
| -- 1b - Grant permissions | |
| GRANT EXECUTE TO db_executestoredprocedures | |
| GO | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment