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.
- 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.
- start, stop, and pause SQL server proxy.
(1) via SQL server Configuration Manager
(2) CMD command: Net start SQLServerAgent; net stop SQLServerAgent
- IsSQL ServerProxy select account:Local Account orNetworkService
- Use SQL Server Proxy connection SQL Server. SQL Server Proxy service available Windows Authentication or SQL Server Authentication connection SQL Server Local instance.
- use SQL server agent Error Log: SSMS--SQL Server Agent-error logs
- Use Performance objects : Start performance tool, create a new log, add jobs, jobsetps, alerts, statistics Object .
- 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