Skip to content

Instantly share code, notes, and snippets.

@mark-thibault
Created June 9, 2012 02:38
Show Gist options
  • Save mark-thibault/2899164 to your computer and use it in GitHub Desktop.
Save mark-thibault/2899164 to your computer and use it in GitHub Desktop.
SQL Server Fix Error 15023: User already exists in current database.
USE CEDB2
GO
EXEC sp_change_users_login 'Auto_Fix', 'username', NULL, 'password'
GO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment