Here are the details of the production environment:
I have 2 serevrs2 serevrs
, A1A1
and A2A2
.
I have completely transfertransfered 100 users logins from server A1A1
to A2A
2.
Server A1Server A1
contains 5 DATABASES5 DATABASES
. But I moved only 2 databases from A1A1
to A2A2
during the migration of databases from server A1 to Server A2.
I want to drop the users, who are not required on server A2A2
, because of remaining databases which were not migrated on it.
Please help with any scripts or dmvs to identify which users are not required on server A2A2
and thereby dropping them.
If a user has access to multiple databases, how can we remove the login of that user whose concerned database was not migrated from server A1A1
to A2A2
.
Thanks in advance, any valuable suggestions would be helpful for our POC.
Thanks very much again.