Defining Table Structure on UNIX and Linux
- Last Updated: July 13, 2022
- 2 minute read
- DataDirect Connectors
- ODBC
- Cloudera Impala 7.1
- dBase 7.1
- Flat files/Text 7.1
- MySQL 7.1
- Pervasive (Btrieve) 7.1
- XML 7.1
- Documentation
Because text files do not all have the same structure,
the driver provides the option to define the structure of an existing
file. Although defining the structure is not mandatory, because
the driver can attempt to guess the names and types of the columns,
this feature is extremely useful.
To define the structure of a text file, you create a QETXT.INI file using any plain text editor, such as vi. The file name must be in uppercase. All of the tables you want to define are specified in the QETXT.INI file. When you specify table attributes in QETXT.INI, you override the attributes specified in the system information file (odbc.ini) or in the connection string.
To define the QETXT.INI file: