MergePublication Klasse
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Stellt eine Zusammenführungspublikation dar.
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
- Vererbung
Beispiele
Dieses Beispiel erzeugt eine Merge-Publikation.
// 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
Dieses Beispiel verändert die Eigenschaften einer Merge-Publikation.
// 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
Dieses Beispiel löscht eine Merge-Veröffentlichung.
// 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
Hinweise
Threadsicherheit
Alle öffentlichen statischen (Shared in Microsoft Visual Basic) Mitglieder dieses Typs sind für Multithread-Operationen sicher. Instanzenmitglieder sind nicht garantiert threadsicher.
Konstruktoren
| Name | Beschreibung |
|---|---|
| MergePublication() |
Erstellt eine neue Instanz der MergePublication Klasse. |
| MergePublication(String, String, ServerConnection, Boolean) |
Erstellt eine Instanz der MergePublication Klasse und gibt an, ob der Momentaufnahmen-Agent-Job standardmäßig erstellt werden soll. |
| MergePublication(String, String, ServerConnection) |
Initialisiert eine neue Instanz der MergePublication Klasse mit dem angegebenen Namen, der Datenbank und der Verbindung zum Publisher. |
Eigenschaften
| Name | Beschreibung |
|---|---|
| AltSnapshotFolder |
Er erhält oder setzt den alternativen Snapshot-Dateistandort für eine Veröffentlichung. (Geerbt von Publication) |
| Attributes |
Erhält oder setzt die Veröffentlichungsattribute. (Geerbt von Publication) |
| AutomaticReinitializationPolicy |
Erhält oder bestimmt, ob Änderungen beim Publisher auf den Publisher hochgeladen werden, wenn ein Abonnement aufgrund einer Änderung der Publikation neu initialisiert wird. |
| CachePropertyChanges |
Es gibt oder setzt, ob Änderungen an den Replikationseigenschaften zwischengespeichert oder sofort angewendet werden. (Geerbt von ReplicationObject) |
| CompatibilityLevel |
Erhält oder setzt die früheste Version von Microsoft SQL Server, die die Merge-Publikation abonnieren kann. |
| ConflictRetention |
Erhält oder legt die Anzahl der Tage fest, an denen Konfliktdatenzeilen in Konflikttabellen gespeichert werden. (Geerbt von Publication) |
| ConnectionContext |
Erhält oder setzt die Verbindung zu einer Instanz von Microsoft SQL Server. (Geerbt von ReplicationObject) |
| CreateSnapshotAgentByDefault |
Erhält oder setzt, ob der Momentaufnahmen-Agent-Job automatisch hinzugefügt wird, wenn die Veröffentlichung erstellt wird. (Geerbt von Publication) |
| DatabaseName |
Erhält oder setzt den Namen der Publikationsdatenbank. (Geerbt von Publication) |
| Description |
Beschafft oder setzt eine Textbeschreibung der Veröffentlichung. (Geerbt von Publication) |
| FtpAddress |
Erhält oder setzt die Adresse des File Transfer Protocol (FTP)-Servercomputers für Veröffentlichungen, die eine Abonnementinitialisierung über FTP erlauben. (Geerbt von Publication) |
| FtpLogin |
Erhält oder setzt das Login, das zur Verbindung mit dem File Transfer Protocol (FTP)-Server für Veröffentlichungen verwendet wird, die eine Abonnementinitialisierung über FTP ermöglichen. (Geerbt von Publication) |
| FtpPassword |
Legt das Passwort für den Login fest, der zur Verbindung mit dem File Transfer Protocol (FTP)-Server für Veröffentlichungen verwendet wird, die eine Abonnementinitialisierung über FTP erlauben. (Geerbt von Publication) |
| FtpPort |
Erhält oder setzt den Port des File Transfer Protocol (FTP)-Servercomputers für Veröffentlichungen, die eine Abonnementinitialisierung über FTP ermöglichen. (Geerbt von Publication) |
| FtpSubdirectory |
Erhält oder setzt das Unterverzeichnis auf dem File Transfer Protocol (FTP)-Servercomputer für Veröffentlichungen, die eine Abonnementinitialisierung über FTP erlauben. (Geerbt von Publication) |
| HasSubscription |
Es wird ersichtlich, ob die Publikation ein oder mehrere Abonnements hat. (Geerbt von Publication) |
| IsExistingObject |
Es bekommt, ob das Objekt auf dem Server existiert oder nicht. (Geerbt von ReplicationObject) |
| MaxConcurrentDynamicSnapshots |
Erhält oder setzt die maximale Anzahl gleichzeitiger Momentaufnahmen-Agent-Sitzungen, die bei der Erzeugung von Datensnapshots unterstützt werden, wenn die Veröffentlichung einen parametrisierten Zeilenfilter hat. |
| MaxConcurrentMerge |
Erhält oder setzt die maximale Anzahl von Merge-Agenten, die gleichzeitig mit der Publikation synchronisieren können. |
| MergeArticles |
Erhält die vorhandenen Artikel in der Merge-Publikation. |
| MergeSubscriptions |
Erhält die Abonnements, die zu einer Merge-Publikation gehören. |
| Name |
Bekommt oder setzt den Namen der Publikation. (Geerbt von Publication) |
| PartitionGroupsOption |
Erhält oder legt fest, ob vorberechnete Partitionen zur Optimierung des Synchronisationsprozesses verwendet werden sollen. |
| PostSnapshotScript |
Erhält oder setzt den Namen und den vollständigen Pfad einer Transact-SQL Skriptdatei, die nach der Anwendung des initialen Snapshots auf den Abonnenten ausgeführt wird. (Geerbt von Publication) |
| PreSnapshotScript |
Erhält oder setzt den Namen und den vollständigen Pfad einer Transact-SQL Skriptdatei, die ausgeführt wird, bevor der erste Snapshot auf den Subscriber angewendet wird. (Geerbt von Publication) |
| Priority |
Hat die Priorität der Veröffentlichung. |
| PubId |
Erhält den Wert, der die Publikation eindeutig identifiziert. (Geerbt von Publication) |
| ReplicateDdl |
Erhält oder setzt die Data Definition Language (DDL)-Replikationsoptionen, die bestimmen, ob DDL-Änderungen repliziert werden. (Geerbt von Publication) |
| RetentionPeriod |
Bekommt oder legt die Zeit fest, bis ein Abonnement abläuft, wenn das Abonnement nicht mit der Veröffentlichung synchronisiert ist. (Geerbt von Publication) |
| RetentionPeriodUnit |
Erhält oder setzt die Einheit, in der die Eigenschaft RetentionPeriodUnit ausgedrückt wird. |
| SecureFtpPassword |
Legt das Passwort (als SecureString Objekt) für die Anmeldung fest, die zur Verbindung mit dem File Transfer Protocol (FTP)-Server für Veröffentlichungen verwendet wird, die eine Abonnementinitialisierung über FTP ermöglichen. (Geerbt von Publication) |
| SnapshotAgentExists |
Es gibt die Option, ob der SQL Server-Agent-Job existiert, um den initialen Snapshot für diese Veröffentlichung zu generieren. (Geerbt von Publication) |
| SnapshotAvailable |
Erhält oder setzt einen Wert, der anzeigt, ob die Snapshot-Dateien für diese Veröffentlichung generiert wurden und zur Initialisierung von Abonnenten verfügbar sind. |
| SnapshotGenerationAgentProcessSecurity |
Erhält ein Objekt, das das Windows-Konto einlegt, unter dem der Momentaufnahmen-Agent-Job ausgeführt wird. (Geerbt von Publication) |
| SnapshotGenerationAgentPublisherSecurity |
Erhält den Sicherheitskontext, den der Momentaufnahmen-Agent verwendet, um sich mit dem Publisher zu verbinden. (Geerbt von Publication) |
| SnapshotJobId |
Erhält die Momentaufnahmen-Agent-Job-ID für die aktuelle Veröffentlichung. (Geerbt von Publication) |
| SnapshotMethod |
Erhält oder setzt das Dateiformat des ursprünglichen Snapshots. (Geerbt von Publication) |
| SnapshotSchedule |
Erhält ein Objekt, das den Zeitplan für den Momentaufnahmen-Agent für die aktuelle Veröffentlichung festlegt. (Geerbt von Publication) |
| SqlServerName |
Erhält den Namen der Microsoft SQL Server-Instanz, mit der dieses Objekt verbunden ist. (Geerbt von ReplicationObject) |
| Status |
Erhält oder bestimmt den Status der Veröffentlichung. (Geerbt von Publication) |
| Type |
Erhält oder bestimmt die Art der Veröffentlichung. (Geerbt von Publication) |
| UserData |
Erhält oder setzt eine Objekt-Eigenschaft, die es Nutzern erlaubt, eigene Daten an das Objekt anzuhängen. (Geerbt von ReplicationObject) |
| UsesHostName |
Erhält einen Wert, der angibt, ob die Merge-Publikation einen parametrisierten Zeilenfilter besitzt, der die Funktion HOST_NAME verwendet, um die Partition auszuwerten. |
| ValidateSubscriberInfo |
Erhält oder setzt die Funktionen, die verwendet werden, um eine Abonnentenpartition der veröffentlichten Daten zu definieren, wenn parametrisierte Zeilenfilter verwendet werden. |
| WebSynchronizationUrl |
Erhält oder setzt die URL, die mit der Websynchronisation verwendet wird. |
Methoden
| Name | Beschreibung |
|---|---|
| AddMergeDynamicSnapshotJob(MergeDynamicSnapshotJob, ReplicationAgentSchedule) |
Fügt einen Momentaufnahmen-Agent-Job hinzu, der die gefilterte Datenpartition für einen Abonnenten generiert, wenn ein parametrisierter Zeilenfilter verwendet wird. |
| AddMergeDynamicSnapshotJobForLateBoundComClients(Object, Object) |
Ermöglicht spät gebundenen COM-Clients, einen Momentaufnahmen-Agent-Job hinzuzufügen, der die gefilterte Datenpartition für einen Abonnenten generiert, wenn ein parametrisierter Zeilenfilter verwendet wird. |
| AddMergePartition(MergePartition) |
Definiert eine Subscriber-Partition für eine Merge-Publikation mit einem parametrisierten Zeilenfilter. |
| BrowseSnapshotFolder() |
Gibt den vollständigen Pfad des Verzeichnisstandorts zurück, in dem Snapshot-Dateien generiert werden. |
| ChangeMergeDynamicSnapshotJobScheduleWithJobId(String, ReplicationAgentSchedule) |
Ändert den Zeitplan für den Momentaufnahmen-Agent-Job, der die gefilterte Datenpartition für einen Abonnenten basierend auf der Job-ID generiert. |
| ChangeMergeDynamicSnapshotJobScheduleWithJobIdForLateBoundComClients(String, Object) |
Ermöglicht es spät gebundenen COM-Clients, den Zeitplan für den Momentaufnahmen-Agent-Job zu ändern, der die gefilterte Datenpartition für einen Abonnenten basierend auf der Job-ID generiert. |
| ChangeMergeDynamicSnapshotJobScheduleWithJobName(String, ReplicationAgentSchedule) |
Ändert den Zeitplan für den Momentaufnahmen-Agent-Job, der die gefilterte Datenpartition für einen Abonnenten basierend auf dem Jobnamen generiert. |
| ChangeMergeDynamicSnapshotJobScheduleWithJobNameForLateBoundComClients(String, Object) |
Ermöglicht es spät gebundenen COM-Clients, den Zeitplan für den Momentaufnahmen-Agent-Job zu ändern, der die gefilterte Datenpartition für einen Abonnenten basierend auf dem Jobnamen generiert. |
| CheckValidCreation() |
Prüft die gültige Replikationserstellung. (Geerbt von ReplicationObject) |
| CheckValidDefinition(Boolean) |
Gibt an, ob die gültige Definition überprüft werden soll. (Geerbt von Publication) |
| CommitPropertyChanges() |
Sendet alle zwischengespeicherten Property-Change-Anweisungen an die Instanz von Microsoft SQL Server. (Geerbt von ReplicationObject) |
| CopySnapshot(String) |
Kopiert die Snapshot-Dateien für die Merge-Publikation aus dem Snapshot-Ordner in einen Zielordner. |
| Create() |
Erstellt die Publikation. (Geerbt von Publication) |
| CreateSnapshotAgent() |
Erstellt den SQL Server-Agent-Job, der zur Erstellung des initialen Snapshots für die Veröffentlichung verwendet wird, falls dieser Job noch nicht existiert. (Geerbt von Publication) |
| Decouple() |
Entkoppelt das referenzierte Replikationsobjekt vom Server. (Geerbt von ReplicationObject) |
| DisableSynchronizationPartner(String, String, String) |
Deaktiviert den angegebenen Synchronisationspartner für diese Merge-Veröffentlichung. |
| EnableSynchronizationPartner(SynchronizationPartner) |
Aktiviert einen spezifizierten Synchronisationspartner für diese Merge-Veröffentlichung. |
| EnumAllMergeJoinFilters() |
Gibt alle Merge-Join-Filter zurück, die in der Merge-Veröffentlichung definiert sind. |
| EnumArticles() |
Gibt die Artikel in der Publikation zurück. (Geerbt von Publication) |
| EnumMergeDynamicSnapshotJobs() |
Gibt eine Liste von Merge-Dynamic Snapshot-Jobs zurück. |
| EnumMergePartitions() |
Gibt die für diese Merge-Veröffentlichung definierten Abonnentenpartitionen zurück. |
| EnumPublicationAccesses(Boolean) |
Gibt Logins zurück, die Zugriff auf den Publisher haben. (Geerbt von Publication) |
| EnumSubscriptions() |
Gibt die Abonnements zurück, die die Publikation abonniert haben. (Geerbt von Publication) |
| EnumSynchronizationPartners() |
Gibt die alternativen Synchronisationspartner für diese Merge-Veröffentlichung zurück. |
| GenerateFilters() |
Erstellt Filter für die Merge-Publikation. |
| GetChangeCommand(StringBuilder, String, String) |
Gibt den Änderungsbefehl aus der Replikation zurück. (Geerbt von ReplicationObject) |
| GetCreateCommand(StringBuilder, Boolean, ScriptOptions) |
Gibt den Create-Befehl aus der Replikation zurück. (Geerbt von ReplicationObject) |
| GetDropCommand(StringBuilder, Boolean) |
Gibt den Drop-Befehl aus der Replikation zurück. (Geerbt von ReplicationObject) |
| GetMergeDynamicSnapshotJobScheduleWithJobId(String) |
Gibt den Zeitplan für den Momentaufnahmen-Agent-Job zurück, der die gefilterte Datenpartition für einen Abonnenten basierend auf der Job-ID generiert. |
| GetMergeDynamicSnapshotJobScheduleWithJobName(String) |
Gibt den Zeitplan für den Momentaufnahmen-Agent-Job zurück, der die gefilterte Datenpartition für einen Abonnenten basierend auf dem Jobnamen generiert. |
| GrantPublicationAccess(String) |
Fügt den angegebenen Login der Publikationszugangsliste (PAL) hinzu. (Geerbt von Publication) |
| InternalRefresh(Boolean) |
Führt eine interne Aktualisierung aus der Replikation ein. (Geerbt von ReplicationObject) |
| Load() |
Lädt die Eigenschaften eines bestehenden Objekts vom Server. (Geerbt von ReplicationObject) |
| LoadProperties() |
Lädt die Eigenschaften eines bestehenden Objekts vom Server. (Geerbt von ReplicationObject) |
| MakePullSubscriptionWellKnown(String, String, SubscriptionSyncType, MergeSubscriberType, Single) |
Registriert ein Merge-Pull-Abonnement beim Publisher. |
| ReadLastValidationDateTimes(String, String) |
Gibt Informationen über die aktuellste Abonnementvalidierung für einen Abonnenten zurück. |
| Refresh() |
Lädt die Eigenschaften des Objekts neu. (Geerbt von ReplicationObject) |
| ReinitializeAllSubscriptions(Boolean) |
Markiert alle Abonnements für die Neuinitialisierung. |
| Remove() |
Entfernt eine bestehende Veröffentlichung. (Geerbt von Publication) |
| Remove(Boolean) |
Entfernt eine bestehende Veröffentlichung, selbst wenn der Vertrieb nicht zugänglich ist. (Geerbt von Publication) |
| RemoveMergeDynamicSnapshotJob(String) |
Entfernt den angegebenen dynamischen Snapshot-Job aus der Merge-Publikation. |
| RemoveMergePartition(MergePartition) |
Entfernt eine bestehende Abonnentenpartition, die auf der Merge-Veröffentlichung definiert ist. |
| RemovePullSubscription(String, String) |
Entfernt die Registrierung eines Abonnenten mit einem Pull-Abonnement für die Merge-Publikation. |
| ReplicateUserDefinedScript(String) |
Repliziert die Ausführung eines benutzerdefinierten Skripts an die Abonnenten einer bestimmten Publikation. (Geerbt von Publication) |
| ResynchronizeSubscription(String, String, ResynchronizeType, String) |
Synchronisiert ein Mergeabonnement in einen bekannten Validierungsstatus neu, der von Ihnen angegeben wird. |
| RevokePublicationAccess(String) |
Entfernt den angegebenen Login aus der Publikationszugriffsliste (PAL). (Geerbt von Publication) |
| Script(ScriptOptions) |
Erzeugt ein Transact-SQL Skript, das verwendet werden kann, um die Veröffentlichung gemäß den Skriptoptionen neu zu erstellen. (Geerbt von Publication) |
| ScriptMergeDynamicSnapshotJob(MergeDynamicSnapshotJob, ReplicationAgentSchedule, ScriptOptions) |
Erzeugt ein Transact-SQL-Skript, das verwendet werden kann, um den Momentaufnahmen-Agent Job neu zu erstellen, der einen Subscriber's partitioned data snapshot für Veröffentlichungen mit einem parametrisierten Zeilenfilter erzeugt. |
| ScriptMergePartition(MergePartition, ScriptOptions) |
Erzeugt ein Transact-SQL-Skript, das verwendet werden kann, um eine Subscriber-Partition für Publikationen mit einem parametrisierten Zeilenfilter neu zu erstellen. |
| ScriptPublicationActivation(ScriptOptions) |
Erzeugt ein Transact-SQL-Skript, das beim Ausführen den Status einer Merge-Publikation auf aktiv setzt. |
| StartSnapshotGenerationAgentJob() |
Startet die Aufgabe, die den ersten Schnappschuss für die Veröffentlichung erzeugt. (Geerbt von Publication) |
| StopSnapshotGenerationAgentJob() |
Versucht, einen laufenden Momentaufnahmen-Agent-Job zu stoppen. (Geerbt von Publication) |
| ValidatePublication(ValidationOption) |
Markiert alle Abonnements zur Validierung bei der nächsten Synchronisation. |
| ValidateSubscription(String, String, ValidationOption) |
Markiert das angegebene Abonnement zur Validierung während der nächsten Synchronisation. |