431. chapter14.working with SQL Server Agent job

Source: Internet
Author: User

Agent job

 

1. about SQL server agent

use SQL server to store job information. A job contains one or more job steps, each of which has its own job. SQL server the agent can run jobs as scheduled or run jobs in response to specific events, you can also run the job as needed. By default, SQL server the agent is closed.

  1. Configuration SQL Server Proxy. During installation SQL Server The proxy specifies some configuration options. Or pass SSMs, SMO And SQL Server The proxy stored procedure is used to manage configurations.
  2. start, stop, and pause SQL server proxy.

(1) via SQL server Configuration Manager

(2) CMD command: Net start SQLServerAgent; net stop SQLServerAgent

  1. IsSQL ServerProxy select account:Local Account orNetworkService
  2. Use SQL Server Proxy connection SQL Server. SQL Server Proxy service available Windows Authentication or SQL Server Authentication connection SQL Server Local instance.
  3. use SQL server agent Error Log: SSMS--SQL Server Agent-error logs
  4. Use Performance objects : Start performance tool, create a new log, add jobs, jobsetps, alerts, statistics Object .
  5. Security: Creates a dedicated user for the proxy. Grant the required permissions to the Agent user and do not belong to administrator group

II,Job

1. A job is a series SQL Server The specified actions performed by the proxy in sequence. A job can execute various types of activities, including T-SQL , CMD , ActiveX,SSIs, SSAs . The job can be run repeatedly or as scheduled. You can generate various messages to notify users of the results of job execution.

2. Create a job ( SSMs, SMO, T-SQL )

3. authorize a job

4. Manage jobs

5.Practice(2-4)

 

III,Create a maintenance plan

Is one or more jobs, and then assignedSQL Server AgentExecute

 

4. Configuration operators

V,ConfigurationAlerts

 

operators & alerts Yes agent . SSMs easy and complete configuration

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.