Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Stefan Wuebbe
  Where is Stefan Wuebbe?
 Hamburg
 Germany
 Stefan Wuebbe
 To: Alan Tuscano
  Where is Alan Tuscano?
 Manila
 Philippines
 Alan Tuscano
 Tags
Subject: RE: Repair Corrupted Table
Thread ID: 240565 Message ID: 240686 # Views: 38 # Ratings: 1
Version: Visual FoxPro 9 Category: Databases, Tables and SQL Server
Date: Wednesday, September 16, 2009 7:41:48 AM         
   


> Thank You so much Sir. Now, i can see clearly in my head the idea that i wanted to create.
>

You're welcome.


> another Question sir, the tables's original size was 17,396KB and the .cdx file was 14,625KB. After running DBREPAIR, i got a .cdx file with below 11,000KB??
>
> Is the .old cdx file(14,625) reusable, that after repairing the the corrupted table, i could still use the old .cdx file?
>

The code you posted uses the Reindex command - which would kind-of "defragment" the compound index file, which works well usually, and actually can shrink size drastically sometimes.

On the other hand, Reindex might fail if a CDX is "seriously damaged" so that structural infos are missing. If so, you'd need to "Delete Tag All", and then do an "Index On ..." line for each index tag similar to what you originally had done in the Table Designer.



(BTW, I had added a few lines to the previous message in the meantime)



hth
-Stefan



COMPLETE THREAD
Repair Corrupted Table Posted by Alan Tuscano @ 9/15/2009 10:43:17 AM
RE: Repair Corrupted Table Posted by Stefan Wuebbe @ 9/15/2009 10:46:39 AM
RE: Repair Corrupted Table Posted by Alan Tuscano @ 9/15/2009 11:23:58 AM
RE: Repair Corrupted Table Posted by Stefan Wuebbe @ 9/15/2009 3:20:09 PM
RE: Repair Corrupted Table Posted by Alan Tuscano @ 9/16/2009 3:04:33 AM
RE: Repair Corrupted Table Posted by Stefan Wuebbe @ 9/16/2009 6:52:38 AM
RE: Repair Corrupted Table Posted by Alan Tuscano @ 9/16/2009 7:26:31 AM
RE: Repair Corrupted Table Posted by Stefan Wuebbe @ 9/16/2009 7:41:48 AM