Recurring Jobs

Discussion in 'Databases' started by pinch, May 21, 2008.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I have a bit of SQL (a single query) that I need to run automatically every few hours. What would be the best way to do that on this host? Are we allowed to schedule server jobs?

    I AM using SQL Server 2005.
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    We don't allow Scheduled SQL job. You can use the scheduled task tool to schedule an HTTP call to any page on your site though.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. Interesting. I'll have to look into that. Thanks.
     
  4. Hi,
    If you created the function but it is not running from the event I'd suspect something is missing or wrong.

    As an example of a page load event that runs with no user intervention, this is one I'm using here:

     
  5. Hmmm. I'm stumped on this one. My code is also very simple:

     
  6. I'll give that a shot, thanks. I have some exception management set up and it appears no exceptions are being generated then the page it called, so this will be a tough one.
     
  7. Ok. I've implemented a recurring job but something is still not quite right. What I did was place the method that I need to run inside of the Page_Load event for the page that I have setup through the Recurring Task tool. However, that method never gets called. But, if I navigate to that page myself through my browser it appears the method does get calls and everything functions as it should.

    Does the ASP.net page go through the normal lifecycle when an HTTP request is made to that page? I don't see why it wouldn't.
     
  8. i am having the same problem... searching the Form for an answer somewhere else. Please advise.... thanks in advance.
     
  9. Hi,
    Which "same" problem...Running a scheduled event?
    Salute,
    Mark
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page