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 |
sdiwi
Starting Member
27 Posts |
Posted - 2005-11-17 : 03:49:13
|
hi.i have a misconfigured public role in my database. someone added hundreds of rights instead of adding them to the proper role. so i want to "revoke all to public", the query works, but it does do nothing. is there any other way than doing it manually? |
|
jen
Master Smack Fu Yak Hacker
4110 Posts |
Posted - 2005-11-17 : 03:59:34
|
what you did should have workedalternative:you can script out the commands you need to runselect 'revoke select, insert,update,delete on ' + table_name + ' from public' from information_schema.tables select 'revoke execute on ' + routine_name + ' from public' from information_schema.routinescopy the results and runHTH--------------------keeping it simple... |
 |
|
|
|
|