Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Cette fonctionnalité sera supprimée dans une prochaine version de Microsoft SQL Server. Évitez d'utiliser cette fonctionnalité dans de nouveaux travaux de développement, et prévoyez de modifier les applications qui utilisent actuellement cette fonctionnalité.
The RemoveAlternatePublisher method disables an alternate Publisher in the alternate Publishers list.
Syntaxe
object
.RemoveAlternatePublisher(
szAlternatePublisher
,
szAlternatePublicationDB
,
szAlternatePublication
)
Parts
- object
Expression that evaluates to an object in the Applies To list.
- szAlternatePublisher
String that specifies the name of the alternate Publisher.
- szAlternatePublicationDB
String that specifies the name of the publication database.
- szAlternatePublication
String that specifies the name of the publication.
Prototype (C/C++)
HRESULT RemoveAlternatePublisher(
SQLDMO_LPCSTR pszAlternatePublisher,
SQLDMO_LPCSTR pszAlternatePublicationDB,
SQLDMO_LPCSTR pszAlternatePublication);
Notes
Use the RemoveAlternatePublisher method to disable a server in the list of alternate Publishers to which pull subscriptions can synchronize. Subscribers run the EnumAlternatePublishers method to obtain a list of enabled alternate Publishers to which they can synchronize data changes.
Use the AddAlternatePublisher method to enable a server in the list of alternate Publishers to which subscriptions can synchronize.
Remarque : |
|---|
| If an application calls RemoveAlternatePublisher on an instance of SQL Server version 7.0, the constant, SQLDMO_E_SQL80ONLY, and the message "This property or method requires Microsoft SQL Server 2000 or later" are returned. |
Applies To:
Voir aussi
Référence
AddAlternatePublisher Method
AllowSyncToAlternate Property
EnumAlternatePublishers Method
Remarque :