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 2005 Forums
 SQL Server Administration (2005)
 Doubt in assigning/removing roles to an user for a

Author  Topic 

ganeshkumar08
Posting Yak Master

187 Posts

Posted - 2012-04-17 : 02:59:03
Hi All,

I Have a user say MYUSER, MYUSER has all permission(db_owner, dbcreator, sysadmin) to all databases. I need to remove those permissions and give only datareader and datawriter permission. How to do it.

Thanks
Ganesh

Solutions are easy. Understanding the problem, now, that's the hard part

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2012-04-17 : 15:20:15
using SSMS, expand the security node, uncheck the roles you don't want in the server roles page.

Then go to each database, expand the security nodes there and uncheck db_owner database role.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-04-17 : 16:20:01
or use sp_droprolemember system proc if you want to do this in t-sql

http://msdn.microsoft.com/en-us/library/ms188369.aspx

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -