6

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?

jrummell
  • 42,637
  • 17
  • 112
  • 171
Lamin L. Janneh
  • 85
  • 1
  • 1
  • 6

3 Answers3

7

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.

JP Hellemons
  • 5,977
  • 11
  • 63
  • 128
4

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/

Thiago Custodio
  • 17,332
  • 6
  • 45
  • 90
0

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

Luckbox72
  • 147
  • 1
  • 2
  • 16