![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
Re: Verify database consistency after mergeby tcf03 (Deacon) |
on Oct 17, 2006 at 03:33 UTC ( #578649=note: print w/replies, xml ) | Need Help?? |
you could just get md5s before and after. I do something similar with two databases that are supposed to be the same. Unfortunately one is informix and one is sql server
so I bind the columns to hashes, and feed the hashref and the db connection off to a sub which gives me ...snip lots of other code... ...snip lots of other code... My main reason for doing it this way is that I have NO unique key, so I rely on several columns together to provide me with a unique key. Because the above code is incomplete its probably useless, but the concept is there. Once you have your two hashes ( before and after ) compare the sums.
Ted -- "That which we persist in doing becomes easier, not that the task itself has become easier, but that our ability to perform it has improved." --Ralph Waldo Emerson
In Section
Seekers of Perl Wisdom
|
|