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.
Author |
Topic |
Peter99
Constraint Violating Yak Guru
498 Posts |
Posted - 2012-07-27 : 18:38:34
|
Hi,How to revoke execute permission from public and all database users and applications on certain extended stored procedures. Thanks |
|
Bustaz Kool
Master Smack Fu Yak Hacker
1834 Posts |
Posted - 2012-07-27 : 19:10:42
|
Does this work?[CODE]use master;REVOKE EXECUTE on OBJECT:xp_MyExtProc FROM MyUserName;[/CODE]=================================================Show me a sane man and I will cure him for you. -Carl Jung, psychiatrist (1875-1961) |
|
|
Peter99
Constraint Violating Yak Guru
498 Posts |
Posted - 2012-07-30 : 10:57:06
|
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 |
|
|
Bustaz Kool
Master Smack Fu Yak Hacker
1834 Posts |
Posted - 2012-07-30 : 19:00:26
|
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) |
|
|
|
|
|