MergePublication クラス

定義

マージ パブリケーションを表します。

public ref class MergePublication sealed : Microsoft::SqlServer::Replication::Publication
public sealed class MergePublication : Microsoft.SqlServer.Replication.Publication
type MergePublication = class
    inherit Publication
Public NotInheritable Class MergePublication
Inherits Publication
継承

この例では、マージ パブリケーションを作成します。

// Set the Publisher, publication database, and publication names.
string publisherName = publisherInstance;
string publicationName = "AdvWorksSalesOrdersMerge";
string publicationDbName = "AdventureWorks2012";

ReplicationDatabase publicationDb;
MergePublication publication;

// Create a connection to the Publisher.
ServerConnection conn = new ServerConnection(publisherName);

try
{
    // Connect to the Publisher.
    conn.Connect();

    // Enable the database for merge publication.				
    publicationDb = new ReplicationDatabase(publicationDbName, conn);
    if (publicationDb.LoadProperties())
    {
        if (!publicationDb.EnabledMergePublishing)
        {
            publicationDb.EnabledMergePublishing = true;
        }
    }
    else
    {
        // Do something here if the database does not exist. 
        throw new ApplicationException(String.Format(
            "The {0} database does not exist on {1}.",
            publicationDb, publisherName));
    }

    // Set the required properties for the merge publication.
    publication = new MergePublication();
    publication.ConnectionContext = conn;
    publication.Name = publicationName;
    publication.DatabaseName = publicationDbName;

    // Enable precomputed partitions.
    publication.PartitionGroupsOption = PartitionGroupsOption.True;

    // Specify the Windows account under which the Snapshot Agent job runs.
    // This account will be used for the local connection to the 
    // Distributor and all agent connections that use Windows Authentication.
    publication.SnapshotGenerationAgentProcessSecurity.Login = winLogin;
    publication.SnapshotGenerationAgentProcessSecurity.Password = winPassword;

    // Explicitly set the security mode for the Publisher connection
    // Windows Authentication (the default).
    publication.SnapshotGenerationAgentPublisherSecurity.WindowsAuthentication = true;

    // Enable Subscribers to request snapshot generation and filtering.
    publication.Attributes |= PublicationAttributes.AllowSubscriberInitiatedSnapshot;
    publication.Attributes |= PublicationAttributes.DynamicFilters;

    // Enable pull and push subscriptions.
    publication.Attributes |= PublicationAttributes.AllowPull;
    publication.Attributes |= PublicationAttributes.AllowPush;

    if (!publication.IsExistingObject)
    {
        // Create the merge publication.
        publication.Create();
        
        // Create a Snapshot Agent job for the publication.
        publication.CreateSnapshotAgent();
    }
    else
    {
        throw new ApplicationException(String.Format(
            "The {0} publication already exists.", publicationName));
    }
}

catch (Exception ex)
{
    // Implement custom application error handling here.
    throw new ApplicationException(String.Format(
        "The publication {0} could not be created.", publicationName), ex);
}
finally
{
    conn.Disconnect();
}
' Set the Publisher, publication database, and publication names.
Dim publisherName As String = publisherInstance
Dim publicationName As String = "AdvWorksSalesOrdersMerge"
Dim publicationDbName As String = "AdventureWorks2012"

Dim publicationDb As ReplicationDatabase
Dim publication As MergePublication

' Create a connection to the Publisher.
Dim conn As ServerConnection = New ServerConnection(publisherName)

