SQL Server Job

Source: Internet
Author: User

1. SQL Server Job creation: (SQL Server Agent-job) right mouse button, new job.

2. General Options: Define the job name, and description information.

3: "Step" option: New step

4: Define the step name, set the corresponding database, and write the T-SQL script.

Parsing the script (to ensure the correctness of the script)

5: "Schedule" option: New execution plan

Set the scheduled period for execution: (currently set to daily, 10s interval)

Click Confirm to complete the creation.

Right-click Start SQL Server Agent. Start the corresponding job.

Job Activity Monitor to view the start and run status of a job.

Select a specific job, right mouse button, and select View history to view the execution record information for the current job.

You can see that the execution time and job execution settings are consistent, and each interval of 10s is executed once.

Note: After the database server restarts, you need to start the SQL Server Agent service. Otherwise the job will not be executed.

SQL Server Job

Related Article

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.