Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

SQL Server 2019

$
0
0

Hi,

I am having issues getting replication up and running correctly between two enterprise editions fo SQL Server 2019. I have just installed the latest CU1 update but am still struggling.

Intitially I had an issue with creating a snapshot, I have got aroun this by creating a publication using the following;

use db
GO
EXEC sp_addpublication
    @publication = db,
    @status = N'active',
    @allow_sync_tran = N'true',
    @allow_queued_tran = N'true',
    @allow_pull = N'true',
    @independent_agent = N'true'

Once the publication was created, I created the subscriber by;

USE [db]
GO
EXEC sp_addsubscription
@publication = db,
@subscriber = 'server',
@destination_db = db,
@sync_type = 'initialize with backup',
@backupdevicetype ='disk',
@backupdevicename = 'C:\db.bak'

This creates ok and give me one way replication from the publisher to the subscriber, however I want to use 2 way replication but I cannot seem to get this working. If I go to properites of the subscription I can see that updatable subscription is set to false and this cannot be change.

I have removed the subscription and tied to add @update_mode = 'sync tran' to the sp_addsubscription commands above but I just receive incorrect syntax near @update_mode

Could somebody help me to acheive the transactional replication with updatabe subscription please?


Peter Munnelly


Viewing all articles
Browse latest Browse all 4054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>