简体   繁体   English

如何每天自动运行存储过程

[英]How to run a stored procedure automatically every day

如何设置每天在SQL Server 2008 R2中自动运行存储过程?

You need to use the Job scheduler in the sql agent. 您需要在sql代理中使用Job scheduler。 Sql express doesn't include it so I just have a batch file run as a scheduled task to run it. Sql express不包含它,所以我只有一个批处理文件作为计划任务运行来运行它。 -James -詹姆士

Under SQL agent you need to go to the job scheduler and create a job that runs the stored proc. 在SQL代理下,您需要转到作业计划程序并创建一个运行存储过程的作业。 Once you have created the job you can create one or more schedules for the job. 创建作业后,您可以为作业创建一个或多个计划。 http://msdn.microsoft.com/en-us/library/ms135739.aspx http://msdn.microsoft.com/en-us/library/ms135739.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM