Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Fix all orphaned users in a database

By Harsha Majety,

Description :

When you restore a db on a different machine, users are orphaned ie: there is no login id or password associated with the user (SID differs from machine to machine). This script finds and fixes all orphaned users in a restored database

 

How to use : Run script on the restored database

Total article views: 3125 | Views in the last 30 days: 3
 
Related Articles
FORUM

Restoring Across Servers

Restoring across servers on the same machine

FORUM

Backup and restore

Backup and restore from server to client machine

FORUM

restores

restores

FORUM

restore

restore

FORUM

RESTORE

RESTORE

Tags
orphaned users    
restore    
 
Contribute