The system stored procedures provided in
SAP Sybase IQ are implemented in SQL.
You must use the local temporary table and IQ
UTILITIES statement in exactly the same way as system
stored procedures:
All SQL code for procedures
is encrypted and compiled into the shared library
libiqscripts16_r.so file on UNIX and
iqscripts16.dll file on Windows.
Warning!
Failing to use the statements correctly can cause serious problems for your IQ
server or database.
To view the stored procedures code, enter sp_helptext
'owner.procname' in Interactive SQL.
The syntax for
IQ UTILITIES is:
IQ UTILITIES MAIN INTO local-temp-table-name arguments
You may want to create your own variants of procedures. For example:
- Create a procedure that calls a system stored procedure.
- Create a procedure that is independent of the system stored procedures but
performs a similar function.
- Create a procedure that uses the same structure as the system stored procedures
but provides additional functionality. For example to display procedure results
in graphical form in a front-end tool or browser rather than as text.
- If you choose either of the two previous options, make sure you understand the
IQ UTILITIES statement and the strict requirements for
using it.