Home > SQL server DBA administration > How we can move the login which has Sysadmin role.

How we can move the login which has Sysadmin role.


We are using sp_help_revlogin to make login script but it never enable the login which has sysadmin role. It is very common problem during server migration. We are us the below technique to solve the issue . Workaround: How you can enable the sysadmin role correctly for all the login which has sysadmin role. select name ,’sp_addsrvrolemember [‘ +name + ‘], sysadmin’ from master.sys.server_principals where IS_SRVROLEMEMBER (‘sysadmin’,name) = 1 The above script creates the command in old server which need to execute to the new server.

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: