Occasionally I’ll need to copy a database over to my dev machine in order to be able to work offline.
USE <Target_Database> EXEC sp_change_users_login 'Update_One', '<Server_User>', '<Database_User>'
This will re-associate the Server Login with the specified Database Login.
Image may be NSFW.
Clik here to view.

Clik here to view.
