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

user credentails dont work after a failover on secondary server (alwaysOn)

$
0
0

Hello,

I'm new to the alwaysOn feature in SQL server, and we are trying to implement this in a virtual environment with the following scenario:

we have 2 virtual machines that work as a primary and as a secondary server

* in the primary server we restore a Database and run an script that adds a user with it's roles and permissions and also Jobs are created

* in the secondary server we run another script that created the same user as above and it's roles and permission

Now, when the primary server fails, the secondary one now becomes primary but when i try to log in with the user we've created i cannot log in anymore. we have to delete and create the user gain in order for our application to work.

is there a way to avoid doing this? 

thanks

Daniel


Viewing all articles
Browse latest Browse all 4689

Trending Articles



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