Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Removing SysAdmin role for login Expand / Collapse
Author
Message
Posted Friday, March 27, 2009 3:32 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, July 12, 2012 2:53 AM
Points: 8, Visits: 58
Hi,

I have a SQL account with the name SCBAdmin with SysAdmin role. Now i want remove the SysAdmin role for this SCBAdmin login using SQL scripts.
Please any one help me with this.

Also how to change the owner of the SQL jobs.

I am using SQL 2005 with SP2.

Thanks
Manoj
Post #684840
Posted Friday, March 27, 2009 3:47 AM
SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Wednesday, July 16, 2014 6:13 AM
Points: 4,432, Visits: 4,167
Simply use sp_dropsrvrolemember to remove any login from a serverrole like sysadmin.
EXEC sp_dropsrvrolemember 'yourLogin', 'sysadmin'

With sp_update_Job you can change the owner of a job.


Markus Bohse
Post #684848
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse