SQL Server job suddenly does not work

Source: Internet
Author: User

The statement to be executed was not found. Later, the function was completed.

It was originally run once every minute, but it was not run for a long time. It was normal to run it manually. Why did it suddenly stop working? In addition, it is found that none of them work normally. I checked and found that the record was stopped at the "month", and the system now uses the month number. It turns out that this machine has been changed to the running time to the month number, and today it is changed back to the normal time.

: Since the next run time calculated previously is in the month number, and the current system is changed to the normal time after the month number, it will not run. Run the following code to check the next running time:

 

Schedule_idname jjob_idnext_run_time 66 next_run_time

Next_run_date

Sysjobschedules j

Sysjobs s sjob_id jjob_id

Name

@ Job_name

It is a time point of the month number.

: Export the script, delete the old one, and recreate it. Then it will work normally.

Next running time (I can see it on the Internet, but I have not tried it ).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.