Create Procedures and Batches

Procedures and batches enhance the security, efficiency, and standardization of SAP Sybase IQ databases.

Procedures store SQL statements in the database for use by all applications. They enhance the security, efficiency, and standardization of databases. User-defined functions are a type of procedure that return a value to the calling environment for use in queries and other SQL statements.

For many purposes, server-side JDBC provides a more flexible way to build logic into the database than SQL stored procedures.

Batches are sets of SQL statements that are submitted to the database server as a group. Many features available in procedures, such as control statements, are also available in batches.

Note: Use source control software to track changes to source code, and changes to objects created from source (including stored procedures), that you deploy to the database.