how to schedule a stored procedure in AZURE

我是研究僧i 提交于 2019-12-04 22:52:45

问题


I have a stored procedure that I want it to run in every mid nigh but my data base is in aZure

How can I schedule a task using sql agent?


回答1:


Azure Automation: Your SQL Agent in the Cloud: https://azure.microsoft.com/en-us/blog/azure-automation-your-sql-agent-in-the-cloud/

make a small powershell script and schedule it in the azure dashboard.




回答2:


You can use Azure Web Job and create a console App that just call your stored procedure and schedule it to run every mid night.

Here's a sample of how to use Azure Web Job:

https://azure.microsoft.com/en-us/documentation/articles/web-sites-create-web-jobs/




回答3:


Have you checked this site. There is a pretty good example of what I think you ate trying to accomplish. http://blogs.msdn.com/b/ms-tech_learning_with_prasant/archive/2014/07/09/scheduling-job-on-sql-azure.aspx



来源:https://stackoverflow.com/questions/32630851/how-to-schedule-a-stored-procedure-in-azure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!