RE: Merger Replication - SQL2000

Tech-Archive recommends: Fix windows errors by optimizing your registry




A few things

- you cannot use SQL2000 subscriber to merge when publisher is SQL2005.

- how often do you run the merge snapshot agent? if you use backup as
snapshot, and use nosync option when creating subscription, the merge agent
will try to deliver all changes since last snapshot. Meaning, this could be a
lot of changes going across wire if snapshot run weekly - or if disabled.

- General network error - typically means connectivity is getting interrupted.

ChrisB MCDBA
MSSQLConsulting.com

"Des Norton" wrote:

Hi NG

Please forgive the length of this post, but I feel the background might have
some bearing on a possible solution.

We had a server running Win2003 + SQL 2000 SP3a that was acting as a
publisher and distributor for a single database. We lost the server, and
had it rebuilt as a Win2003R2 + SQL 2005 SP1. We then attached a backup of
the database, and set up the server as a publisher and distributor. Due to
the size of the actual database, we decided to use a test database with a
single table and 5 records.

The subscriber is a client of ours running Win2000Server (SP4) + SQL2000
SP3a. We are unable to upgrade their SQL or install anything on their
server. Their view is that it was working before, it must now continue to
work. We have a Win2003Server + SQL2000 SP3a box in our office (not the
same location as the publisher/distributor). Both us and our client use a
512ADSL line for connectivity.

After 2 weeks of failure, we were unable to get merger replication to work
with as SQL2005 publisher/distributor and a SQL2000 subscriber. Both push
and pull options were unsuccessful. A decision was then made to revert the
publisher/distributor to SQL2000 (SP3a). The database was restored and the
publication successfully set up.

On the publisher/distributor server, we installed a second instance of
SQL2000(SP3a), and set up a pull subscription via FTP to the first instance.
This replication kept failing. We then moved the contents of the single
largest table (4.5GB/11.8mil records) into a separate database, and were
able to successfully set up a pull subscription to the publisher. We then
copied all the records back to the publisher, and synchronised the 2
instances on the same server. This took 45.5 hours. The synchronised
subscriber was then backed up, zipped, and FTPd to our offices, were we
restored it onto our Win2003Server + SQL2000 SP3a box, with the option "NO,
Subscriber already has schema and data" option selected. We then modified
the agent to add verbose logging, and proceeded to start synchronising to
ensure that the replication works.

However, the agent indicates a successful sync, but the log indicates
errors. We then changed the merge agent profile to "slow" and set the
QueryTimeout to 600.

Log start time: [11/26/2007 3:46:04 PM]
Again the logs indicate error:

[11/26/2007 4:55:27 PM]GENHS001.MFP_Collections: {call sp_MSgetversion }
Percent Complete: 33
Processing article 'dataRecordField'
The process could not query row metadata at the 'Publisher'.
The process could not enumerate changes at the 'Subscriber'.
The merge process encountered an unexpected network error. The
connection to Publisher 'GENHS001' is no longer available.
Percent Complete: 0
The process could not query row metadata at the 'Publisher'.
Percent Complete: 0
Category:NULL
Source: Merge Replication Provider
Number: -2147200996
Message: The process could not query row metadata at the 'Publisher'.
Percent Complete: 0
Category:SQLSERVER
Source: GENHS001
Number: 11
Message: General network error. Check your network documentation.
Percent Complete: 0
Category:NULL
Source: Merge Replication Provider
Number: -2147199469
Message: The process was successfully stopped.

On the publisher, the replication monitor indicates that the agent is
suspect as it has not had a response in the last 10 minutes.


The log indicates a connection issue.
Is there any way to know if there was a definite connection issue, or if the
replication simply timed out?
Is there any other possibility?

Any help will be greatly appreciated.

Des Norton



.



Relevant Pages

  • Re: Transactional Replication 2005
    ... replication from production database as the publisher and subscribe it to ... Create the distributor on the publisher server ... I then create the subscriber, ... the identity NFR property setting has to match between publisher ...
    (microsoft.public.sqlserver.replication)
  • Re: Sp_adjustpublisheridentityrange and resetting identity range
    ... > identity ranges you have set on your publisher. ... > ranges which will work for the lifetime of their replication solution. ... > should apply this value on the subscriber. ... >> restored the published database from a backup. ...
    (microsoft.public.sqlserver.replication)
  • Re: Merge Repl Failure - Rollback or not
    ... Looking for a SQL Server replication book? ... > Publisher box now shipped to new location. ... > Generate a single insert at subscriber and replicate. ... > Disconnecting from Subscriber 'GENDEV003' ...
    (microsoft.public.sqlserver.replication)
  • Re: Disaster Recovery for Bi-Directional Transactional Replication
    ... With un-directional replication you can have multiple publishers publishing ... If the main publisher went off line a standby publisher could go online and ... subscriber, and then you would be faced with the same question as to what ... Looking for a SQL Server replication book? ...
    (microsoft.public.sqlserver.replication)
  • Re: Bi-directional Transaction Replication or Immediate Updates
    ... is there a SQL 2005 Replication book ... occurs on the subscriber, this can be in excess of 100 ms, so its not really ... So in general if you have a small number of subscribers, a link or publisher ... Looking for a SQL Server replication book? ...
    (microsoft.public.sqlserver.replication)