If I look at user properties it says "SQL user without login"
I have tried this which has worked in the past:
USE Master
EXEC sp_change_users_login 'Auto_Fix', 'MY_SQL_USER'
I get:
The number of orphaned users fixed by updating users was 0.
The number of orphaned users fixed by adding new logins and then updating users was 0.
So I tried this:
USE MyDatabase
EXEC sp_change_users_login 'Auto_Fix', 'MY_SQL_USER'
I get:
Msg 15600, Level 15, State 1, Procedure sp_change_users_login, Line 237 [Batch Start Line 0]
An invalid parameter or option was specified for procedure 'sys.sp_change_users_login'.
Our community of experts have been thoroughly vetted for their expertise and industry experience.