15 The Btrieve (Pervasive.SQL) Driver : Connection Option Descriptions

Connection Option Descriptions
The following connection option descriptions are listed alphabetically by the GUI name that appears on the driver Setup dialog box. The connection string attribute name, along with its short name, is listed immediately underneath the GUI name.
In most cases, the GUI name and the attribute name are the same; however, some exceptions exist. If you need to look up an option by its connection string attribute name, please refer to the alphabetical table of connection string attribute names.
Also, a few connection string attributes, for example, Password, do not have equivalent options that appear on the GUI. They are in the list of descriptions alphabetically by their attribute names.
Table 15-1 lists the connection string attributes supported by the Btrieve driver.
Action for Undefined Tables
Attribute
UndefinedTable (UT)
Description
Determines whether the driver prompts the user when it encounters a table for which it has no structure information.
Valid Values
PROMPT | ERROR
Specify PROMPT to prompt the user.
Specify ERROR to return an error.
Default
ERROR (driver returns an error)
GUI Tab
Advanced tab
Application Using Threads
Attribute
ApplicationUsingThreads (AUT)
Description
Determines whether the driver works with applications using multiple ODBC threads.
Valid Values
0 | 1
If set to 1 (Enabled), the driver works with single-threaded and multi-threaded applications.
If set to 0 (Disabled), the driver does not work with multi-threaded applications. If using the driver with single-threaded applications, this value avoids additional processing required for ODBC thread-safety standards.
Default
1 (Enabled)
GUI Tab
Advanced tab
Array Size
Attribute
ArraySize (AS)
Description
The number of bytes in the array. This connection option enables the driver to retrieve an array of records from the Btrieve database and, in most cases, results in improved performance for the application.
Valid Values
A positive integer from 1 to 65535
Default
4096
GUI Tab
Advanced tab
Data File Extension
Attribute
DataFileExtension (DFE)
Description
A one- to three-character file name extension to use for data files.
Valid Values
ext
where ext is the name of the one- to three-character file name extension.
This value is used for all Create Table statements. Sending a Create Table using an extension other than the value specified for this option causes an error.
In other SQL statements, such as Select or Insert, users can specify an extension other than the one specified for this connection option. The Data File Extension value is used when no extension is specified.
Default
DTA
GUI Tab
Advanced tab
Data Source Name
Attribute
DataSourceName (DSN)
Description
The name of a data source in your Windows Registry or odbc.ini file.
Valid Values
string
where string is the name of a data source.
Default
None
GUI Tab
General tab
Database Directory
Attribute
Database (DB)
Description
The directory that contains the data files.
Valid Values
database_directory
where database_directory is the full path name of the directory in which the data files are stored. If no directory is specified, the current working directory is used.
This includes both Btrieve files and the data dictionary files (.DDF). Data dictionary files describe the structure of Btrieve data.
Default
None
GUI Tab
General tab
Default Logon ID
Attribute
LogonID (UID)
Description
The default user ID that is used to connect to your database. Your ODBC application may override this value or you may override it in the logon dialog box or connection string.
Valid Values
userid
where userid is a valid user ID with permissions to access the database.
Default
None
GUI Tab
Advanced tab
Description
Attribute
Description (n/a)
Description
An optional long description of a data source. This description is not used as a runtime connection attribute, but does appear in the ODBC.INI section of the Registry and in the odbc.ini file.
Valid Values
string
where string is a description of a data source.
Default
None
GUI Tab
General tab
File Open Cache
Attribute
FileOpenCache (FOC)
Description
The maximum number of used file handles to cache.
Valid Values
0 | x
where x is a positive integer.
If set to 0, no file open caching is performed.
If set to x, when a user opens and closes x tables, the tables are not actually closed. The driver keeps them open so that if another query uses one of these tables, the driver does not have to perform another open, which is expensive. The advantage of file open caching is improved performance. The disadvantage is that a user who tries to open the file exclusively may get a file locking conflict even though no one appears to have the file open.
Default
0 (No File Open Caching)
GUI Tab
Advanced tab
International Sort
Attribute
IntlSort (IS)
Description
Uses international sort order as defined by your operating system when you issue a Select statement with an Order By clause.
Valid Values
0 | 1
If set to 1 (Enabled), this order is always alphabetic, regardless of case; the letters are sorted as "A, b, C." Refer to your operating system documentation concerning the sorting of accented characters.
If set to 0 (Disabled), ASCII sort order is used. This order sorts items alphabetically with uppercase letters preceding lowercase letters. For example, "A, b, C" is sorted as "A, C, b."
Default
0 (Disabled)
GUI Tab
Advanced tab
Password
Attribute
Password (PWD)
Description
The password that you must enter if your Scalable SQL data dictionary files have security restrictions set. The Password option cannot be specified through the Administrator GUI.
Valid Values
pwd
where pwd is a valid password.
Default
None
GUI Tab
n/a
Use Long Qualifiers
Attribute
UseLongQualifiers (ULQ)
Description
Determines whether the driver uses long path names.
Valid Values
0 | 1
If set to 1 (Enabled), path names can be a maximum of 255 characters.
If set to 0 (Disabled), path names can be a maximum of 128 characters.
Default
0 (Disabled)
GUI Tab
Advanced tab