我有一个存储过程,我希望它在每个半夜运行 但我的数据库在aZure
如何使用sql代理安排任务?
Azure 自动化:云中的 SQL 代理:https://azure.microsoft.com/en-us/blog/azure-automation-your-sql-agent-in-the-cloud/
制作一个小型 powershell 脚本并将其安排在 azure 仪表板中。
您可以使用 Azure Web Job 并创建一个控制台应用程序,该应用程序只需调用您的存储过程并安排它在每个午夜运行。
以下是如何使用 Azure Web 作业的示例:
https://azure.microsoft.com/en-us/documentation/articles/web-sites-create-web-jobs/
您检查过这个网站吗?有一个很好的例子,我认为你吃的东西是为了达到目的。 http://blogs.msdn.com/b/ms-tech_learning_with_prasant/archive/2014/07/09/scheduling-job-on-sql-azure.aspx
运行手册会很好。有用的参考:
另一种选择是 ADF。参考:
https://learn.microsoft.com/en-us/azure/azure-sql/database/job-automation-overview?view=azuresql