DBISAM的DAT表的修复问题(200分)

Z

z1234

Unregistered / Unconfirmed
GUEST, unregistred user!
我在我的程序中使用DBISAM来替代BDE,确实程序小了很多。但是时不时用户操作失误、
或停电之类小错误后,DAT表就被损坏了无法打开,就是将之前的备份拷贝回去也不行。
如何在程序中将其修复?或其它解决方案[:
 
独占,关闭数据库执行
table.RepairTable
 
1)关闭所有对这个表的操作
打开Database System Utility
Utilities->repair
选择表就可以了!

2)
begin
with MyDBISAMTable do
begin
DatabaseName:='d:/temp';
TableName:='customer';
if Exists then
begin
if RepairTable then
ShowMessage('Table was valid')
else
ShowMessage('Table was corrupted');
end;
end;
 
你们所说的我早已用过,这只能解决一些很小的问题。碰上大错根本没用。我现在只能将其
导出至TXT文件中做备份。但是如果碰到数据多速度就很慢了。
 
常见问题是报8961表头错误
 
顶部