Udostępnij za pośrednictwem


Recalculates the checksums for each page in the database and compares the new checksums to the expected values.

HRESULT Verify(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.

.NET Framework Equivalent

Verify

Other Resources

Engine Object Methods