Create a Derived Class

Use the create function string class command and specify a parent class to create a derived function-string class that inherits function strings from the parent class.

For example, at the primary site of the parent, enter:
create function string class
 sqlserver_derived_class
 set parent to rs_default_function_class

In this example, the new class sqlserver_derived_class inherits function strings from the system-provided class rs_default_function_class. You can then create function strings that override some of the inherited function strings.

You can specify as the parent class any existing class whose primary site runs Replication Server version 11.5 or later. However, you cannot specify as a parent class the system-provided class rs_sqlserver_function_class. You also cannot specify a parent class that would result in circular inheritance.

If the parent class is rs_default_function_class or a function-string class for a non-Sybase data server, you can enter this command at any Replication Server with routes to the other Replication Servers where the new class will be used. This site is the primary site for the derived class and any new classes derived from it.

If the parent class is a user-created class, enter this command in the Replication Server that is the primary site for the parent class. This site is the primary site for all classes derived from the parent class.

Related concepts
Function-String Inheritance