TSQL – Orphaned User Script Writer #1, 2016-03-19 Finding Orphaned Users USE [db] GO EXEC sp_change_users_login 'Report' GO Fixing Orphaned Users USE [db] GO EXEC sp_change_users_login 'auto_fix', 'USERNAME' GO SQL Server orphaned userssql serverTSQL