Try
    ' Connect to the Publisher.
    conn.Connect()

    ' Enable the database for merge publication.				
    publicationDb = New ReplicationDatabase(publicationDbName, conn)
    If publicationDb.LoadProperties() Then
        If Not publicationDb.EnabledMergePublishing Then
            publicationDb.EnabledMergePublishing = True
        End If
    Else
        ' Do something here if the database does not exist. 
        Throw New ApplicationException(String.Format( _
         "The {0} database does not exist on {1}.", _
         publicationDb, publisherName))
    End If

    ' Set the required properties for the merge publication.
    publication = New MergePublication()
    publication.ConnectionContext = conn
    publication.Name = publicationName
    publication.DatabaseName = publicationDbName

    ' Enable precomputed partitions.
    publication.PartitionGroupsOption = PartitionGroupsOption.True

    ' Specify the Windows account under which the Snapshot Agent job runs.
    ' This account will be used for the local connection to the 
    ' Distributor and all agent connections that use Windows Authentication.
    publication.SnapshotGenerationAgentProcessSecurity.Login = winLogin
    publication.SnapshotGenerationAgentProcessSecurity.Password = winPassword

    ' Explicitly set the security mode for the Publisher connection
    ' Windows Authentication (the default).
    publication.SnapshotGenerationAgentPublisherSecurity.WindowsAuthentication = True

    ' Enable Subscribers to request snapshot generation and filtering.
    publication.Attributes = publication.Attributes Or _
        PublicationAttributes.AllowSubscriberInitiatedSnapshot
    publication.Attributes = publication.Attributes Or _
        PublicationAttributes.DynamicFilters

    ' Enable pull and push subscriptions
    publication.Attributes = publication.Attributes Or _
        PublicationAttributes.AllowPull
    publication.Attributes = publication.Attributes Or _
        PublicationAttributes.AllowPush

    If Not publication.IsExistingObject Then
        ' Create the merge publication.
        publication.Create()

        ' Create a Snapshot Agent job for the publication.
        publication.CreateSnapshotAgent()
    Else
        Throw New ApplicationException(String.Format( _
            "The {0} publication already exists.", publicationName))
    End If
Catch ex As Exception
    ' Implement custom application error handling here.
    Throw New ApplicationException(String.Format( _
        "The publication {0} could not be created.", publicationName), ex)
Finally
    conn.Disconnect()
End Try

この例では、マージ パブリケーションのプロパティを変更します。

// Define the server, database, and publication names
string publisherName = publisherInstance;
string publicationName = "AdvWorksSalesOrdersMerge";
string publicationDbName = "AdventureWorks2012";

MergePublication publication;

// Create a connection to the Publisher.
ServerConnection conn = new ServerConnection(publisherName);

try
{
    // Connect to the Publisher.
    conn.Connect();

    // Set the required properties for the publication.
    publication = new MergePublication();
    publication.ConnectionContext = conn;
    publication.Name = publicationName;
    publication.DatabaseName = publicationDbName;


    // If we can't get the properties for this merge publication, then throw an application exception.
    if (publication.LoadProperties())
    {
        // If DDL replication is currently enabled, disable it.
        if (publication.ReplicateDdl == DdlReplicationOptions.All)
        {
            publication.ReplicateDdl = DdlReplicationOptions.None;
        }
        else
        {
            publication.ReplicateDdl = DdlReplicationOptions.All;
        }
    }
    else
    {
        throw new ApplicationException(String.Format(
            "Settings could not be retrieved for the publication. " +
            "Ensure that the publication {0} exists on {1}.",
            publicationName, publisherName));
    }
}
catch (Exception ex)
{
    // Do error handling here.
    throw new ApplicationException(
        "The publication property could not be changed.", ex);
}
finally
{
    conn.Disconnect();
}
' Define the server, database, and publication names
Dim publisherName As String = publisherInstance
Dim publicationName As String = "AdvWorksSalesOrdersMerge"
Dim publicationDbName As String = "AdventureWorks2012"

Dim publication As MergePublication

' Create a connection to the Publisher.
Dim conn As ServerConnection = New ServerConnection(publisherName)

Try
    ' Connect to the Publisher.
    conn.Connect()

    ' Set the required properties for the publication.
    publication = New MergePublication()
    publication.ConnectionContext = conn
    publication.Name = publicationName
    publication.DatabaseName = publicationDbName

    ' If we can't get the properties for this merge publication, then throw an application exception.
    If publication.LoadProperties() Then
        ' If DDL replication is currently enabled, disable it.
        If publication.ReplicateDdl = DdlReplicationOptions.All Then
            publication.ReplicateDdl = DdlReplicationOptions.None
        Else
            publication.ReplicateDdl = DdlReplicationOptions.All
        End If
    Else
        Throw New ApplicationException(String.Format( _
         "Settings could not be retrieved for the publication. " + _
         "Ensure that the publication {0} exists on {1}.", _
         publicationName, publisherName))
    End If
