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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to Delete 1.6 million identical rows from a table 1

Status
Not open for further replies.

djhawthorn

Technical User
Mar 4, 2002
641
AU
How can I delete 1.6 million completely identical rows from a table?

I can run a select call and bring them up in the Control Manager, but if I change it to a DELETE syntax, the Control Centre falls over as its basically too much work and it can't handle it.

Is there another way to delete these records?

Alternatively, can we extract all the other records and put them in another (identical) table?

How can I go about this? Help appreciated :)

[auto] MCSE NT4/W2K
 
Try using PvQuery.exe from the COmponent ZOne ( It's a command line utility that goes to the ODBC interface directly. You might also try ODBC Test from the Microsoft ODBC SDK.

Mirtheil
Certified Pervasive Developer
Certified Pervasive Technician
Custom VB and Btrieve development.
 
Pervasive Btrieve is slow to delete. It updates and inserts much faster. If the number of records that you need to retrieve is much less than the records you want to delete you may look at creating a new file and query the records you want to save and send those to the new database. Another program you can use for the same purpose is BtSearch32 at You can do a detailed query of the records you want to retrieve or exclude from the list and then export those to dbase. Then import those into an empty file.

Gil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top