Groups | Blog | Home
all groups > sql server replication > july 2006 >

sql server replication : Cannot view merge agent properties (to log errors)



Kath
7/4/2006 5:44:01 AM
Hi,
I am using SQL Server 2000 SP4, running merge replication with one
subscriber. We were previously using transactional replication but
encountered a number of problems with the queue reader, and we think merge
replication may suit our situation better and be more reliable. When we had
transactional rep, we had verbose logging on the q and log reader agents, and
I would like to turn on this logging for the merge agent. Publication machine
is also the distributor.

When I try to open the merge agent properties (right click), EM says
'establishing connection to SQL Server' and then after a while fails with the
msg 'a connection could not be established to <myRemoteSQLServer> ... SQL
Server does not exist or access denied ...'

I cannot connect to my remote SQLServer because it is a remote laptop
(connected to internet via 3G/GPRS/wifi, and via VPN to my publication
server), and is not on the same domain as my publication server.

Why does SQL Server want to connect directly to my subscription laptop to
view the properties of an agent that resides on the publication machine? I
never had this with the q or log reader agents when using transactional rep.
Is this just a unique 'feature' of the merge agent? How can I view/edit the
agent properties to allow logging of errors (can I perhaps enable this
through T-SQL?). I want to go to run agent step and set -Output
C:\Temp\MERGEOUTPUT.txt -Outputverboselevel 2

Thanks,
Kath
7/4/2006 7:09:02 AM
Hi,

Thanks for your reply. If I look at the jobs (Management/SQL Server
Agent/Jobs) I can't see one that seems to match this merge agent. I know the
subscription job appears in this folder on the subscriber, is this the job
folder you meant?

The replication jobs are:
Reinitialise subscriptions having data validation failures (alert response)
Distribution clean up
Agent history clean up
RNASERVER-GlimpsePub2-GlimpsePub2-12 (snapshot)
Expired subscription clean up

What do you mean by a phantom agent?

It isn't created by an ActiveX control. I simply created the replication
(publisher and subscriber) using the wizards in EM.

Thanks,
Kath




[quoted text, click to view]
Hilary Cotter
7/4/2006 9:30:17 AM
Something is wrong here. Perhaps the agent is a phantom agent or an agent
created by an ActiveX Control. Drill down in your jobs folder and see if you
can identify the job there, You should be able to edit it here and make the
necessary changes.

--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com

[quoted text, click to view]

Hilary Cotter
7/4/2006 9:19:38 PM
Sometimes the replication agent folders get messed up and either to not show
agents or display agents which have been deleted.

Is it possible that you are doing a pull? This might explain what you are
seeing.

--
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.

This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.

Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com



[quoted text, click to view]

petery NO[at]SPAM online.microsoft.com (
7/5/2006 5:36:09 AM
Hello Kath,

I understand that when you tried to configure merge agent to set verbose
log, you recived the error message that it cannot access remote server
hosting subscriber. If it is incorrect, please let me know.

As Hilary mentioned, this could occur if you tried to configure merge agent
of a pull subscription. Merge agent actually runs on the subscriber for
pull subscription, and you could find the job related on the subscriber.
Also, you could configure the verbose output directly in the job step on
the subscriber

If you have further questions on the issue, please feel free to let's know.

Best Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

=====================================================



This posting is provided "AS IS" with no warranties, and confers no rights.

petery NO[at]SPAM online.microsoft.com (
7/7/2006 12:00:00 AM
Hello Kath,

Just want to check in if you have further questions or concerns on this
issue. Please feel free to post back if you wound like further assistance.

Best Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

=====================================================


This posting is provided "AS IS" with no warranties, and confers no rights.

Kath
7/7/2006 4:20:02 AM
Hi Peter and Hilary,

Sorry for my delayed reply. Thanks to you both for your quick responses.

I do in fact have a pull subscription, I didn't realise the agent is
actually based on the subscriber. I don't have access to the subscriber
machine (it is a client's tablet) but will contact them today to talk them
through adding the verbose logging, I can see where I need to add it on my
test replication in the office (I suppose since both my publisher and
subscriber machines in my test replication scenario are on the same network,
that's why I am able to edit the merge agent properties from the publisher).

Thanks again for your help,
Kath



[quoted text, click to view]
petery NO[at]SPAM online.microsoft.com (
7/10/2006 5:01:00 AM
Hello Kath,

Great to hear things are clear to you now. Please feel free to post back if
you need further assistance. Thanks.

Best Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

=====================================================



This posting is provided "AS IS" with no warranties, and confers no rights.

AddThis Social Bookmark Button