Skip to Content

delay - job created by the RAISE EVENT

It's possible to change the scheduling of a job created by a RAISE EVENT, and instead of executing immediately, to schedule it as +1 minute delay?

Thanks!

PS: i have to wayt because, after the event, some tables are updated in my program and i have to wait the commit

Edited by: Was Wasssu on Sep 6, 2010 9:08 AM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Sep 06, 2010 at 07:12 AM

    HI!

    If the program executed by the job is a custom, you can put a "WAIT UP TO 60 seconds" instruction at its start.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 06, 2010 at 07:56 AM

    Have you tried using COMMIT WORK AND WAIT and raise the event afterwards?

    Thomas

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.