FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour DBF Repair Tools
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
DBF Repair Tools
Posted: Wed Nov 08, 2023 08:37 PM

A client has a corrupted database. a file is showing 197,000 records but only about 10,000 are actually valid. The rest display as blank.

First I utilized DBF Doctor to do a repair but it only found about 30 bad records.

Then I used DBU to filter out only valid records, and tried to export them. I used the filter .NOT. EMPTY( fieldname ). However they must have something embedded in there because the filter doesn't work.

I used Advantage Architect to also try to filter out the blanks, but that doesn't eliminate them either.

Does anyone have suggestions for a really good DBF file repair tool ? Lots claim to be but I think they all do the same thing. Back in the DOS days we had a great one but it never transitioned to Windows ( or 32 bit ).

I appreciate your input.

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: DBF Repair Tools
Posted: Thu Nov 09, 2023 04:22 AM

Tim, What tool are you referring to?

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: DBF Repair Tools
Posted: Thu Nov 09, 2023 04:31 AM

There are software programs that fix .dbf files that have been corrupted. There are several on the internet but some may not be legitimate.

Repairs might including repair of headers, removing non data characters, removing false end of file markers, etc. They also can re-align records are offset.

Most errors are OS/disk caused, often from adding in sectors from the drive that don’t belong.

Sent from my iPhone using Tapatalk

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 42
Joined: Fri Oct 21, 2005 02:12 PM
Re: DBF Repair Tools
Posted: Thu Nov 09, 2023 04:34 AM
Hello Tim
Take a look here: http://www.dbf2002.com/dbf-recovery/


Besst Regards
Sakis
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: DBF Repair Tools
Posted: Mon Nov 13, 2023 06:45 PM
Tim,
Then I used DBU to filter out only valid records, and tried to export them. I used the filter .NOT. EMPTY( fieldname ). However they must have something embedded in there because the filter doesn't work.
I would write a routine to replace all the fake blank fields with all real blanks. Of course, you first need to find out which non-blank characters are showing visually as blanks.

Finally, you can add a routine to check for those offending characters in the Save() method so each time a record gets saved it is fixed before saving.

James 
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 244
Joined: Mon Jun 05, 2006 09:39 PM
Re: DBF Repair Tools
Posted: Mon Nov 13, 2023 11:37 PM

Tim, how are you?

Are the DBFs you refer to being managed by the Advantage Database Server?

If it's ads, do you use free tables or a data dictionary?

Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: DBF Repair Tools
Posted: Tue Nov 14, 2023 01:29 AM

In this case, no. Using data architect, I tried filtering for not empty but it still includes them

Sent from my iPhone using Tapatalk

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: DBF Repair Tools
Posted: Fri Nov 17, 2023 10:04 PM

Tim,

Can you tell us which characters aren't visible? Better yet would be a few records that contain the problem characters.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion