Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sp_startpublication_snapshot for SQL Server 2000

Status
Not open for further replies.

teqmem

Programmer
Nov 26, 2004
114
US
Hello,

In SQL Server 2000, is there a similar procedure to SQL Server 2005's "sp_startpublication_snapshot" procedure?

I have a transact-sql script that creates a publication and I would like to automatically start the snapshot agent for this publication.

Thanks.
 
Get the jobid from the replication tables and use sp_start_job to start the SQL Agent job.

Denny
MCSA (2003) / MCDBA (SQL 2000)
MCTS (SQL 2005 / Microsoft Windows SharePoint Services 3.0: Configuration / Microsoft Office SharePoint Server 2007: Configuration)
MCITP Database Administrator (SQL 2005) / Database Developer (SQL 2005)

My Blog
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top