Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
salthead
Starting Member
8 Posts |
Posted - 2011-02-18 : 12:38:33
|
I've been looking for a way to do a command line stop/start of the replication agent, but I can't find it in the documentation. Everything I see says how to do it in the gui, but I am setting this up as a batch job. Will someone point out the syntax for this command?Thank you. |
|
russell
Pyro-ma-ni-yak
5072 Posts |
Posted - 2011-02-18 : 13:13:16
|
[code]Sqlcmd -SServerNameHere -dmsdb -Q"EXEC sp_stop_job 'Name of job';" -E[/code]See here: http://msdn.microsoft.com/en-us/library/ms162773.aspx |
|
|
|
|
|