Recalculates the checksums for each page in the database and compares the new checksums to the expected values. Checks that each index entry exists in the table and that each table entry exists in the index. This option is slower and more thorough than the Verify Method (SQL Server Compact).
HRESULT VerifyEx(BSTR SourceConnection)
- SourceConnection
A string value specifying a connection to the source database to be verified.
Return type is HRESULT, and S_OK is returned on success.
If this method returns false, the database is corrupt, and your application must call the Repair Method (SQL Server Compact) to correct the problem.
False is also returned if there is a failure connecting to the database. Scenarios include an incorrect password, or the database is already opened in exclusive mode by another application. |