Relinking users after restore

After restoring, sometimes I found that I have a user in the database, but it’s not linked to a global user.  Found this to work:

sp_change_users_login ‘auto_fix’, ‘SOME_USER’

Oh yeah – I first created the user under the top-most Security folder and then ran this on the specific database.

Found it here.

Leave a comment

Filed under Development

Leave a Reply

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

You are commenting using your 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 )

Connecting to %s