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

Always on availability group sql account

$
0
0

Hello all

I am running a SQL server 2016 always on availability group. To provide access to the databases, i created individual sql accounts for each replicated database. When i fail over all the databases to another node i can no longer access the database . When i check the sql account under logins, and then check user mappings , the sql account is not mapped to the database. In order to get access to the database i have to run the following sql query. After i run this query the sql account is mapped to the database again. How do i keep the sql account mapped to the database after a fail-over to another node?

USE TestHealth
EXEC sp_change_users_login 'Auto_Fix', 'test-svc'


Bulls on Parade


Viewing all articles
Browse latest Browse all 4689

Trending Articles



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