Link to home
Start Free TrialLog in
Avatar of bibi92
bibi92Flag for France

asked on

script synchronize logins and permissions between principal and mirror servers

Hello,

I search a script to synchronize logins and permissions between principal and mirror servers.

Thanks

Regards
Avatar of Vitor Montalvão
Vitor Montalvão
Flag of Switzerland image

The users are already in both databases, right? You just need to create the logins, correct?
You could create a script for the logins in the principal server and run it in the mirrored server and after that just run the following command for each user in the mirrored database:
EXEC sp_change_users_login 'Auto_Fix', 'UserName'
Avatar of bibi92

ASKER

Thanks but  I search to transfer login or synchronize them
ASKER CERTIFIED SOLUTION
Avatar of Vitor Montalvão
Vitor Montalvão
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial