Testing database DBF,FPT
Posted: Sun Apr 17, 2016 11:16 am
Hi,
Is some way to test if database is not corrupted before open it by USE ?
I have many databases (about 50000) type Foxpro 2.x and VFP. Some of them is corrupted, can open it, but on some place, some record my application crash because have bad connect between DBF and FPT file (most often memo field)
I tested field by empty(), but also crashed.
If I browse database (DCBROWSE...) and listing in it, crashed if positioning on damaged record.
Solution for repair database I have, (I have DBF Recovery from Hibase group, which works perfectly), but I need some function to test database before process it.
Database will be processed on user page, and it is not good if application crashed anytime without warning, then better will be test if first.
I think, it is not simple problem, because I tested several DBF repairing tools, and not work good, some clear memo, some can not read Foxpro 2.x...
One solution can be , if open dbf file, and by work with if before error notification from alaska can show own notification for example "Database is corrupted, please repair it", .
This can be by control only showint specific error notification, where show some of types error notifiation (in text is str or name of corrupted field )
Is it possible ?
Is some way to test if database is not corrupted before open it by USE ?
I have many databases (about 50000) type Foxpro 2.x and VFP. Some of them is corrupted, can open it, but on some place, some record my application crash because have bad connect between DBF and FPT file (most often memo field)
I tested field by empty(), but also crashed.
If I browse database (DCBROWSE...) and listing in it, crashed if positioning on damaged record.
Solution for repair database I have, (I have DBF Recovery from Hibase group, which works perfectly), but I need some function to test database before process it.
Database will be processed on user page, and it is not good if application crashed anytime without warning, then better will be test if first.
I think, it is not simple problem, because I tested several DBF repairing tools, and not work good, some clear memo, some can not read Foxpro 2.x...
One solution can be , if open dbf file, and by work with if before error notification from alaska can show own notification for example "Database is corrupted, please repair it", .
This can be by control only showint specific error notification, where show some of types error notifiation (in text is str or name of corrupted field )
Is it possible ?