Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

BackupRestoreBase.GetDevicesScript Method

Gets the script that is used to create devices.

This API is not CLS-compliant. 

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)
[CLSCompliantAttribute(false)]
protected void GetDevicesScript(
	StringBuilder query,
	BackupDeviceList devices,
	ServerVersion targetVersion
)

Parameters

query
Type: System.Text.StringBuilder
A StringBuilder value that specifies the Transact-SQL query.
devices
Type: Microsoft.SqlServer.Management.Smo.BackupDeviceList
A BackupDeviceItem object value that specifies the devices associated with the backup or restore operation.
targetVersion
Type: Microsoft.SqlServer.Management.Common.ServerVersion
A ServerVersion object that specifies the version of the instance of SQL Server on which the devices are to be re-created.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.