drop function string

Description

Drops a function string for a function-string class.

Syntax

drop function string
 [replication_definition.]function[;function_string | all]
 for function_class

Parameters

replication_definition

The name of the table or function replication definition the function operates on.

function

The name of the function the function string was created for.

function_string

The name of the function string to drop. The default function string name is the same as the function name.

all

Causes Replication Server to drop all function strings for a function. Although only the rs_select, rs_select_with_lock, rs_datarow_for_writetext, rs_get_textptr, rs_textptr_init, and rs_writetext functions can have multiple function strings, this option can be used as shorthand for the function_string name.

function_class

The name of the function-string class from which the function string will be dropped.

Examples

Example 1

Drops the function strings for the rs_insert function for the publishers_rep replication definition in the derived class sqlserver_derived_class. The rs_insert function string will now be inherited from the parent class:

drop function string
 publishers_rep.rs_insert
 for sqlserver_derived_class

Example 2

Drops the function string for the upd_publishers user-defined function for the publishers_rep replication definition in the sqlserver2_function_class function-string class:

drop function string
 publishers_rep.upd_publishers
 for sqlserver2_function_class

Example 3

Drops all function strings for the rs_select_with_lock function for the publishers_rep replication definition in the class sqlserver2_func_class:

drop function string
 publishers_rep.rs_select_with_lock;all
 for sqlserver2_func_class

Usage

Permissions

drop function string requires “create object” permission.

See also

alter function string, create function, create function string, create function string class, drop function