Skip to main content

This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Previous sectionNext section

SqlProc

Specifies whether the method can be invoked as an SQL stored procedure. Only class methods (not instance methods) can be called as SQL stored procedures.

Usage

To specify that the method can be invoked as an SQL stored procedure, use the following syntax:

ClassMethod name(formal_spec) As returnclass [ SqlProc ]
{
   //implementation
}

Otherwise, omit this keyword or place the word Not immediately before the keyword.

Details

This keyword specifies that the method can be invoked as an SQL stored procedure. Only class methods (not instance methods) can be called as SQL stored procedures.

Stored procedures are inherited by subclasses.

Default

If you omit this keyword, the method is not available as an SQL stored procedure.

See Also