Chapter 2: Configuring ODBC Data Sources
2.2 Adding Names for ODBC Data Sources
The ODBC Administrator is a Microsoft utility to configure ODBC data sources and drivers.
All the information an application needs to connect to a particular database is called a data source in ODBC terminology. This information includes the driver name and location, network address, network software, and database name. Depending on the version of Windows, the ODBC Administrator stores data source information in text files or in the system registry.
The ODBC Administrator lets you enter the connection details for accessing a Dharma/SQL database and associate it with a data source name that users refer to when they need to access the data through an ODBC application.
2.2.1 Desktop
Use the Microsoft ODBC Administrator utility to add names of specific data sources you want to access.
- Invoke the Microsoft ODBC Administrator from Windows (by default, from the Control Panel program group). The Administrator's
Data Sourcesdialog box appears. - Click on the
System DSNtab. A list of existing system data sources appears. - Click on the
Add…button. TheAdd Data Sourcedialog box appears. - In the list box, double-click on the
Dharma Desktop SDKdriver. TheDharma ODBC Setupdialog box appears. - Enter information in the following text boxes:
Data Source Name: the name of the ODBC data source for use in ODBC connect calls and by the ODBC Administrator.Description: an optional descriptive string.Host: this field is ignored for the Desktop configuration.Database: the database name. Use the same name here that was specified to the mdcreate utility (see page A-3) to create the data dictionary for the proprietary storage system.User ID: the user name for the process.Password: the password for the process.Data Dir: the location of the data dictionary directory. Leave this field blank unless the mdcreate command used the -d argument. (If it did, specify the same value here as that used in the -d argument.)
You must supply the name of the data source. If you omit the database name, user name, or password, the driver prompts the ODBC application user for that information when it connects to the data source.
2.2.2 Client/Server
Use the Microsoft ODBC Administrator utility to add the names of any Dharma DataLink server data sources the ODBC Driver will connect to:
- Invoke the Microsoft ODBC Administrator from Windows (by default, from the Control Panel program group). The Administrator's
Data Sourcesdialog box appears. - Click on the
System DSNtab. A list of existing system data sources appears. - Click on the
Add...button. TheCreate New Data Sourcedialog box appears. - In the
Installed ODBC Driverslist box, double-click on theDharma ODBC SDKdriver. TheDharma ODBC Setupdialog box appears. - Enter information in the following text boxes:
Data Source Name: a local name for the Dharma DataLink server data source for use in ODBC connect calls and by the ODBC Administrator.Description: an optional descriptive stringHost: the name of the system where the Dharma DataLink server data source residesDatabase: the database for the process to connect to on the host system. Use the same name here that was specified to the mdcreate utility (see page B-3) to create the data dictionary for the proprietary storage system.User ID: the user name for the processPassword: the password for the processService: the service name used by the server. Leave this field blank unless the dhdaemon server process was started using the command line and the command specified the -s argument (see page A-2). (If it did, specify the same value here as that used in the -s argument.)
You must supply the name of the data source. If you omit the host name, database name, user name, or password, the driver prompts the ODBC application user for that information when it connects to the data source.
The ODBC Administrator utility updates the ODBC Driver manager registry entry with the information supplied in the dialog box.