DistributionPublication.Script 메서드

Generates a Transact-SQL script that can be used to create or remove the publication metadata at the Distributor.

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

public string Script(
	ScriptOptions scriptOption
)

매개 변수

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

반환 값

유형: System.String
A String value that is the script.

You should not call the Script method. To generate a creation or deletion script for a transactional or snapshot publication, you should instead call the Script method on the TransPublication object.

The scriptOption parameter determines whether to return a creation script or a deletion script.

커뮤니티 추가 항목

추가
표시: