alter error class

Description

Changes an existing error class by copying error actions from another error class.

Syntax

alter [replication server] error class error_class
   set template to template_error_class

Parameters

replication server

Indicates that the error class is a Replication Server error class and not a data server error class.

error_class

The error class to modify.

set template to template_error_class

Use this clause to update an error class based on another error class. alter error class copies the error actions from the template error class to the existing error class.

Examples

Example 1

Changes my_error_class using rs_sqlserver_error_class as the basis:

alter error class my_error_class
    set template to rs_sqlserver_error_class

Example 2

Changes the my_rs_err_class Replication Server error class based on rs_repserver_error_class, which is the default Replication Server error class:

alter replication server error class my_rs_err_class
set template to rs_repserver_error_class

Usage

See also

assign action, create error class, drop error class