Backup::Script Method (Server^)

 

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 MicrosoftSQL Server instance that is the source of the backup operation.

Return Value

Type: System::String^

A String containing theTransact-SQL statement that can be used to execute the referenced backup.

Return to top
Show: