• Look at sp_change_users_login, you can fix much easier this way and is the same for 7 and 2000.