Use the following query on the database of the user.
Alter User [UserName] with login = [loginname]
Bruce Ng's software development blog
An archive of solutions of programming problems I have faced in my career
Use the following query on the database of the user.
Alter User [UserName] with login = [loginname]