Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to schedule a stored procedure in AZURE

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?

like image 200
Lamin L. Janneh Avatar asked Sep 17 '15 12:09

Lamin L. Janneh


2 Answers

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.

like image 61
JP Hellemons Avatar answered Nov 15 '22 00:11

JP Hellemons


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/

like image 20
Thiago Custodio Avatar answered Nov 15 '22 02:11

Thiago Custodio