Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to compare to databases

Status
Not open for further replies.

shanghai2004

Programmer
Dec 16, 2004
37
CA
Dear Experts,

With your help, I successfully used BCP to export data to files(csdata files) from all tables in a database(collation is case sensitive) and then import the csdata files to another database(collation is case insensitive).
Now I need to verify that the data in both databases are the same.
I compare the number of rows in each table. It was done successfully.
Then what I did is export data to files(cidata files) from case insensitive database, then I use Dos command COMP to two compare csdata file with cidata files. More than 90% tables are ok. But a few tables have problems with the order of rows. It is very time consuming by check those tables to verify that it is not data problem but orders. Is there a easy way to compare two databases?
Help please!

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top