Remove Method (Operator)

SQL-DMO

SQL-DMO

Remove Method (Operator)

The Remove method drops the referenced SQLServerAgent operator, optionally reassigning notifications to a named operator.

Applies To
Operator Object
Syntax

object.Remove( [ NewName ] )

Parts

object

Expression that evaluates to an object in the Applies To list.

NewName

Optional. A string that identifies an existing operator by name.

Prototype (C/C++)

HRESULT Remove(SQLDMO_LPCSTR NewName = NULL);

Remarks

The Remove method removes the SQL-DMO object referencing the dropped operator from its containing collection.