Catch ex As Exception
    ' Do error handling here.
    Throw New ApplicationException( _
        "The publication property could not be changed.", ex)
Finally
    conn.Disconnect()
End Try

この例では、マージ パブリケーションを削除します。

// Define the Publisher, publication database, 
// and publication names.
string publisherName = publisherInstance;
string publicationName = "AdvWorksSalesOrdersMerge";
string publicationDbName = "AdventureWorks2012";

MergePublication publication;
ReplicationDatabase publicationDb;

// Create a connection to the Publisher.
ServerConnection conn = new ServerConnection(publisherName);

try
{
    // Connect to the Publisher.
    conn.Connect();

    // Set the required properties for the merge publication.
    publication = new MergePublication();
    publication.ConnectionContext = conn;
    publication.Name = publicationName;
    publication.DatabaseName = publicationDbName;

    // Delete the publication, if it exists and has no subscriptions.
    if (publication.LoadProperties() && !publication.HasSubscription)
    {
        publication.Remove();
    }
    else
    {
        // Do something here if the publication does not exist
        // or has subscriptions.
        throw new ApplicationException(String.Format(
            "The publication {0} could not be deleted. " +
            "Ensure that the publication exists and that all " +
            "subscriptions have been deleted.",
            publicationName, publisherName));
    }

    // If no other merge publications exists,
    // disable publishing on the database.
    publicationDb = new ReplicationDatabase(publicationDbName, conn);
    if (publicationDb.LoadProperties())
    {
        if (publicationDb.MergePublications.Count == 0 && publicationDb.EnabledMergePublishing)
        {
            publicationDb.EnabledMergePublishing = false;
        }
    }
    else
    {
        // Do something here if the database does not exist.
        throw new ApplicationException(String.Format(
            "The database {0} does not exist on {1}.",
            publicationDbName, publisherName));
    }
}
catch (Exception ex)
{
    // Implement application error handling here.
    throw new ApplicationException(String.Format(
        "The publication {0} could not be deleted.",
        publicationName), ex);
}
finally
{
    conn.Disconnect();
}
' Define the Publisher, publication database, 
' and publication names.
Dim publisherName As String = publisherInstance
Dim publicationName As String = "AdvWorksSalesOrdersMerge"
Dim publicationDbName As String = "AdventureWorks2012"

Dim publication As MergePublication
Dim publicationDb As ReplicationDatabase

' Create a connection to the Publisher.
Dim conn As ServerConnection = New ServerConnection(publisherName)

Try
    ' Connect to the Publisher.
    conn.Connect()

    ' Set the required properties for the merge publication.
    publication = New MergePublication()
    publication.ConnectionContext = conn
    publication.Name = publicationName
    publication.DatabaseName = publicationDbName

    ' Delete the publication, if it exists and has no subscriptions.
    If (publication.LoadProperties() And Not publication.HasSubscription) Then
        publication.Remove()
    Else
        ' Do something here if the publication does not exist
        ' or has subscriptions.
        Throw New ApplicationException(String.Format( _
         "The publication {0} could not be deleted. " + _
         "Ensure that the publication exists and that all " + _
         "subscriptions have been deleted.", _
         publicationName, publisherName))
    End If

    ' If no other merge publications exists,
    ' disable publishing on the database.
    publicationDb = New ReplicationDatabase(publicationDbName, conn)
    If publicationDb.LoadProperties() Then
        If publicationDb.MergePublications.Count = 0 _
        And publicationDb.EnabledMergePublishing Then
            publicationDb.EnabledMergePublishing = False
        End If
    Else
        ' Do something here if the database does not exist.
        Throw New ApplicationException(String.Format( _
         "The database {0} does not exist on {1}.", _
         publicationDbName, publisherName))
    End If
Catch ex As Exception
    ' Implement application error handling here.
    Throw New ApplicationException(String.Format( _
     "The publication {0} could not be deleted.", _
     publicationName), ex)
Finally
    conn.Disconnect()
