Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 Permissions to specific function

Author  Topic 

ampo
Starting Member

6 Posts

Posted - 2009-07-16 : 08:22:47
Hello.

I need to grant permissions to specific scalar function in specific database.
How Can I deny execution from everyone except 3 specific users / logins?

Thanks.

rajdaksha
Aged Yak Warrior

595 Posts

Posted - 2009-07-16 : 08:31:53
GRANT EXECUTE ON OBJECT::[FN_NAME] TO TESTUSER
DENY EXECUTE ON OBJECT ::[FN_NAME] TO GUESTUSER;


-------------------------
R..
Go to Top of Page

rajdaksha
Aged Yak Warrior

595 Posts

Posted - 2009-07-16 : 08:33:15
http://msdn.microsoft.com/en-us/library/ms173724.aspx

-------------------------
R..
Go to Top of Page
   

- Advertisement -