Configuring Data Sources

After you install the driver, you need to configure a data source or use a connection string to connect to the database. If you want to use a data source, but need to change some of its values, you can either modify it or override its values through a connection string. See "Quick Start Connect" for an explanation of different types of data sources.

If you choose to use a connection string, you must use specific connection string attributes. See "Connecting to a Data Source Using a Connection String" and Table 13-1 for a complete description of driver connection string attributes and their values.

See "Quick Start Connect" for an explanation of different types of data sources as well as instructions on starting and using the Windows ODBC Administrator.

On Windows, data sources are stored in the Windows Registry. You can configure and modify data sources through the ODBC Administrator using a driver Setup dialog box.

Default connection values are specified through the options on the tabs of the Setup dialog box. Connection string attributes that override these options have the same names as the options unless noted otherwise. The connection string attribute name does not have spaces between the words. For example, the option name Application Using Threads is equivalent to the connection string attribute name ApplicationUsingThreads.

By default, edit boxes and drop-down lists on the Setup dialog box are empty unless a specific default is otherwise noted.

To configure a Paradox data source:

  1. Start the ODBC Administrator; then, select a tab:
    • User DSN: If you are configuring an existing user data source, select the data source name on the User DSN tab and click Configure to display the driver Setup dialog box.
    • If you are configuring a new user data source, click Add on the User DSN tab to display a list of installed drivers. Select the driver and click Finish to display the driver Setup dialog box.

    • System DSN: To configure a new system data source, click Add on the System DSN tab to display a list of installed drivers. Select the driver and click Finish to display the driver Setup dialog box.
    • File DSN: If you are configuring an existing file data source, select the data source name on the File DSN tab and click Configure to display the driver Setup dialog box.
    • If you are configuring a new file data source, click Add on the File DSN tab to display a list of installed drivers. Select the driver and click Next. Specify a name for the data source and click Next. Verify the data source information; then, click Finish to display the driver Setup dialog box.

      The General tab of the Setup dialog box appears by default.


      The General tab of the ODBC Paradox Driver Setup dialog box

      NOTE: The General tab displays only fields that are required for creating a data source. The fields on all other tabs are optional, unless noted otherwise.

  2. On the General tab, provide the following information; then, click Apply.
  3. Data Source Name: Type a string that identifies this Paradox data source configuration. Examples include Accounting or Paradox-Serv1.

    Description: Type an optional long description of a data source name. For example, My Accounting Database or Paradox Files on Server number 1.

    Database Directory: Type the directory in which the Paradox files are stored. If a directory is not specified, the current working directory is used. You can also specify aliases that are defined in your IDAPI configuration file, if you have one. To do this, enclose the alias name in colons. For example, to use the alias MYDATA, specify ":MYDATA:".

    The equivalent connection string attribute is Database.

  4. Optionally, click the Advanced tab to specify data source settings.

  5. The Advanced tab of the ODBC Paradox Driver Setup dialog box

    On this tab, provide any of the following optional information; then, click Apply.

    Network Directory: Type the directory containing the PARADOX.NET file that corresponds to the database you have specified. If the Paradox database you are using is shared on a network, then every user who accesses it must set this value to point to the same PARADOX.NET file. If not set here, this value is determined by the NetDir setting in the Paradox section of the IDAPI configuration file. If you are not sure how to set this value, contact your network administrator.

    The equivalent connection string attribute is NetDir.

    File Open Cache: Type an integer value to specify the maximum number of unused file opens to cache. For example, the value 4 specifies that when a user opens and closes four database files, the database files are not actually closed. The driver keeps them open so that if another query uses one of these database files, the driver does not have to perform another open, which is expensive. The advantage of file open caching is increased performance. The disadvantage is that a user who specifies file locking on open may get a locking conflict even though no one appears to have the file open. The default is 0, which means no file open caching.

    Create Type: Select the Paradox database file version used for any Create Table statements that you execute. You can specify the version from the drop-down list or leave the box blank and use the default, which is determined by the Level setting in the Paradox section of the IDAPI configuration file. The numeric values map to the major revision numbers of the Paradox family of products.

    NOTE: When Create Type is set to 7, 8, 9 or 10, the Paradox driver supports database file names that can be a maximum of 128 characters. For all other CreateType settings, the driver supports database file names of a maximum of eight characters.

    International Sort: Select this check box to use international sort order as defined by your operating system when you issue a Select statement with an Order By clause. This order is always alphabetic, regardless of case; the letters are sorted as "A, b, C." Refer your operating system documentation concerning the sorting of accented characters.

    If this check box is cleared (the default), 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."

    The equivalent connection string attribute is IntlSort.

    Use Long Qualifiers: Select this check box to use long path names as database file qualifiers. When selected, path names can be a maximum of 255 characters. By default, the check box is not selected; therefore, path names can be a maximum of 128 characters.

    Application Using Threads: Select this check box to ensure that the driver works with multi-threaded applications. You can clear this check box when using the driver with single-threaded applications. Turning off this setting avoids additional processing required for ODBC thread-safety standards. By default, the check box is selected.



    Translate: Click Translate to display the Select Translator dialog box, which lists the translators specified in the ODBC Translators section of the Registry. DataDirect provides a translator named OEM to ANSI that translates your data from the IBM PC character set to the ANSI character set.

    Select a translator; then, click OK to close this dialog box and perform the translation.

  6. At any point during the configuration process, you can click Test Connect to attempt to connect to the data source using the connection properties specified in the driver Setup dialog box. Note that the information you enter in the logon dialog box during a test connect is not saved.
    • If the driver can connect, it releases the connection and displays a connection established message. Click OK.
    • If the driver cannot connect because of an incorrect environment or connection value, it displays an appropriate error message.
    • Verify that all required client software is properly installed. If it is not, you will see the message:

      Specified driver could not be loaded due to system error [xxx].

      Click OK.

  7. Click OK or Cancel. If you click OK, the values you have specified become the defaults when you connect to the data source. You can change these defaults by using this procedure to reconfigure your data source. You can override these defaults by connecting to the data source using a connection string with alternate values.