| Author |
Message |
szara.loring
Joined: 03 May 2012 Posts: 1
|
Posted: Thu May 03, 2012 4:45 pm Post subject: Updating Child Tables on Data Compare |
|
|
I have a situation where I have a reference (parent) table. For Example: City - which has a PK (assigned by the system) and then the city short name, long name, FK to state, etc. I have a child table for Shipping Address. The shipping address has a FK to the City table.
On the data compare - we find that the City PKs are out of sync between the master copy and the environmental copy. So we use data compare to identify and update the City table. For example, city #21 is Houston, Texas in the master but is Anchorage, Alaska in the env. copy. Data compare recognizes this and creates an update script which updates the city table. But now all the shipping addresses in the env. copy that referred to Anchorage now refer to Houston.
Is there any way to have data compare to evaluate which records in the child (shipping address table) to update?
Thanks |
|
| Back to top |
|
 |
eddie davis
Joined: 14 Jun 2006 Posts: 796 Location: Red Gate Software
|
Posted: Thu May 03, 2012 6:55 pm Post subject: |
|
|
Thank you for your post into the forum.
The answer to your question:
| Quote: |
Is there any way to have data compare to evaluate which records in the child (shipping address table) to update?
|
Unfortunately the answer is no, if you synchronize just the one single table.
The data consistency is maintained by comparing and synchronizing BOTH tables in the relationship. Then the data in the target database will be exactly identical to the data in source.
Many Thanks
Eddie _________________ Eddie Davis
Technical Support Engineer
Red Gate Software Ltd
E-mail: support@red-gate.com |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group