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

Login are currently logged in Always On when run Agent Job for deletion/creation SID

$
0
0

Dear all,

This thread is related to Sync logins

We run Always on in we have scheduled on daily basis an Agent job that delete all the user and roles and then recreate back. This job runs in every node either primary or secondary.

Seven out of ten executions fails because it locates users currently logged.

How can I solve out (or improve some way) this? I've been testing different scripts for deleting logins that are currently logged unsuccessfully.

Thanks in advance,




Viewing all articles
Browse latest Browse all 4689

Trending Articles



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