sp_regdrop

Description

Remove a procedure from the list of registered procedures.

Syntax

sp_regdrop proc_name

Parameters

proc_name

The name of the registered procedure to remove.

Examples

Example 1

1>execute stock...sp_regdrop pricechange 
 2>go 

In this example, a client logged into Adaptive Server with isql uses a server-to-server remote procedure call to execute sp_regdrop on the stock Open Server application. The procedure deletes the pricechange registered procedure from stock.

Example 2

dbrpcinit(dbproc, "sp_regdrop", NULL); 
 dbrpcparam(dbproc, "proc_name", NULL, SYBCHAR, -1, 
 11, "pricechange"); 
 dbrpcsend(dbproc); 

This example uses the DB-Library RPC routines to execute sp_regdrop with a single parameter “pricechange”. This causes the sp_regdrop system procedure to delete the pricechange registered procedure from Open Server.

Usage

Messages

proc_name has been unregistered.

The procedure specified with the proc_name parameter was successfully unregistered.

proc_name is not a registered procedure.

The procedure specified with the proc_name parameter was not registered with Open Server.

Unable to unregister proc_name.

Open Server was unable to unregister the procedure for some other reason.

See also

sp_regdrop, srv_regexec, srv_reginit, srv_regparam