다음을 통해 공유


SQLVerify Method

Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 않도록 하고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.

The SQLVerify method checks the backup media specified, ensuring that a backup set is readable and complete.

구문

object
.SQLVerify(
SQLServer
)

Parts

  • object
    Expression that evaluates to an object in the Applies To list.

  • SQLServer
    SQLServer object connected to an instance of Microsoft SQL Server on which the backup media is visible.

Prototype (C/C++)

HRESULT SQLVerify(LPSQLDMOSERVER ServerObject);

주의

The SQLVerify method does not perform a restore of any SQL Server database or transaction log.

To validate the integrity of a SQL Server backup

  1. Create a SQLServer object.

  2. Connect the SQLServer object to an instance of SQL Server on which the source backup device is visible.

  3. Create a Restore object.

  4. Set either the Devices, Files, Pipes, or Tapes property to indicate a device visible on an instance of SQL Server indicated in Step 2 and maintaining the backup media. Specify all devices or files maintaining the backup set.

  5. Call the SQLVerify method of the Restoreobject using the SQLServer object created in Step 1 as an argument.

Applies To: