Renames an existing child data set on the Target Service.
#include <smstsapi.h> CCODE NWSMTSRenameDataSet ( UINT32 connection, UINT32 sequence, UINT32 nameSpaceType, STRING newDataSetName);
(IN) Specifies the connection information returned by NWSMTSConnectToTargetService or NWSMTSConnectToTargetServicEx.
(IN) Specifies the sequence value returned by NWSMTSScanDataSetBegin or NWSMTSScanNextDataSet.
(IN) Specifies the name space type of newDataSetName (see nameSpaceType Values).
(IN) Specifies the data set’s new name (cannot be NULL).
See Section 9.3, Target Service Return Values for more information.
The following table lists the return values associated with the function.
Before NWSMTSRenameDataSet is called, NWSMTSScanDataSetBegin or NWSMTSScanNextDataSet must be called to return a valid sequence number.
NWSMTSRenameDataSet cannot relocate the data set to another directory or logical location. The engine can only move data sets during the restore session (see NWSMTSOpenDataSetForRestore).
NWSMTSRenameDataSet may not apply to all Target Services because some services may not have a file system or the ability to rename a data set.
To determine if a TSA supports the ability to rename data sets, call NWSMTSGetUnsupportedOptions.
newDataSetName can contain any path information. Do not pass a NULL pointer.
nameSpaceType can be retrieved from the NWSM_DATA_SET_NAME_LIST or NWSM_SCAN_INFORMATION structure returned by NWSMTSScanDataSetBegin or NWSMTSScanNextDataSet.