📄 tabsdatabase_repairdatabase.htm
字号:
<html>
<head>
<title></title>
</head>
<!--#include virtual="/inc/header.php"-->
<table width="100%" border="0" cellspacing="0" cellpadding="2" bgcolor="#FFFFFF">
<tr>
<td align="left">
<span style="font-family:Helvetica,Arial; font-size:12pt; color:#000000"><b>TABSDatabase.RepairDatabase</b><span style="font-family:Helvetica,Arial; font-size:12pt; color:#0000FF"><b>
<br>
</b></span><span style="font-family:Helv; font-size:9pt; color:#000000"><span style="font-family:Helv; font-size:9pt; color:#7F0000"><a href=tabsdatabase.htm>TABSDatabase</a></span></span><span style="font-family:Helvetica,Arial; font-size:12pt; color:#000000"><b>
<br>
</b></span></span>
</td>
<td align="right">
<font face="Arial" size="2">
<a href="overview.htm">Top</a>
</font>
</td>
</tr>
</table>
<br><br>
<span style="font-family:Helvetica,Arial; font-size:10pt; color:#000000">Repairs and compacts all data of the database associated with this database component.
<br>
<br>
<b>function</b> RepairDatabase(NewDatabaseFileName: <b>string</b>; <b>var</b> Log: <b>string</b>): Boolean; <b>overload;</b>
<br>
<b>function</b> RepairDatabase: <b>string; overload;</b>
<br>
<br>
<b>Description</b>
<br>
Call RepairDatabase to compact database and repair data corruption that could occur due to hard disk failure, power loss or improper operating system shutdown.
<br>
RepairDatabase returns True if repair completed successfully, the data is completely recovered and there was not any data loss.
<br>
In this case the Log parameter value is blank.
<br>
If some tables were corrupted and the data is partially recovered, RepairDatabase return False and the Log parameter contains a string with the recovering errors list.
<br>
<br>
<b>Note: </b>Repairing a database could be a lengthy process if you are working with large database. Use BeforeRepair, OnRepairProgress and AfterRepair event handlers to display the progress of a database repairing process.
<br>
<br>
</span>
<!--#include virtual="/inc/footer.php"-->
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -