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 2005 Forums
 SQL Server Administration (2005)
 Doubt in assigning/removing roles to an user for a
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ganeshkumar08
Posting Yak Master

India
187 Posts

Posted - 04/17/2012 :  02:59:03  Show Profile  Send ganeshkumar08 an AOL message  Reply with Quote
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

USA
5000 Posts

Posted - 04/17/2012 :  15:20:15  Show Profile  Visit russell's Homepage  Reply with Quote
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

India
47189 Posts

Posted - 04/17/2012 :  16:20:01  Show Profile  Reply with Quote
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
  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.16 seconds. Powered By: Snitz Forums 2000