IServerVirtualDeviceSet2::Open

Microsoft SQL Server Virtual Backup

Microsoft SQL Server Virtual Backup Device Specification

IServerVirtualDeviceSet2::Open

Purpose This function opens the virtual device set on the server, and it must be the first call made using the COM-provided interface handle.
Syntax HRESULT IServerVirtualDeviceSet2::Open (

   LPCWSTR      lpInstanceName,

   LPCWSTR      lpName

);

Parameters Argument Explanation
  lpInstanceName This string identifies the SQL Server instance to which the SQL command will be sent. NULL may be passed to identify the default instance on the current machine.
  lpName This is provided from the first VIRTUAL_DEVICE= clause of the BACKUP or RESTORE command. This name is used as the key to obtain access to the virtual device set created by the client.
Return Values Argument Explanation
  NOERROR The function succeeded.
  VD_E_INVALID The name provided did not identify a virtual device set that is accessible to the server.
Remarks After this function is successfully invoked, the server may proceed to configure the virtual device set by using GetConfiguration and SetConfiguration.