Advanced Features for Progress Connections: Distributed Databases, Array Fields, and Database Triggers
Our Progress SQL-89 ODBC Drivers support a number of advanced features (referred to collectively as "Tableview" features) through the use of a custom "Data Dictionary File."
Tableview configuration cannot be supported in our SQL-92 drivers, due to changes made in the Progress Software components. Some features are still supported through different methods; others simply cannot be re-implemented (as of this writing).
- Distributed Databases
- Array Fields
- Progress Database Triggers
- Setting Up Tableview Functionality for SQL-89 Connections
- Troubleshooting Common Tableview Problems
This is the most common reason users need to configure Tableview features, with the SQL-89 drivers. There is no special configuration required here; just the basic Tableview Setup (below).
Due to changes made in the Progress database engine between their SQL-89 and SQL-92 engines,
JOINs over multiple Progress databases (i.e., multiple
.db files) cannot be executed over a single SQL-92 mode ODBC connection against Progress
According to the Progress SQL-92 documentation:
An application can connect to more than one database at a time, with a maximum of 10 connections. However, the application can actually gain access to only one database at a time. The database name specified in the
CONNECTstatement becomes the active one.
For this reason, if you need to make such queries,
- run Progress 9 in SQL-89 mode (perhaps in combination with SQL-92 mode; this "hybrid" operation is the default for Progress 9.x), and use the appropriate SQL-89 driver, permitting execution of these
JOINsin the traditional manner; or
- use Virtuoso and multiple single-DB SQL-92 connections to unify the Progress databases into a single Virtuoso schema, against which the
JOINsmay be executed.
Array fields are the second-most common reason users need to configure Tableview features. There is again no special configuration required with the SQL-89 drivers; just the basic Tableview Setup (below).
Progress array fields are not supported via the SQL-92 engine the same way they are via the traditional SQL-89 interface drivers.
Progress tables with array fields cannot be created while connected to the SQL-92 engine; however, array fields previously created using the SQL-89 driver may be accessed via the SQL-92 engine.
From a technical perspective, the array field is mapped to a single variable character (
VARCHAR) field, and the data is returned as a semicolon-separated list.
Individual elements of the array may be accessed using three Progress functions within SQL Statements:
||This function allows one or more elements to be selected.|
||This function simplifies escaping special characters when updating an array field.|
||This function removes escape characters from elements selected from an array field.|
For more information on this topic, visit Appendix C, section 2, of the SQL-92 Guide and Reference, in the Progress 9 documentation.
(Exact location will be different in Progress
Progress Database Triggers are only supported over SQL-89-based connections. The SQL-92 engine has completely changed the way Progress Triggers work.
Important: To make use of Progress Database Triggers, the Logical Database Name to which your Triggers have been compiled must match the value provided to the "
-ld" parameter when setting the Progress Database Connect options during the execution of "
If you have compiled your triggers against a database physically identified as "
/usr/progress/demo.db" but logically identified as "
mydemo", your "
setup.p" Database Connection String (used below) would be:
/usr/progress/demo -ld mydemo
This custom "Data Dictionary File" is built by running the
setup.p" found in the "bin" sub-directory below the
setup.p script has been run, follow the instructions to configure your driver type to use the resulting