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
Create a SQLServer object.
Connect the SQLServer object to an instance of SQL Server on which the source backup device is visible.
Create a Restore object.
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.
Call the SQLVerify method of the Restoreobject using the SQLServer object created in Step 1 as an argument.