Hi All,
I would like to know the ans of below question:
Insertion and commit can happen in different order in 2 different tables one in SQL Server 2005 and another in SQL Server 2012 for the same set of data by same set of 2 separate 2005 SSIS ETL?
We were migrated data from SQL Server 2005 to SQL Server 2012. I found few discrepancy in Fact tables for the dimension Key columns which all are actually identity column in Dimension tables and are refereed in FACT tables.
How I did is, we migrated all data from 2005 DB to 2012 DB and then both the DBs were getting loaded in parallel by using 2 same sets of ETLS (SSIS 2005). Here I made mistake for few of the Fact Tables in 2012 DB, Dimension tables I was referring (in SSIS 2005 ETL dimension lookup were referred from 2005 DB and data was getting inserted into 2012 DB Fact tables) to 2005 DB dimensions and then after someday (4 days) I changed it and started pointing all dimension to 2012 DB only in the sets of ETLs which were loading data into 2012 DB.
During these 4 days, whatever new data got loaded in 2005 DB dimensions and 2012 DB dimensions got different value for the Identity column.
Source Data
Emp No | Emp Name | Department |
501 | RAM | IT |
502 | SHIVEN | IT |
503 | RAJ | TESTING |
2005 DB EMP Dimension | |||
Emp Key | Emp No | Emp Name | Department |
701 | 501 | RAM | IT |
702 | 502 | SHIVEN | IT |
703 | 503 | RAJ | TESTING |
2012 DB EMP Dimension | |||
Emp Key | Emp No | Emp Name | Department |
701 | 502 | SHIVEN | IT |
702 | 501 | RAM | IT |
703 | 503 | RAJ | TESTING |
So after migrating all Dimension data both 2005 and 2012 EMP Dimension tables had total 700 records and Max EMP key in both the tables was 700. Next day 3 new records came and got inserted in EMP_DIM table but you can see the above Emp Key for emp Id 501 and 502 is different in 2005 and 2012. How this is possible and how could I handled it?
Thanks Shiven:) If Answer is Helpful, Please Vote