Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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)