End Try

注釈

スレッド セーフ

この型の public static (Microsoft Visual Basic では Shared) のすべてのメンバーは、マルチスレッド操作で安全に使用できます。 インスタンス メンバーの場合は、スレッド セーフであるとは限りません。

コンストラクター

MergePublication()

MergePublication クラスの新しいインスタンスを作成します。

MergePublication(String, String, ServerConnection)

指定した名前、データベース、およびパブリッシャーへの接続を使用して MergePublication クラスの新しいインスタンスを初期化します。

MergePublication(String, String, ServerConnection, Boolean)

スナップショット エージェント ジョブを既定で作成するかどうかを指定して、MergePublication クラスのインスタンスを作成します。

プロパティ

AltSnapshotFolder

パブリケーションのスナップショット ファイルの代替場所を取得します。値の設定も可能です。

(継承元 Publication)
Attributes

パブリケーション属性を取得します。値の設定も可能です。

(継承元 Publication)
AutomaticReinitializationPolicy

パブリケーションの変更によってサブスクリプションが再初期化されるとき、パブリッシャーでの変更がパブリッシャーにアップロードされるかどうかを取得します。値の設定も可能です。

CachePropertyChanges

レプリケーション プロパティに加えられた変更をキャッシュするか、またはすぐに適用するかを取得します。値の設定も可能です。

(継承元 ReplicationObject)
CompatibilityLevel

マージ パブリケーションをサブスクライブできる Microsoft SQL Serverの最も古いバージョンを取得または設定します。

ConflictRetention

競合するデータ行が競合テーブルに保持される日数を取得します。値の設定も可能です。

(継承元 Publication)
ConnectionContext

Microsoft SQL Server のインスタンスへの接続を取得または設定します。

(継承元 ReplicationObject)
CreateSnapshotAgentByDefault

パブリケーションが作成されるときにスナップショット エージェント ジョブが自動的に追加されるかどうかを取得します。値の設定も可能です。

(継承元 Publication)
DatabaseName

パブリケーション データベースの名前を取得します。値の設定も可能です。

(継承元 Publication)
Description

パブリケーションの説明テキストを取得します。値の設定も可能です。

(継承元 Publication)
FtpAddress

ファイル転送プロトコル (FTP) を介してサブスクリプションを初期化できるパブリケーションの、FTP サーバー コンピューターのアドレスを取得します。値の設定も可能です。

(継承元 Publication)
FtpLogin

ファイル転送プロトコル (FTP) を介してサブスクリプションを初期化できるパブリケーションの、FTP サーバーへの接続に使用するログインを取得します。値の設定も可能です。

(継承元 Publication)
FtpPassword

ファイル転送プロトコル (FTP) を介してサブスクリプションを初期化できるパブリケーションの、FTP サーバーへの接続に使用するログインのパスワードを設定します。

(継承元 Publication)
FtpPort

ファイル転送プロトコル (FTP) を介してサブスクリプションを初期化できるパブリケーションの、FTP サーバー コンピューターのポートを取得します。値の設定も可能です。

(継承元 Publication)
FtpSubdirectory

ファイル転送プロトコル (FTP) を介してサブスクリプションを初期化できるパブリケーションの、FTP サーバー コンピューター上のサブディレクトリを取得します。値の設定も可能です。

(継承元 Publication)
HasSubscription

パブリケーションに 1 つ以上のサブスクリプションがあるかどうかを取得します。

(継承元 Publication)
IsExistingObject

サーバーにオブジェクトが存在するかどうかを取得します。

(継承元 ReplicationObject)
MaxConcurrentDynamicSnapshots

パブリケーションにパラメーター化された行フィルターがある場合、データ スナップショットの生成時にサポートされる同時実行スナップショット エージェント セッションの最大数を取得します。値の設定も可能です。

MaxConcurrentMerge

パブリケーションと同時に同期できるマージ エージェントの最大数を取得します。値の設定も可能です。

MergeArticles

マージ パブリケーション内の既存のアーティクルを取得します。

MergeSubscriptions

マージ パブリケーションに属するサブスクリプションを取得します。

Name

