all groups > sql server replication > february 2004 >
You're in the

sql server replication

group:

Autorestart Replication after Network Error


Autorestart Replication after Network Error Patrick
2/5/2004 1:50:49 PM
sql server replication:
Hi

I run a replication that works fine. but sometimes during night the firewall
between the two servers will be restarted. This leads in the
Replikationmonitor/Publisher/MyServer/Mypublication to an Error. The
Push-Service says "General Network error". So this is not so bad, but I have
after that to restart the synchronisation manually.

Is there a way that it restarts automaticly when failed?

Thanks
Patrick

Autorestart Replication after Network Error Paul Ibison
2/6/2004 12:33:56 PM
Patrick - you can place your agent job in a infinite loop.
Have a second step which goes back to the first if the
first fails. (see http://www.sqlmag.com/Articles/Index.cfm?
ArticleID=19842)
Regards,
Re: Autorestart Replication after Network Error Patrick
2/10/2004 3:49:24 PM
Hi Paul

Thanks for your answer. Is it correct, that when I edit the Push Agent, I
see these 3 steps

1. Distribution Agent startup message.
2. Run agent.
3. Detect nonlogged agent shutdown.

so if I remove step 3, it shouldn't stop and try later again. right?

Thanks
Patrick



"Paul Ibison" <anonymous@discussions.microsoft.com> schrieb im Newsbeitrag
news:bedd01c3ecf0$8b078d60$a401280a@phx.gbl...
[quoted text, click to view]

Re: Autorestart Replication after Network Error skelly NO[at]SPAM online.microsoft.com
2/15/2004 7:07:05 AM
Hi Patrick,

No, you should not remove step 3. What Paul explained is that you should
edit the properties of the "run agent" step to return to the first step in
case of failure. To do this, go to the agent properties and edit the 'run
agent' step. On the Advanced tab, change 'on success action'.

The problem I see with that method is that you may not be notified if a
serious problem occurs. The agent will just keep retrying and will never
fail.

Another option would be to change the agent schedule so that is doesn't run
continuously. If you have many replication agents, starting many agents
simultaneously can cause performance problems.

Regards,
Shirley
SQL Server Support

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2001 Microsoft Corporation. All rights
reserved.
Re: Autorestart Replication after Network Error Patrick
2/16/2004 10:18:10 AM
Thank you for that. That was exact what I was looking for

Patrick

"Shirley Kelly [MS]" <skelly@online.microsoft.com> schrieb im Newsbeitrag
news:7WwfYJ58DHA.3736@cpmsftngxa07.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button