Statement batches

As in Transact-SQL, you can batch several SQL statements in a single exec sql statement. Batches are useful and more efficient when an application executes a fixed set of Transact-SQL statements each time it runs.

For example, some applications create temporary tables and indexes when they start up. You could send these statements in a single batch. See the Adaptive Server Enterprise Reference Manual for rules about statement batches.

The following restrictions apply to statement batches: