Back in the early days of sql server, stored procedures were much faster compared to normal queries. This meant that a typical system would host more than 200 stored procedures (hopefully on the same schema). In order to grant execute access to a role or user you can use the following snippet
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
GRANT EXECUTE ON DATABASE::DatabaseName TO SomeRoleOrUser; | |
GRANT EXECUTE ON SCHEMA::dbo TO SomeRoleOrUser; |
No comments:
Post a Comment