Export (0) Print
Expand All

Subscription.Script Method

Returns a Transact-SQL script that can be used to create or delete the subscription.

Namespace:  Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)

public string Script(
	ScriptOptions scriptOption
)

Parameters

scriptOption
Type: Microsoft.SqlServer.Replication.ScriptOptions
A ScriptOptions value that specifies the scripting options.

Return Value

Type: String
A String value that contains the Transact-SQL script.

The scriptOption parameter determines whether to return a creation script or a deletion script. This method can be used for an existing object or a new object.

Community Additions

ADD
Show:
© 2014 Microsoft