Please enable JavaScript to view this site.

ESL Documentation

In addition to the commands that are also available for accessing DB/2, SQL Server, and Sybase databases, ESL's ODBC support includes batch commands that access ODBC prepare then execute functions, cross-platform catalogue and transaction functions.

The batch commands facilitate the repetitive processing of an SQL statement with different values without having to continually parse and compile. They allow your application to select, update, insert or delete rows in an SQL table by preparing an SQL statement with placeholders, then executing the statement by replacing the placeholders with different values. Compared to sending individual SQL statements sequentially, these commands can enhance performance, as the SQL statement is only transmitted and prepared once. You may find these commands useful in transaction processing applications where performance is critical. The ODBC batch commands work in a similar method to ORACLE's array functions.

The cross-platform catalogue and transaction commands allow your application to be migrated between difference Database Management Systems without the need for coding changes caused by differences in the table structures, column names etc.

Command

Description

aexec

Batch command that transfers buffered variables and executes the previously prepared SQL statement

astmt

Batch command to define the SQL SELECT, INSERT, UPDATE, or  DELETE statement to be prepared then executed in subsequent aexec command, once the variables have been assigned.

autocommit

Configuration command to control the commit mode.

aval

Batch command to provide data values for use with an SQL statement previously specified in an astmt command.

columns

Catalogue function to return a list of columns within a table.

commit

Action all pending changes to the database.

datasources

Catalogue function to provide a list of ODBC datasources that have be configured for the User.

foreignkeys

Catalogue function to return the foreign keys that connect tables.

indexes

Catalogue function to provide information about the indexes associated with a table.

primarykeys

Catalogue function to return the primary keys for a table.

rollback

Back-out all pending changes to the database.

rowcount

Returns the number of rows affected by the previous, UPDATE, INSERT or DELETE SQL Statement.

tables

Catalogue function to list objects, principally tables, within a data source connection.