This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
The AddAlternatePublisher method adds a server to a list of alternate Publishers. Subscribers to a publication can synchronize with listed alternate Publishers.
HRESULT AddAlternatePublisher( SQLDMO_LPCSTR pszAlternatePublisher, SQLDMO_LPCSTR pszAlternatePublicationDB, SQLDMO_LPCSTR pszAlternatePublication, SQLDMO_LPCSTR pszAlternateDistributor, SQLDMO_LPCSTR pszFriendlyName);
Use the AddAlternatePublisher method to add a server to a list of alternate Publishers to which Subscribers can synchronize. The list is stored at both the Publisher and Subscriber. A Subscriber can run the EnumAlternatePublishers method to obtain a list of enabled alternate Publishers and potential alternate Publishers. Subscribers can then synchronize with any listed enabled alternate Publisher.
Use the RemoveAlternatePublisher method to remove a server from the list of alternate Publishers.
If an application calls AddAlternatePublisher 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" are returned.