Data Compare - Individual inserts
Posted: Mon 19 Nov 2012 05:23
Hi,
I need to compare database tables that use a sequence value in a column.
This value is not transportable between environments.
On the insert I need to include a query to get the next sequence value, thats pretty easy to work around.
But once I have inserted a record into a table I need to run a procedure to update the sequence value table. It is not a valid assumption that the sequence numbers used are truly sequential. ( The first insert may give you sequence # 1 but the 2nd Insert could be #4 as there were 2 other inserts triggered from the first insert. Vendors rules not mine.)
Anyway a bulk insert is not an option and I think I can over come most of these issue if DBForge can generate individual insert statements.
Is generating individual insert statements possible? ie a batch of 1
As a future enhancement could selecting a "post insert action" be included to cater for this exact scenario?
I dont care if the "post insert action" simply creates a place holder so that I can then go through the script and perform a find & replace.
I need to compare database tables that use a sequence value in a column.
This value is not transportable between environments.
On the insert I need to include a query to get the next sequence value, thats pretty easy to work around.
But once I have inserted a record into a table I need to run a procedure to update the sequence value table. It is not a valid assumption that the sequence numbers used are truly sequential. ( The first insert may give you sequence # 1 but the 2nd Insert could be #4 as there were 2 other inserts triggered from the first insert. Vendors rules not mine.)
Anyway a bulk insert is not an option and I think I can over come most of these issue if DBForge can generate individual insert statements.
Is generating individual insert statements possible? ie a batch of 1
As a future enhancement could selecting a "post insert action" be included to cater for this exact scenario?
I dont care if the "post insert action" simply creates a place holder so that I can then go through the script and perform a find & replace.