Operator Object
Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.
The Operator object represents a single Microsoft SQL Server operator. SQL Server operators receive alert and job status notification in response to events generated by the server.
Properties
Methods
|
주의
Use the Operator object to manage the SQL Server operators defined for an instance of SQL Server. With the Operator object, you can:
- Define new operators on an instance of SQL Server.
- Assign alert notifications to the operator.
- Change the scheduled response times for an existing operator.
The Name property of an Operator object is required when creating an operator on SQL Server. The Name property uses the SQL Server data type varchar(100).
A SQL Server operator created with the minimum required values has no schedule information and is assigned no notifications.
To create a SQL Server operator
Create an Operator object.
Set the Name property.
Add the Operator object to the Operators collection of a connected JobServer object.
To modify an existing SQL Server operator
Get an Operator object from the Operators collection of a connected JobServer object.
Use the BeginAlter method to mark the start of changes to existing property values.
Change property values to reflect changes in behavior.
Use the DoAlter method to mark the end of changes and make changes in the SQL Server operator.