Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

EXECTE permission on function Expand / Collapse
Posted Thursday, November 15, 2012 3:05 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Monday, October 26, 2015 10:19 AM
Points: 277, Visits: 1,013

HOw to grant execute permission to all "FUNCTIONS" on the database for particular "USER" ?

please provide the script or command to do that.

Post #1385029
Posted Thursday, November 15, 2012 3:22 AM



Group: General Forum Members
Last Login: Yesterday @ 8:32 AM
Points: 5,847, Visits: 5,817
Create a Role using CREATE ROLE

Then grant execute on the functions to the role GRANT EXECUTE ON .... TO rolename

Then add the user to the role sp_addrolemember rolename, username

Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
When a question, really isn't a question - Jeff Smith
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1 & Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger

Post #1385039
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse