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

Trying to figure out Merge Replication using SQL Server 2008r2 Express

$
0
0

I am trying to create a duplicate copy of seven tables in a database.  The destination database will reside on a different server in another city of the state and the database will have a different name and is running SQL Server 2008 R2 Enterprise Edition.  One of the purposes of the destination database is to keep historical data so the source database can have old data deleted to free up space (The source database is a SQL Server 2008 R2 Express edition).  The source database has an application that inserts statistical data all day long (I believe 24 hours - 3 shifts).  They want current data but not necessarily real time in the destination, maybe backuped or refreshed every hour or less.  I believe an hours worth of data that is added to each source table is between 1000 and 2000 records.  There may be some updates (changes to existing data).  Currently, each source table has around 2,000,000 records.

I have been trying to get Merge Replication to work with no success or limited. I have set up the publisher and distributor on SQL Server 2008r2 Developer Edition on a Windows 2008r2 Server.  The subscriber is set up on Window 7 workstation with SQL Server 2008r2 Express edition.  I got it to work once and it copied the records on the workstation(subscriber) to the server(publisher) as desired.  When I try to insert more records in the workstation(subscriber) database I get the error: 

Msg 20092, Level 16, State 1, Procedure MSmerge_disabledml_07E55899B2884365B7E0F3A2ED1761F4, Line 8

Table '[dbo].[Ci_Results]' into which you are trying to insert, update, or delete data is currently being upgraded or initialized for merge replication. On the publisher data modifications are disallowed until the upgrade completes and snapshot has successfully run. On subscriber data modifications are disallowed until the upgrade completes or the initial snapshot has been successfully applied and it has synchronized with the publisher.

Msg 3609, Level 16, State 1, Line 10

The transaction ended in the trigger. The batch has been aborted.

I have run sp_adjustpublisheridentityrange,  the snapshot agent, and the merge agent.  I still get the same error.

Thanks for any help,

Fred


Fred Schmid


Viewing all articles
Browse latest Browse all 4054

Trending Articles



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