Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comparing 2 tables
Message
From
20/09/2007 17:33:38
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01255839
Message ID:
01255855
Views:
26
>I have 2 database with mulitple tables. These are suppose to be identical (ie: backup)
>
>What way would be the most efficient to compare 2 tables to make sure that all fields in each record is the same in both tables.
>
>Thank you in advance for suggestions to accomplish this.

If you need to only know data is exactly same then you could do a select ordered by primary key into 2 new tables. Compare dbf (and fpt) with:

filetostr("table1.dbf")==filetostr("table2.dbf")

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform