How to run a stored procedure in sql server every hour?

后端 未结 3 1973
没有蜡笔的小新
没有蜡笔的小新 2020-11-27 05:09

I have a table on which I want to perform some operations every hour. For this I created a Stored Procedure but don\'t know how to call it every hour. I know there are some

3条回答
  •  无人及你
    2020-11-27 05:47

    1) Use the SQL Server Agent (open MS Management Studio) 2) New Job 3) Add Step 4) Choose Transact SQL 5) EXEC MyStroredProc 6) Choose database 7) Add schedule 8) Occurs every hour

    Add notification to know that process is doing well (or bad).

    In the properties of SQL Server Agent check that all Auto restart options are switch ON

提交回复
热议问题