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
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 revoke rights to public role - not working...

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 worked
alternative:

you can script out the commands you need to run

select '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.routines

copy the results and run

HTH



--------------------
keeping it simple...
Go to Top of Page
   

- Advertisement -