Fix broken username after database attach

/ Published in: SQL
Save to your folder(s)

Sometimes the first set of parameters don't work so then use the second

Copy this code and paste it in your HTML
  1. EXEC sp_change_users_login 'auto_fix','UserName'
  2. EXEC sp_change_users_login @action = 'auto_fix', @UserName = '<user>', @Password = '<pass>'

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.