Do you have problems with SQL Server jobs?

Source: Internet
Author: User
Tags server error log what sql net send
December 10,200 3
Troubleshooting SQL server jobs

By Alexander chigrik

If you have problems with SQL Server jobs, review this troubleshooting checklist to find potential solutions.

1. Check that you use the latest SQL Server Service Pack.

Because your bugs were fixed in SQL Server service packs, you shoshould install the latest SQL Server Service Pack. to check what SQL Server Service Pack are you running, see this link: How can I check what SQL Service Pack am I running?

2. Check that the task scheduler service is running.

This service must be started, if you need the job be scheduled. to start Task Scheduler Service on Windows NT choose: Start-> Settings-> Control Panel-> services (choose startup "automatic" type) and start.

To start Task Scheduler Service on Windows 2000 choose: Start-> Settings-> Control Panel-> Administrative Tools-> services (choose startup "automatic" type) and start.

3. Check that the SQLServerAgent and EventLog services are running, if all the jobs are not starting.

These services must be started, if you need the job be started. So, if these services are not running, you shoshould run them.

4. Check that the account the SQLServerAgent services runs under is a member of the Domain Users Group.

The LocalSystem account does not have network access rights, so if your jobs require resources within ss the network, or if you want to your y operators through e-mail or pagers, you must set the account the SQLServerAgent service runs under to be a member of the Domain Users Group.

5. Check that the job is enabled, if the job is not starting.

The job can be enabled or disabled. to check that the job is enabled, you can do the following:

    1. Run SQL Server Enterprise Manager.
    2. Expand a server group; then expand a server.
    3. Expand management; then expand SQL Server Agent.
    4. Double-click the appropriate job to see that the job enables.

6. If the job works fine when you start it manually, but does not start on the scheduled base, check that the job's schedule is enabled.

The job schedule can be enabled or disabled. to check that the job schedule is enabled, you can do the following:

    1. Run SQL Server Enterprise Manager.
    2. Expand a server group; then expand a server.
    3. Expand management; then expand SQL Server Agent.
    4. Double-click the appropriate job and choose the schedules tab.
    5. Double-click the appropriate job schedule to see that the job schedule is enable.

7. Check the history values of the job to determine the last date the job worked.

To view the history values of the job, you can do the following:

    1. Run SQL Server Enterprise Manager.
    2. Expand a server group; then expand a server.
    3. Expand management; then expand SQL Server Agent.
    4. Right-click the appropriate job and choose 'view job history '.

8. Check the SQL Server Error Log, SQL Server Agent error log, and Windows NT or Windows 2000 Application Log to get a more detailed error description.

Comparing the dates and times for alert failure events between the SQL Server Error Log, the SQL Server Agent error log, and the Windows NT or Windows 2000 Application Log can help you to determine the reason of the failure.

9. if the job works, but the responsible operator does not receive notification, try to send an 'e-mail ', 'pager', or 'net send' message to this operator manually.

In most cases, this problem arises because you have entered an incorrect 'e-mail ', 'pager', or 'net send' ses SSEs. if you can send an 'e-mail ', 'pager', or 'net send' message manually to this operator, check the account the SQL Server Agent runs under and check the operator's on-duty schedule.

10. You may obtain the 8198 error message if a job is owned by a Windows NT authenticated user.

This is a Windows NT 4.0 bug. To work around this problem, change the job owner to a standard SQL Server user or System Administrator (SA) or upgrade to Windows 2000.

11. You may get an error in enterprise manager if you add a new step to a job that was created as part of building a database maintenance plan.

This is an SQL Server 7.0 bug; SQL Server 2000 does not contain such problems. To work around this problem, do not modify jobs created by the database maintenance plan wizard.

12. The job step fails if the First insert of Batch Job encounters the error 3604.

If First insert of batch job on a table that has a unique index with the ignore_dup_key clause violates the uniqueness property of the index, the job step fails with the error 3604. this is SQL Server 2000 bug. this bug was fixed in SQL Server 2000 Service Pack 1.

13. Multiple SQL Agent jobs owned by the same login and launched at the same time may fail with the primary key error message.

This is SQL Server 2000 bug. This bug was fixed in SQL Server 2000 Service Pack 1.

14. SQLAgent T-SQL job that contains set nocount on and sends the results to an output file may still write the rowcount line to an output file.

To work around this problem, you shocould change the job step type to operating system command (cmdexec) and use the osql.exe utility to send the results to an output file.

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.