パブリケーションの名前を取得します。値の設定も可能です。

(継承元 Publication)
PartitionGroupsOption

事前計算されたパーティションを使用して同期処理の最適化を行うかどうかを取得します。値の設定も可能です。

PostSnapshotScript

初期スナップショットがサブスクライバーに適用された後に実行される Transact-SQL スクリプト ファイルの名前と完全パスを取得または設定します。

(継承元 Publication)
PreSnapshotScript

初期スナップショットがサブスクライバーに適用される前に実行される Transact-SQL スクリプト ファイルの名前と完全パスを取得または設定します。

(継承元 Publication)
Priority

パブリケーションの優先度を取得します。

PubId

パブリケーションを一意に識別する値を取得します。

(継承元 Publication)
ReplicateDdl

データ定義言語 (DDL) の変更をレプリケートするかどうかを決定する DDL レプリケーション オプションを取得します。値の設定も可能です。

(継承元 Publication)
RetentionPeriod

サブスクリプションがパブリケーションと同期されていない場合に、サブスクリプションの有効期限が切れるまでの時間を取得します。値の設定も可能です。

(継承元 Publication)
RetentionPeriodUnit

RetentionPeriodUnit プロパティが表される単位を取得します。値の設定も可能です。

SecureFtpPassword

ファイル転送プロトコル (FTP) を介してサブスクリプションを初期化できるパブリケーションの、FTP サーバーへの接続に使用するログインのパスワードを SecureString オブジェクトとして設定します。

(継承元 Publication)
SnapshotAgentExists

このパブリケーションの初期スナップショットを生成するSQL Server エージェント ジョブが存在するかどうかを取得します。

(継承元 Publication)
SnapshotAvailable

このパブリケーションのスナップショット ファイルが生成済みでサブスクライバーの初期化に利用できるかどうかを示す値を取得または設定します。

SnapshotGenerationAgentProcessSecurity

スナップショット エージェント ジョブを実行する Windows アカウントを設定するオブジェクトを取得します。

(継承元 Publication)
SnapshotGenerationAgentPublisherSecurity

パブリッシャーに接続するためにスナップショット エージェントが使用するセキュリティ コンテキストを取得します。

(継承元 Publication)
SnapshotJobId

現在のパブリケーションのスナップショット エージェント ジョブ ID を取得します。

(継承元 Publication)
SnapshotMethod

初期スナップショットのデータ ファイル形式を取得します。値の設定も可能です。

(継承元 Publication)
SnapshotSchedule

現在のパブリケーションのスナップショット エージェントのスケジュールを設定するオブジェクトを取得します。

(継承元 Publication)
SqlServerName

このオブジェクトが接続されている Microsoft SQL Server インスタンスの名前を取得します。

(継承元 ReplicationObject)
Status

パブリケーションの状態を取得します。値の設定も可能です。

(継承元 Publication)
Type

パブリケーションの種類を取得または設定します。

(継承元 Publication)
UserData

ユーザーが独自のデータをオブジェクトにアタッチすることを許可するオブジェクト プロパティを取得します。値の設定も可能です。

(継承元 ReplicationObject)
UsesHostName

マージ パブリケーションに、 HOST_NAME 関数を使用してパーティションを評価するパラメーター化された行フィルターがあるかどうかを示す値を取得します。

ValidateSubscriberInfo

パラメーター化された行フィルターを使用する場合、パブリッシュされたデータのサブスクライバー パーティションを定義する関数を取得します。値の設定も可能です。

WebSynchronizationUrl

Web 同期で使用する URL を取得します。値の設定も可能です。

メソッド

AddMergeDynamicSnapshotJob(MergeDynamicSnapshotJob, ReplicationAgentSchedule)

パラメーター化された行フィルターを使用する場合に、フィルター選択されたデータ パーティションをサブスクライバー用に生成する、スナップショット エージェント ジョブを追加します。

AddMergeDynamicSnapshotJobForLateBoundComClients(Object, Object)

パラメーター化された行フィルターを使用する場合に、フィルター選択されたデータ パーティションをサブスクライバー用に生成するスナップショット エージェント ジョブを追加できるように、遅延バインドされた COM クライアントを有効化します。

