all groups > sql server programming > november 2004 >
You're in the

sql server programming

group:

Control jobs from a remote server


Control jobs from a remote server Andy Phillips
11/14/2004 8:39:34 PM
sql server programming:
I am able to disable a job by using the follwing command:
msdb..sp_update_job @job_name = 'Copy Logs',@enabled =0

How can I disable a job running on a remote server from my local server.
I need to do this because the remote server can go out of sync from my
process and I want to place jobs on hold on the remote server based on
activity on the local server

Re: Control jobs from a remote server David Gugick
11/15/2004 12:44:54 AM
[quoted text, click to view]

Try fully-qualifying the call [server].[db].[owner].[object]

you may need to set up the server you want to access as a linked server
using sp_addlinkedserver.


--
David Gugick
Imceda Software
www.imceda.com
Re: Control jobs from a remote server Andy Phillips
11/15/2004 9:51:15 AM
After linking the server and adding the server name to the beginning of my
SP it worked. Thanks.



[quoted text, click to view]

AddThis Social Bookmark Button