创建一个在SQL Server 2008中每24小时自动运行的存储过程 [英] Create a stored procedure that runs automatically at every 24 hrs in sql server 2008
本文介绍了创建一个在SQL Server 2008中每24小时自动运行的存储过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我有一个存储过程需要在sql server 2008中每24小时自动运行一次.我不确定,但是我认为我必须为此创建Job.对此一无所知.
有人可以帮我吗?
谢谢,
Dhaval
Hello,
I have a stored procedure that needs to be run automatically at every 24 hrs in sql server 2008.I am not sure but I think I have to create Job for that.I know nothing about it.
Can anybody help me?
Thanks,
Dhaval
推荐答案
Dhaval,
要自动化该proc,您确实需要创建一个作业,然后安排它..
检查此视频链接 [
Dhaval,
To automate the proc, you do need to create a job and then schedule it..
check this video link[^].
是的,您可以使用SQL Server代理来实现.
在SQL Server代理中,有一个作业"部分,可以在其中创建一个新作业,并查看创建该作业所需的步骤列表.
在创建过程中,可以指定运行存储过程的步骤(例如:exec MyStoredProcedure).
参考:
MS Technet:SQL Server代理 [ MSDN:安排工作 [
Yes, you can do it using SQL Server Agent.
In SQL Server Agent, there is a Jobs section, where one can create a new job and see a list of steps that is needed to create it.
During creation, one can specify the step to run a stored procedure(like: exec MyStoredProcedure).
Refer:
MS Technet: SQL Server Agent[^]
MSDN: Schedule a Job[^]
这篇关于创建一个在SQL Server 2008中每24小时自动运行的存储过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文