SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Extended SPs
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Peter99
Constraint Violating Yak Guru

471 Posts

Posted - 07/27/2012 :  18:38:34  Show Profile  Reply with Quote
Hi,

How to revoke execute permission from public and all database users and applications on certain extended stored procedures.

Thanks

Bustaz Kool
Flowing Fount of Yak Knowledge

USA
1429 Posts

Posted - 07/27/2012 :  19:10:42  Show Profile  Reply with Quote
Does this work?
use master;
REVOKE EXECUTE on OBJECT:xp_MyExtProc FROM MyUserName;


=================================================
Show me a sane man and I will cure him for you. -Carl Jung, psychiatrist (1875-1961)
Go to Top of Page

Peter99
Constraint Violating Yak Guru

471 Posts

Posted - 07/30/2012 :  10:57:06  Show Profile  Reply with Quote
Is there any way to implement this through server policy. Instead of executing command for each sp, just select and execute through policy base management? Just like to implement base line. Thanks
Go to Top of Page

Bustaz Kool
Flowing Fount of Yak Knowledge

USA
1429 Posts

Posted - 07/30/2012 :  19:00:26  Show Profile  Reply with Quote
You could write a script that would generate and/or execute the necessary individual REVOKE statements.

=================================================
Show me a sane man and I will cure him for you. -Carl Jung, psychiatrist (1875-1961)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.24 seconds. Powered By: Snitz Forums 2000