Removing SysAdmin role for login

  • 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

  • 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.

    [font="Verdana"]Markus Bohse[/font]

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply