BackupRestoreBase.GetDevicesScript Method (StringBuilder, BackupDeviceList, ServerVersion)
Applies To: SQL Server 2016 Preview
Gets the script that is used to create devices.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)
Syntax
[CLSCompliantAttribute(false)]
protected void GetDevicesScript(
StringBuilder query,
BackupDeviceList devices,
ServerVersion targetVersion
)
protected:
[CLSCompliantAttribute(false)]
void GetDevicesScript(
StringBuilder^ query,
BackupDeviceList^ devices,
ServerVersion^ targetVersion
)
[<CLSCompliantAttribute(false)>]
member GetDevicesScript :
query:StringBuilder *
devices:BackupDeviceList *
targetVersion:ServerVersion -> unit
<CLSCompliantAttribute(False)>
Protected Sub GetDevicesScript (
query As StringBuilder,
devices As BackupDeviceList,
targetVersion As ServerVersion
)
Parameters
query
Type: System.Text.StringBuilderA StringBuilder value that specifies the Transact-SQL query.
devices
Type: Microsoft.SqlServer.Management.Smo.BackupDeviceListA BackupDeviceItem object value that specifies the devices associated with the backup or restore operation.
targetVersion
Type: Microsoft.SqlServer.Management.Common.ServerVersionA ServerVersion object that specifies the version of the instance of SQL Server on which the devices are to be re-created.
See Also
BackupRestoreBase Class
Microsoft.SqlServer.Management.Smo Namespace
Return to top