An existing database has been rolled out to several clients already.
Now I developed a add on and need to transfer my newly added rows of PK-FK tables to the various target dbs. But I can’t just copy the PKs as the target might already use that specific PK and therefore being in unknown state to me when writing the update script…
Any ideas apart from increasing the PK numbers on the source db by, say ten thousand, hoping it will be high enough not to interfer with the target PKs?
Thanks
I will probably end up
PKs and FKs.
values to the FK tables.
gosh that script is gonna take some time…
Update:
Thanks to Mikael’s comment I found the solution right before my eyes:
and here are the scripts: http://www.morrenth.com/transferring-some-rows-having-.aspx