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