I have had a search through the forums but haven't found exactly the answer I need.
I want to compare the data in 2 Access databases in multiple tables. Does anyone know of a tool like the RedGate SQL compare tool for Access? I could have sworn there was a compare database tool in Access but I haven't been able to find it.
If I have to do it the long way (i.e. write a function) does anyone have any ideas on how to start it?
Background Info:
The data in an Access database was split into 2 separate databases (exactly the same structure). Both databases have been updated with different data. I am now trying to put the 2 databases back to 1.
I have created an insert statement to insert the records of the source table into the destination table but this does not allow for changes that have been made to existing records or possible conflicting records (I need to know details about the latter)
The SQL insert statement generated from a procedure (as this has to be done for 17 different tables) is:
INSERT INTO tblAppraisal([Appraisal ID], [Personal ID], [Date], [Appraiser], [Appraisal Action], [Conditions], [Reviewed], [Reviewer], [Comments], [Action Achieved], [Appraisal Case], [Review Case])
SELECT [Appraisal ID], [Personal ID], [Date], [Appraiser], [Appraisal Action], [Conditions], [Reviewed], [Reviewer], [Comments], [Action Achieved], [Appraisal Case], [Review Case]
FROM tblAppraisal1
and it works fine purely inserting records. So now I just have to figure out how to make sure it doesn't write over any existing data that may have the same primary key.
Appreciate any help
Thanks,
Selene
I want to compare the data in 2 Access databases in multiple tables. Does anyone know of a tool like the RedGate SQL compare tool for Access? I could have sworn there was a compare database tool in Access but I haven't been able to find it.
If I have to do it the long way (i.e. write a function) does anyone have any ideas on how to start it?
Background Info:
The data in an Access database was split into 2 separate databases (exactly the same structure). Both databases have been updated with different data. I am now trying to put the 2 databases back to 1.
I have created an insert statement to insert the records of the source table into the destination table but this does not allow for changes that have been made to existing records or possible conflicting records (I need to know details about the latter)
The SQL insert statement generated from a procedure (as this has to be done for 17 different tables) is:
INSERT INTO tblAppraisal([Appraisal ID], [Personal ID], [Date], [Appraiser], [Appraisal Action], [Conditions], [Reviewed], [Reviewer], [Comments], [Action Achieved], [Appraisal Case], [Review Case])
SELECT [Appraisal ID], [Personal ID], [Date], [Appraiser], [Appraisal Action], [Conditions], [Reviewed], [Reviewer], [Comments], [Action Achieved], [Appraisal Case], [Review Case]
FROM tblAppraisal1
and it works fine purely inserting records. So now I just have to figure out how to make sure it doesn't write over any existing data that may have the same primary key.
Appreciate any help
Thanks,
Selene