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
Author
Message
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: Thursday, August 21, 2014 5:20 AM
Points: 273, Visits: 991
Hi,

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


please provide the script or command to do that.


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


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Saturday, November 1, 2014 6:54 AM
Points: 5,221, Visits: 5,118
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
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