立即测试 SQL 代理作业以忽略计划的任何解决方案

发布于 2024-07-30 20:01:36 字数 95 浏览 4 评论 0原文

我正在使用 SQL Server 2008,我想立即测试 SQL Server 代理作业的执行正确性以忽略计划。 有任何想法吗?

提前致谢, 乔治

I am using SQL Server 2008 and I want to test the execution correctness of my SQL Server Agent job immediately to ignore the schedule. Any ideas?

thanks in advance,
George

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

风筝有风,海豚有海 2024-08-06 20:01:41

更改计划以使其在未来五分钟内运行。
然后离开服务器,以便它完全在您想要测试的环境中运行。

Change the schedule to have it run five minutes in the future.
Then get off the server so it runs in exactly the environment you want to test.

不乱于心 2024-08-06 20:01:40

创建一个封装作业所有方面的存储过程,然后在 SQL 代理中使用它。 然后,您可以从命令行调用该过程来测试它,例如。 exec dbo.MyProcedure @param1 = 'foo'

Create a stored procedure that encapsulates all the aspects of your job and then use that in SQL Agent. You can then just call the procedure from the command line to test it eg. exec dbo.MyProcedure @param1 = 'foo'

沉睡月亮 2024-08-06 20:01:39

在 SSMS 中,在“SQL Server Agent”节点下,打开“作业”子节点并找到您的作业,右键单击它并选择“启动作业” - 这将立即启动并运行作业。

替代文本

马克

In SSMS, under the "SQL Server Agent" node, open the "Jobs" subnode and find your job, right click on it and select "Start Job" - that'll start and run the job right away.

alt text

Marc

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文