The NextMedia event occurs when a backup or restore operation exhausts the media in a device indicated as a target or source for the operation.
Backup Object | Restore Object |
Private Sub object_NextMedia( Message as String )
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
Message | String containing descriptive message text |
With SQL-DMO, use the SQLBackup, SQLRestore, and SQLVerify methods to launch a backup or restore operation.
HRESULT NextMedia(SQLDMO_LPCSTR Message);