I have principal server:A and mirror server:B with DB Name: "DBTest" On the server A there is a username (SQL auth.) call: user1 and is mapped to "DBTest". the Same is on Server B, same username and same DB Name (but is in recovery mode due to mirroring). After Fail-over in Principle Server, the Witness switch the DB to the mirror server and everything is fine. except the user: user1 on the server B is not mapped to the "DBTest" on server B. i should every time reassign manually the user1 to the "DBTest". The same i should do when i switch from server B again to server A.
This issue blocks the systems and applications which are connecting with the DB, because the user1 is not mapped automatically to the DB name after fail-over. please help!
ALTER USER user_name WITH LOGIN = login_name
that will fix the orphan users.