We have a SQL server that is located in domain 1(DMN1). We are migrating databases in domain 1 to our new SQL Server in domain 2(DMN2).Corporate states that there will be no trust established between each domains. So whatever logins the database has in DMN1 cannot be used in DMN2 anymore. it would take a lot of time to sort out a lot of windows logins in DMN1, get their equivalent login in DMN2 and map them to the right databases. What would be an easier way of doing it? Is it possible to just copy the data in each databases without the security part, and just rebuild the security on each database manually? Can anyone share a non time consuming way of accomplishing this?
Sql-server – How to migrate windows login in from one sql server to another sql server on another domain
migrationSecuritysql-server-2012users
Related Question
- Sql-server – Creating domain user login from another domain
- Sql-server – How to create an ad-hoc domain user on SQL Server
- Sql-server – Migrate all databases from one SQL Server 2005 to another
- Sql-server – Migrating Large Database from SQL Server 2008 to 2014
- Sql-server – How to move SSAS tabular instance databases
- Sql-server – Cannot delete domain login from SQL SERVER 2012
- Sql-server – Get list of databases accessed by a particular SQL Server login
Best Answer
Take a look at the two below scripts I've used for similar needs in the past. You will need to run these on each DB you need to mirror permissions for the two different domain accounts.
You will need to search the results of script #1 for the principal you need to mirror the access which is changing domains, etc. Once you get the logic out you need, run it with the new value of the domain credential from the new domain and then run that logic on each DB.
Use the script #2 query before and/or after if you wish per each DB to check the records for the security principals.
Script 1
source
Script2
source