用于创建工作的代码 [英] Code to create a job

查看:61
本文介绍了用于创建工作的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我有一个存储过程每24小时执行一次,任何人都可以帮我在sql中创建一个作业,如果可能请回复一个包含sql代码的简短说明我的问题



提前致谢

Hello,
I have an stored procedure to execute for every 24 hours, Can any one help me to create a job in sql, if possible please reply with a brief statment which includes the sql code to my question

Thanks in advance

推荐答案

如果您的版本高于Express,您可以使用SQL Server代理功能来安排作业。请参阅此处: http://technet.microsoft.com/en-us/library/ms191439.aspx [ ^ ]。

其他相关主题: http://msdn.microsoft.com/en-us/library /ms189880.aspx [ ^ ]

如果您有Express,最简单的选择是使用 Windows任务计划程序 [ ^ ]并使用sqlcmd [ ^ ]实用程序来运行存储过程。
If you have an edition higher than Express, you can use the SQL Server Agent feature, to schedule jobs. See here: http://technet.microsoft.com/en-us/library/ms191439.aspx[^].
Other related topics: http://msdn.microsoft.com/en-us/library/ms189880.aspx[^]
If you have Express, your simplest option is to use Windows task scheduler[^] and use the sqlcmd[^] utility to run your stored procedure.


这篇关于用于创建工作的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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