Export (0) Print
Expand All

Backup.Script Method

Returns a String containing the Transact-SQL statement that can be used to execute the referenced backup.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)

public string Script(
	Server targetServer
)

Parameters

targetServer
Type: Microsoft.SqlServer.Management.Smo.Server
The Server object that represents the Microsoft SQL Server instance that is the source of the backup operation.

Return Value

Type: String
A String containing theTransact-SQL statement that can be used to execute the referenced backup.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft