SQLVerify Method (SQL-DMO)

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

Applies To

Restore Object

Syntax

object.SQLVerify( SQLServer )

Part Description
object Expression that evaluates to an object in the Applies To list
SQLServer SQLServer object connected to the Microsoft® SQL Server™ installation on which the backup media is visible

Remarks

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 set

  1. Create a SQLServer object.
  2. Connect the SQLServer object to the SQL Server installation 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 the SQL Server installation 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 Restore object using the SQLServer object created in Step 1 as an argument.
Prototype (C/C++)

HRESULT SQLVerify(LPSQLDMOSERVER ServerObject);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.