Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4532

AlwaysOn Databases - Synchronizing Users

$
0
0

Hi,

I've used a synchronization script from Microsoft to sync users across two instances of SQL 2012 server in an AlwaysOn Database Availability Group as described here (see method 3):

http://support.microsoft.com/kb/918992

My database is a simple 2 node cluster using a witness share with mixed authentication. Running the sync script works fine - manually created logins are mapped. Users are not mapped to their default database (I've simply opted for the default which maps to the default master database), which I don't think is an issue. The script generates a lot of errors for SIDs already in use (which is what I would expect) as shown in the picture below.

What I would like to know if there's a way I can automate the sync script to copy login details from primary to secondary rather than have to do it manually when there's a server fail over. Ideally I'd like to run the script once a day or once a week.

Thanks


IT Support/Everything


Viewing all articles
Browse latest Browse all 4532

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>