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

user creation

$
0
0

Hi,

We having an issue with one of our application that uses SQL 2016 AG.

we have an application that using SQL authentication and  has its own configaration program for creating users in DB.

When creating new user in our application config program we can see that user get created in primary Node DB and also we see new use under SQL server login, this new user can access the SQL DB and no problem.

We also see that user get synced to DB on secondary node but new users is not added to the SQL login on the secoundery Node.

Now when we fail over to the secondary node the newly created user cannot login to the application, becuase users is not added to SQL server login, we can add this user manually to the SQL login, but when go to the property of this new user to map access to the database we get error that we cannot do this because user already exist in DB.

How can we add a new user that us SQL authentication to both SQL servers in AG?

Thanks


Shahin


Viewing all articles
Browse latest Browse all 4532

Trending Articles



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