Publication.Script 메서드

Generates a Transact-SQL script that can be used to re-create the publication as specified by the script options.

네임스페이스:  Microsoft.SqlServer.Replication
어셈블리:  Microsoft.SqlServer.Rmo(Microsoft.SqlServer.Rmo.dll)

public string Script(
	ScriptOptions scriptOption

매개 변수

유형: Microsoft.SqlServer.Replication.ScriptOptions
A ScriptOptions enumeration value that specifies the scripting options.

반환 값

유형: System.String
A String that contains the Transact-SQL script that defines the publication.

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.