Extended stored procedures let you call external functions from Adaptive Server. The external functions must be capable of calling a C language function and manipulating C language datatypes. Once you create an extended stored procedure, you use it as you would use any stored procedure. Extended stored procedures are contained in the Extended Stored Procedures folder.
Extended stored procedures can:
Take input parameters
Return a status value indicating success or failure and the reason for failure
Return values of output parameters
Return result sets
On platforms that support dynamic link libraries (DLLs), the external functions are compiled into DLLs. On platforms that do not support DLLs, the external functions are compiled into a single shared library named libxp.