หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
The Repair method attempts to repair a corrupted database.
Syntax
object.Repair(SourceConnection, DestinationConnection, RepairOption)
Parameters
| Parameter | Description |
|---|---|
SourceConnection |
A string value specifying a connection to the source database to be repaired. |
DestinationConnection |
A string value specifying the location of the new database file that will be created. |
RepairOption |
Specifies the type of database repair to perform. For more information, see REPAIROPTION. |
Prototype
HRESULT Repair(BSTR SourceConnection, BSTR DestinationConnection, REPAIROPTION RepairOption);
See Also
Reference
Other Resources
SQL Server Compact Edition Engine Object Programming
Using and Maintaining Databases (SQL Server Compact Edition)