don't mess with your users

If you get an error related to your user after restoring , mirroring db. etc.


Run this:

sp_change_users_login 'auto_fix', N'XXXXXX'

where XXXXXX= your username,


run this under the DB which that user belongs.

Comments

Popular posts from this blog

how can you enable a windows firewall rule for a dynamic dns name or dns address

Bose speaker hack (companion 5) to turn on/off automatically

how to IR remote control via wemos d1 (esp8266) & mqtt & sonoff tasmota