AddMergePartition(MergePartition)

パラメーター化された行フィルターを使用したマージ パブリケーションのサブスクライバー パーティションを定義します。

BrowseSnapshotFolder()

スナップショット ファイルが生成されたディレクトリの場所の完全なパスを返します。

ChangeMergeDynamicSnapshotJobScheduleWithJobId(String, ReplicationAgentSchedule)

スナップショット エージェント ジョブのスケジュールを、ジョブ ID に基づいて変更します。このスナップショット エージェント ジョブは、フィルター選択されたデータ パーティションをサブスクライバー用に生成するジョブです。

ChangeMergeDynamicSnapshotJobScheduleWithJobIdForLateBoundComClients(String, Object)

遅延バインドされた COM クライアントが、スナップショット エージェント ジョブのスケジュールをジョブ ID に基づいて変更できるようにします。このスナップショット エージェント ジョブは、フィルター選択されたデータ パーティションをサブスクライバー用に生成するジョブです。

ChangeMergeDynamicSnapshotJobScheduleWithJobName(String, ReplicationAgentSchedule)

スナップショット エージェント ジョブのスケジュールを、ジョブ名に基づいて変更します。このスナップショット エージェント ジョブは、フィルター選択されたデータ パーティションをサブスクライバー用に生成するジョブです。

ChangeMergeDynamicSnapshotJobScheduleWithJobNameForLateBoundComClients(String, Object)

遅延バインドされた COM クライアントが、スナップショット エージェント ジョブのスケジュールをジョブ名に基づいて変更できるようにします。このスナップショット エージェント ジョブは、フィルター選択されたデータ パーティションをサブスクライバー用に生成するジョブです。

CheckValidCreation()

有効なレプリケーションの作成を確認します。

(継承元 ReplicationObject)
CheckValidDefinition(Boolean)

有効な定義であるか確認するかどうかを示します。

(継承元 Publication)
CommitPropertyChanges()

キャッシュされたすべてのプロパティ変更ステートメントを Microsoft SQL Serverのインスタンスに送信します。

(継承元 ReplicationObject)
CopySnapshot(String)

スナップショット フォルダーから目的のフォルダーに、マージ パブリケーション用のスナップショット ファイルをコピーします。

Create()

パブリケーションを作成します。

(継承元 Publication)
CreateSnapshotAgent()

このジョブがまだ存在しない場合は、パブリケーションの初期スナップショットの生成に使用されるSQL Server エージェント ジョブを作成します。

(継承元 Publication)
Decouple()

参照先のレプリケーション オブジェクトをサーバーから切断します。

(継承元 ReplicationObject)
DisableSynchronizationPartner(String, String, String)

このマージ パブリケーションの、指定された同期パートナーを無効化します。

EnableSynchronizationPartner(SynchronizationPartner)

このマージ パブリケーションの、指定された同期パートナーを有効化します。

EnumAllMergeJoinFilters()

マージ パブリケーションで定義されているすべてのマージ結合フィルターを返します。

EnumArticles()

パブリケーション内のアーティクルを返します。

(継承元 Publication)
EnumMergeDynamicSnapshotJobs()

マージ動的スナップショット ジョブの一覧を返します。

EnumMergePartitions()

このマージ パブリケーションに対して定義されたサブスクライバー パーティションを返します。

EnumPublicationAccesses(Boolean)

パブリッシャーに対するアクセス権を持つログインを返します。

(継承元 Publication)
EnumSubscriptions()

パブリケーションをサブスクライブするサブスクリプションを返します。

(継承元 Publication)
EnumSynchronizationPartners()

このマージ パブリケーションの、代替同期パートナーを返します。

GenerateFilters()

マージ パブリケーションのフィルターを作成します。

GetChangeCommand(StringBuilder, String, String)

レプリケーションの変更コマンドを返します。

(継承元 ReplicationObject)
GetCreateCommand(StringBuilder, Boolean, ScriptOptions)

レプリケーションの作成コマンドを返します。

(継承元 ReplicationObject)
GetDropCommand(StringBuilder, Boolean)

