all groups > sql server replication > june 2006 >
You're in the

sql server replication

group:

snapshot agent won't restart


snapshot agent won't restart danieltsai via SQLMonster.com
6/19/2006 2:50:23 PM
sql server replication:
Hi,
I set up schedule of snapshot agent running once every day and a
subscriber agent after it. It was doing well. However, when I restart SQL
server using service manager every time, all schedules never run after the
restart. Is there any setting I can change to let agents start automatically
after SQL service restart ?


Regards,


Daniel Tsai

--
Message posted via SQLMonster.com
Re: snapshot agent won't restart Paul Ibison
6/19/2006 4:34:21 PM
You need to ensure that the sql server agent itself restarts, eg.
use master
go
CREATE PROCEDURE spAgentStartup
AS
exec master.dbo.xp_cmdshell 'net start SQLAgent$pdslive'

GO
exec sp_procoption N'spAgentStartup', N'startup', N'true'
GO
Cheers, Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)

AddThis Social Bookmark Button