MergePublication 생성자

정의

MergePublication 클래스의 새 인스턴스를 만듭니다.

오버로드

MergePublication()

MergePublication 클래스의 새 인스턴스를 만듭니다.

MergePublication(String, String, ServerConnection)

지정된 이름, 데이터베이스 및 게시자 연결을 사용하여 MergePublication 클래스의 새 인스턴스를 초기화합니다.

MergePublication(String, String, ServerConnection, Boolean)

스냅숏 에이전트 작업을 기본적으로 만들어야 하는지 여부를 지정하고 MergePublication 클래스의 인스턴스를 만듭니다.

설명

업데이트된 텍스트:2006년 7월 17일

다음 표에는 의 새 인스턴스에 대한 기본 속성 값이 나와 있습니다 MergePublication. 이 테이블에서 명시적으로 열거되지 않은 모든 속성은 값으로 null 초기화됩니다.

속성 기본값
Attributes , , CentralizedConflicts, DecentralizedConflicts, IndependentAgentImmediateSyncAllowPartitionRealignmentAllowPush

PublicationAttributes
AutomaticReinitializationPolicy 의 값입니다 Reinitialize . AutomaticReinitializationPolicies
CachePropertyChanges false
CompatibilityLevel 의 값입니다 LatestVersion . PublicationCompatibilityLevel
ConflictRetention 14일(일)
CreateSnapshotAgentByDefault false
FtpPort1 21
HasSubscription false
IsExistingObject false
MaxConcurrentDynamicSnapshots 0(최대값 없음)
MaxConcurrentMerge 0(최대값 없음)
PartitionGroupsOption 의 값입니다 AutoSet . PartitionGroupsOption
Priority 100
ReplicateDdl 의 값입니다 All . DdlReplicationOptions
RetentionPeriod 14일(일)
RetentionPeriodUnit 의 값입니다 Days . RetentionPeriodUnits
SnapshotAgentExists false
SnapshotAvailable false
SnapshotGenerationAgentPublisherSecurity 의 값입니다 true . WindowsAuthentication
SnapshotMethod 의 값입니다 BcpNative . InitialSyncType
SnapshotSchedule 에 대한 99991231 값입니다. ActiveEndDate

에 대한 235959 값입니다. ActiveEndTime

게시 만들기 날짜의 값입니다. ActiveStartDate

의 값은 500입니다. ActiveStartTime

의 값은 14입니다. FrequencyInterval

의 값은 0입니다. FrequencyRecurrenceFactor

의 값입니다 First . FrequencyRelativeInterval

의 값입니다 Once . FrequencySubDay

의 값은 5입니다. FrequencySubDayInterval

의 값입니다 Daily . FrequencyType
Status 의 값입니다 Active . State
Type 의 값입니다 Merge . PublicationType
UsesHostName false

1 FTP(파일 전송 프로토콜) 포트는 FTP를 사용하여 스냅샷을 전송하는 경우에만 사용됩니다. 자세한 내용은 FTP를 통해 스냅샷 전송을 참조하세요.

MergePublication()

MergePublication 클래스의 새 인스턴스를 만듭니다.

public:
 MergePublication();
public MergePublication ();
Public Sub New ()

설명

기본 생성자는 모든 필드를 기본값으로 초기화합니다.

적용 대상

MergePublication(String, String, ServerConnection)

지정된 이름, 데이터베이스 및 게시자 연결을 사용하여 MergePublication 클래스의 새 인스턴스를 초기화합니다.

public:
 MergePublication(System::String ^ name, System::String ^ databaseName, Microsoft::SqlServer::Management::Common::ServerConnection ^ connectionContext);
public MergePublication (string name, string databaseName, Microsoft.SqlServer.Management.Common.ServerConnection connectionContext);
new Microsoft.SqlServer.Replication.MergePublication : string * string * Microsoft.SqlServer.Management.Common.ServerConnection -> Microsoft.SqlServer.Replication.MergePublication
Public Sub New (name As String, databaseName As String, connectionContext As ServerConnection)

매개 변수

name
String

병합 게시의 이름입니다.

databaseName
String

데이터베이스의 이름입니다.

connectionContext
ServerConnection

MicrosoftSQL Server 인스턴스에 대한 연결을 설정하는 데 필요한 연결 컨텍스트입니다.

추가 정보

적용 대상

MergePublication(String, String, ServerConnection, Boolean)

스냅숏 에이전트 작업을 기본적으로 만들어야 하는지 여부를 지정하고 MergePublication 클래스의 인스턴스를 만듭니다.

public:
 MergePublication(System::String ^ name, System::String ^ databaseName, Microsoft::SqlServer::Management::Common::ServerConnection ^ connectionContext, bool createSnapshotAgentByDefault);
public MergePublication (string name, string databaseName, Microsoft.SqlServer.Management.Common.ServerConnection connectionContext, bool createSnapshotAgentByDefault);
new Microsoft.SqlServer.Replication.MergePublication : string * string * Microsoft.SqlServer.Management.Common.ServerConnection * bool -> Microsoft.SqlServer.Replication.MergePublication
Public Sub New (name As String, databaseName As String, connectionContext As ServerConnection, createSnapshotAgentByDefault As Boolean)

매개 변수

name
String

병합 게시의 이름입니다.

databaseName
String

데이터베이스의 이름입니다.

connectionContext
ServerConnection

MicrosoftSQL Server 인스턴스에 대한 연결을 설정하는 데 필요한 연결 컨텍스트입니다.

createSnapshotAgentByDefault
Boolean

게시에 대한 스냅숏 에이전트 작업을 만들려면 true이고, 게시에 대한 스냅숏 에이전트 작업을 만들지 않고 스냅숏 에이전트를 수동으로 실행하여 초기 스냅숏을 생성해야 하면 false입니다.

적용 대상