レプリケーションの削除コマンドを返します。

(継承元 ReplicationObject)
GetMergeDynamicSnapshotJobScheduleWithJobId(String)

フィルター選択されたデータ パーティションをサブスクライバー用に生成するスナップショット エージェント ジョブのスケジュールを、ジョブ ID に基づいて返します。

GetMergeDynamicSnapshotJobScheduleWithJobName(String)

フィルター選択されたデータ パーティションをサブスクライバー用に生成するスナップショット エージェント ジョブのスケジュールを、ジョブ名に基づいて返します。

GrantPublicationAccess(String)

パブリケーション アクセス リスト (PAL) に指定したログインを追加します。

(継承元 Publication)
InternalRefresh(Boolean)

レプリケーションで内部更新を開始します。

(継承元 ReplicationObject)
Load()

サーバーから既存のオブジェクトのプロパティを読み込みます。

(継承元 ReplicationObject)
LoadProperties()

サーバーから既存のオブジェクトのプロパティを読み込みます。

(継承元 ReplicationObject)
MakePullSubscriptionWellKnown(String, String, SubscriptionSyncType, MergeSubscriberType, Single)

マージ プル サブスクリプションをパブリッシャーに登録します。

ReadLastValidationDateTimes(String, String)

サブスクライバーの最新のサブスクリプション検証についての情報を返します。

Refresh()

オブジェクトのプロパティを再度読み込みます。

(継承元 ReplicationObject)
ReinitializeAllSubscriptions(Boolean)

すべてのサブスクリプションに再初期化のマークを付けます。

Remove()

既存のパブリケーションを削除します。

(継承元 Publication)
Remove(Boolean)

ディストリビューターにアクセスできない場合でも、既存のパブリケーションを削除します。

(継承元 Publication)
RemoveMergeDynamicSnapshotJob(String)

指定した動的スナップショット ジョブを、マージ パブリケーションから削除します。

RemoveMergePartition(MergePartition)

マージ パブリケーションで定義されている既存のサブスクライバー パーティションを削除します。

RemovePullSubscription(String, String)

マージ パブリケーションに対するプル サブスクリプションのサブスクライバーの登録を削除します。

ReplicateUserDefinedScript(String)

ユーザー定義スクリプトの実行を、指定したパブリケーションのサブスクライバーにレプリケートします。

(継承元 Publication)
ResynchronizeSubscription(String, String, ResynchronizeType, String)

指定した既知の検証状態にマージ サブスクリプションを再同期します。

RevokePublicationAccess(String)

パブリケーション アクセス リスト (PAL) から指定したログインを削除します。

(継承元 Publication)
Script(ScriptOptions)

スクリプト オプションで指定されたパブリケーションを再作成するために使用できる Transact-SQL スクリプトを生成します。

(継承元 Publication)
ScriptMergeDynamicSnapshotJob(MergeDynamicSnapshotJob, ReplicationAgentSchedule, ScriptOptions)

パラメーター化された行フィルターを使用してパブリケーションのサブスクライバーのパーティション分割データ スナップショットを生成するスナップショット エージェント ジョブを再作成するために使用できる Transact-SQL スクリプトを生成します。

ScriptMergePartition(MergePartition, ScriptOptions)

パラメーター化された行フィルターを使用してパブリケーションのサブスクライバー パーティションを再作成するために使用できる Transact-SQL スクリプトを生成します。

ScriptPublicationActivation(ScriptOptions)

Transact-SQL スクリプトを生成します。このスクリプトを実行すると、マージ パブリケーションの状態がアクティブに設定されます。

StartSnapshotGenerationAgentJob()

パブリケーションの初期スナップショットを生成するジョブを開始します。

(継承元 Publication)
StopSnapshotGenerationAgentJob()

実行中のスナップショット エージェント ジョブの停止を試みます。

(継承元 Publication)
ValidatePublication(ValidationOption)

次回の同期で検証するよう、すべてのサブスクリプションをマークします。

ValidateSubscription(String, String, ValidationOption)

次の同期で検証を実行するよう、指定したサブスクリプションをマークします。

適用対象

こちらもご覧ください