Use the SQLSCHEMA utility
- Last Updated: January 20, 2026
- 2 minute read
- OpenEdge
- Version 12.2
- Documentation
The SQLSCHEMA utility is a command‑line
utility that writes SQL database schema components to an output
file selectively. You can capture table definitions including table
constraints, views, stored procedures including related privileges,
and triggers. At the command line you specify which components to dump.
The extended support for multi-tenancy includes domain name,
name of the tenant, and sequence name utility option in the SQLSCHEMA utility
to write SQL database schema definitions for domains, tenants, and
sequences respectively. The existing table utility option is enhanced
to support writing definitions for a multi-tenant table.
The SQLSCHEMA utility also supports writing
definitions for multi-tenant groups.
Use the following syntax for the SQLSCHEMA utility:
Syntax
|
SQLSCHEMA utility:
|
The SQLSCHEMA utility accepts all encoding prefixes supported by the
genpassword utility for encoding passwords before transmitting them over
the network to the OpenEdge SQL server for authentication. If the password is provided in
plain text, it is encoded using ae2h4 before being transmitted over the
network.
For more information, see genpassword and Encoding prefix.
SQLSCHEMA
utility is progress, you can generate the encoded credentials with
the ae2h1 prefix as follows:
|
ae2h1 encoded
password:
|
SQLSCHEMA utility by running
the following command:
|
Table definitions include the database area name for the table,
derived from a scan of the area and objects. When SQLSCHEMA writes
a table definition, it does not automatically write associated triggers,
synonyms, or privileges. These must be explicitly specified on the
command line. Capturing database schema requires privileges to access
the requested components.
Example: SQLSCHEMA utility for writing object definitions
The following example directs the SQLSCHEMA utility
to write table definitions and trigger information. The output goes
to the screen since no output_file_name is specified.
Since the user_name and password are
not specified, SQLSCHEMA will prompt the user for
these values.
|
Example: SQLSCHEMA for writing object definitions to output file
The following example directs the SQLSCHEMA utility
to write table definitions to an output file named salesdbschema.dfsql.
|
SQLSCHEMA utility
records character set information about the contents of the file.
When you use SQLSCHEMA to dump schema information
from a database, the schema is written in Unicode UTF‑8.For more information on SQL utilities and database administration, see Manage OpenEdge Databases.