Re: ISO: sql server table comparison utility
- From: "Larry W. Virden" <lvirden@xxxxxxxxx>
- Date: Wed, 22 Sep 2010 12:12:25 -0700 (PDT)
On Sep 21, 1:16 pm, "tom.rmadilo" <tom.rmad...@xxxxxxxxx> wrote:
Is it just differences in data, or has the data model also changed?
Only data has changed. However, the vendor product uses hundreds of
tables. We are trying to trim the number down by ignoring ones that
are used by modules we do not yet use, or that contain data that we
know we don't care to compare. That still leaves quite a few tables
that need to be compared.
We've picked three to start with, just to see the level of effort.
I can tell you that it will be much faster if you can use database
operations for the comparison. It will be several orders of magnitude
faster and will likely be much more accurate. (If you can't use the
built in sql or pl language, probably you can use another language
supported by sql server.)
Because of the volume of tables, and our lack of expertise with the
tables, writing hundreds of sql comparison scripts is more effort that
I expect we are prepared to commit to.
Another possibility is if you could create a dump of each database and
then run a standard diff, this might at least quickly identify how big
a problem you have on your hands.
This is sort of what I am trying - to go to the database, export
specific tables to csv. First problem I hit was that the sql table had
a column with a weird type that doesn't show up when we look at the
table from within the application - whee! When I got around that, I
found that my microsoft tool was out of sync with the actual sql
server database - so now I'm awaiting that upgrade.
Eventually, I'll get a couple CSV files - then I can at least diff
those (and, if needed, use Andreas K's csv module from tcllib to
twittle a bit) to get a rough idea of the differences.
I just had hoped that someone had run into the same idea - develop on
one database instance, then, before migrating that data to production,
generate a report of the differences for the tables that are going to
be migrated...
.
- Follow-Ups:
- Re: ISO: sql server table comparison utility
- From: tom.rmadilo
- Re: ISO: sql server table comparison utility
- References:
- ISO: sql server table comparison utility
- From: Larry W. Virden
- Re: ISO: sql server table comparison utility
- From: tom.rmadilo
- ISO: sql server table comparison utility
- Prev by Date: Re: handling multipart/form-data uploads
- Next by Date: update (idletasks)
- Previous by thread: Re: ISO: sql server table comparison utility
- Next by thread: Re: ISO: sql server table comparison utility
- Index(es):
Relevant Pages
|