merge-replication

Slow merge replication over a WAN link - only downloads

北战南征 提交于 2020-01-26 04:09:25
问题 We've been using SQL Server merge replication for a few years to synchronise data between our data centres, but we are now suffering with a big performance issue. This may be because the amount of data we are synchronising has increased a lot this year. Our publisher is an always-on data centre in the UK. Our subscriber is a mobile data centre that travels around the world and is on for periods of up to a week at a time, approx. 25 times a year. However, it also spends the same amount of time

A trigger returned a resultset and/or was running with SET NOCOUNT OFF while another outstanding result set was active

风格不统一 提交于 2020-01-01 07:37:27
问题 I have 2 servers connected over a low speed wan and we're running SQL Server 2008 with Merge replication. At the subscriber, sometimes when attempting to insert new rows, I get this error: A trigger returned a resultset and/or was running with SET NOCOUNT OFF while another outstanding result set was active. My database doesn't have any triggers; the only triggers are the one created by the Merge replication Also, whenever this error occurs it automatically rolls back the existing transaction

How to replicate two tables with different structures but the same fields?

倖福魔咒の 提交于 2019-12-24 23:38:04
问题 I have two SQL server databases in different locations.I want to do something like replication. this is my scenario: In the first data base I have a table with following structure: tbl_worker _Name nvarchar(10) family nvarchar(20) State int city int and in second data base I have following table: tbl_employee _Name nvarchar(20) family nvarchar(15) Address nvarchar(30) Tell nvarchar(14) State int city int as you see the structure of my tables in two different data bases are not the same. but I

How to check replication snapshot agent status?

最后都变了- 提交于 2019-12-12 15:15:19
问题 I'd like to check the status of the agent after I start it using this statement EXEC sp_startpublication_snapshot @publication As I want to do a next step that needs the job to be already started. 回答1: I do not believe there is a built-in replication stored procedure to check the snapshot agent status, I could be wrong. However, you could query MSsnapshot_history. Something like this should do the trick: SELECT agent_id, runstatus, start_time, time, duration, comments, delivered_transactions,

SQL Server Replication : Removing broken subscriptions at the publisher

久未见 提交于 2019-12-12 15:06:31
问题 We have multiple subscriptions (merge pull) at our subscriber for only 1 "real" subscription. I think we actually broke it like this by adding and removing the subscription from the subscriber side, and then trying to replicate it... multiple times. Now the problem is not that the replication does not work, I'm pretty confident that I the answer for that. The problem is that I can't drop/delete the broken subscriptions at the subscriber anymore. It just does not work. When trying to run sp

Replicate a filtered subset of data: Merge or Transactional replication?

♀尐吖头ヾ 提交于 2019-12-12 14:09:21
问题 First of all thanks for reading. I need to replicate a subset of data that is based on a join filter; filter based on a join with an other table (Microsoft:"Using join filters, you can extend a row filter from one published table to another."). This is the setting: SQL Server 2012; replication sources on a subscription of a transaction replication replication needs to be one direction sync (from publisher to subscriber); only one subscriber/subscription; small dataset with not many

Violation of PRIMARY KEY constraint during Merge Replication

家住魔仙堡 提交于 2019-12-12 06:16:03
问题 I have two identical SQL Server 2005 databases (MYDB_Pub, MYDB_Sub1) where the merge replication was configured and it works fine. Recently we upgraded to SQL Server 2014. To test the replication functionality on the new SQL Server I followed the below steps: Backup the MYDB_Pub on the SQL Server 2005. Restore the MYDB_Pub on the SQL Server 2014 with the same name. Restore the same MYDB_Pub on the SQL Server 2014 with name 'MYDB_Sub1'. Configure Merge Replication on a single table 'Country'.

Merge Replication with Static Filters - Does not Delete from the subscriber database?

拈花ヽ惹草 提交于 2019-12-12 04:16:22
问题 I have a merge replication setup, I have applied static filters so as to send only specific rows to the subscribers from a publisher (table) say 'X' the filter is " where Name Starts with ( Select sub-query which returns 'T') ". Now after sync the filters are applied and the rows are synced. E.g: The subscribers will have the following 3 rows. ID Name 1 Tom 2 Tiger 3 Tim Now i go to the Publisher and delete the row 3. And sync again. The deletion is not propagated to the subscriber, and the

SQL Merge replication : How to tell what has changed.

本秂侑毒 提交于 2019-12-11 09:54:48
问题 I have a query regarding the merge replication. Is there any stored procedure which gives me exactly the column values that have been changed at the server, because of which the row will be replicated to the subscriber in the next replication session ? I have looked at this link http://www.replicationanswers.com/Script9.asp which allows me to get the info of all the rows that need to be replicated. But i want to know the specific columns that have changed for these rows. 回答1: You can

Are good security practices and auto identity range mgmt mutually exclusive?

試著忘記壹切 提交于 2019-12-10 18:11:36
问题 I'm trying to use Automatic Identity Range Management. However, the only way to ensure my users can INSERT records in tables with identity columns is to make them db_owner . Am I missing something? For full background please refer to my earlier question: Allow non-db_owner INSERT permissions in merge replication with auto identity range mgmt 回答1: Apparently they are mutually exclusive. Here is an excerpt from a Microsoft employee blog ( note, this is not "official" documentation, but it's