Adaptive Server Enterprise restrictions and database requirements

Adaptive Server Enterprise implements dynamic SQL using temporary stored procedures. A temporary stored procedure is created when a SQL statement is prepared, and destroyed when that prepared statement is deallocated. A prepared statement can be deallocated either explicitly with a ct_dynamic(CS_DEALLOC) call or implicitly when a connection is closed.

As a consequence of this implementation, an application accessing Adaptive Server Enterprise and using dynamic SQL is subject to the restrictions of Adaptive Server Enterprise stored procedures. Some of the implications of this are:

See the Transact-SQL Users Guide for a complete discussion of stored procedures.