如何从另一台服务器上的存储过程中运行作业? [英] How to run a Job from a Stored Procedure in another server?

查看:177
本文介绍了如何从另一台服务器上的存储过程中运行作业?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以从其他服务器上的存储过程中运行作业?如果可以,怎么办?

Is it possible to run a Job from a stored procedure located in a different server? If so, how?

推荐答案

那么为什么不考虑使用

exec LINKEDSERVERNAME.msdb.dbo.sp_start_job 'Job Name'

?

(虽然没有进行测试,也许一些看不见的答案是相同的,但是被删除为不正确且不起作用)

(didn't test it though, maybe some-unseen-answer was the same, but erased as incorrect and not working)

链接服务器登录必须有足够的特权才能运行作业-至少它必须是作业的所有者.

There must be enough privileges for linked-server-login to run the job, of course - at least it has to be job's owner.

这篇关于如何从另一台服务器上的存储过程中运行作业?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