A
Alastair MacFarlane
Dear all,
I have 2 Job logging databases, one live and one backup. The Backup is
nearly a copy of the live database but contains 'posted' Jobs (i.e. jobs
appended to the backup database and deleted from the live.) The client now
states that they sometimes wish to reinstate these jobs (sometimes years
after they have been added to the backup database).
I can use a mixture of Append and delete queries to move the data back to
the 'Live' database. The problem is that the Primary Key of the table on the
one side will change so that Referential Integrity will not allow me to add
a record in the many side without an associated record in the one side. As
far as I can see the only way I can achieve my goal is to find out what the
newly created PK is and alter the records on the backup database prior to
appending them to the live database. This is messy and I wonder if I am
missing something really simple here.
Thanks again for the group's help.
Alastair MacFarlane
I have 2 Job logging databases, one live and one backup. The Backup is
nearly a copy of the live database but contains 'posted' Jobs (i.e. jobs
appended to the backup database and deleted from the live.) The client now
states that they sometimes wish to reinstate these jobs (sometimes years
after they have been added to the backup database).
I can use a mixture of Append and delete queries to move the data back to
the 'Live' database. The problem is that the Primary Key of the table on the
one side will change so that Referential Integrity will not allow me to add
a record in the many side without an associated record in the one side. As
far as I can see the only way I can achieve my goal is to find out what the
newly created PK is and alter the records on the backup database prior to
appending them to the live database. This is messy and I wonder if I am
missing something really simple here.
Thanks again for the group's help.
Alastair MacFarlane