Migrating Persmissions along with Logins to new SQL Server Instance...

I am migrating a set of databases to a new SQL Server instance. Backing up and restoring the databases worked just fine, as did migrating logins with sp_help_revlogin however none of the permissions for the logins were preserved. Is there a way to migrate the permissions along with the logins?

more ▼

asked Nov 24, 2009 at 07:04 PM in Default

noblethraher gravatar image

11 1 1 1

(comments are locked)
10|1200 characters needed characters left

1 answer: sort oldest

The permissions should be with the databases. Perhaps you've lost the association between the server logins and the database users. See if their SIDs are different. If so you can fix them with

ALTER USER <user> with login = <associated login>            


exec sp_change_users_login (check books online for how to use this)            


more ▼

answered Nov 24, 2009 at 07:27 PM

TG gravatar image

1.8k 1 3

OK, thanks. Actually, the problem is that the 'View Server State" permission did not get migrated although all the other permissions did. Any thoughts? Thanks Again...
Nov 24, 2009 at 07:37 PM noblethraher
(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.



asked: Nov 24, 2009 at 07:04 PM

Seen: 1217 times

Last Updated: Nov 24, 2009 at 07:04 PM