Question

After i set up distributor database on my local server , i created a publication on local server based on peer to peer transaction replication and then i go through making subscribers. When i try to create subscriber on a server named "Sqlserver2012" , the error occurred on Initialization with this text:

" TITLE: New Subscription Wizard

SQL Server could not create a subscription for Subscriber '**\SQLSERVER2012'.


ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

Peer-to-peer publications only support a '@sync_type' parameter value of 'replication support only', 'initialize with backup' or 'initialize from lsn'. The subscription could not be found. Changed database context to 'Centeral'. (Microsoft SQL Server, Error: 21679)"

What should i do?

Many thanks prior to your answers ;)

Was it helpful?

Solution

As noted in the section Considerations for Using Peer-to-Peer Replication in Peer-to-Peer Transactional Replication, subscriptions must be initialized by using a backup or with the replication support only option.

Subscriptions must be initialized by using a backup or with the 'replication support only' option. For more information, see Initialize a Transactional Subscription Without a Snapshot.

You are currently attempting to initialize Peer-to-Peer subscription with a snapshot (sync_type automatic) using the New Subscription Wizard which is not allowed.

I suggest using the Configure Peer-to-Peer Topology Wizard to add new peer nodes to your topology. Instructions on how to use the Configure Peer-to-Peer Topology Wizard to configure your Peer-to-Peer topology can be found in How to: Configure Peer-to-Peer Transactional Replication (SQL Server Management Studio).

Alternatively, you can configure your Peer-to-Peer topology using T-SQL which is covered in How to: Configure Peer-to-Peer Transactional Replication (Replication Transact-SQL Programming).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top