MDAC 2.5 SDK - ODBC Driver for Oracle


 

Connecting to a Data Source

An ODBC application can pass connection information in a number of ways. For example, the application might have the driver always prompt the user for connection information. Or the application might expect a connection string that specifies the data source connection. How you connect to a data source depends on the connection method used by your ODBC application.

One common way to connect to a data source is through the Data Source dialog box. If your ODBC application is set up to use a dialog box, that dialog box is displayed and prompts you for the appropriate data source connection information.

You can also connect to a data source using the connection string.

To connect to a data source using a dialog box

  1. When the Data Source dialog box appears, select an Oracle data source and then click OK. The Connect dialog box appears.

  2. Fill in the appropriate information for the Connect dialog box, and then click OK.

Once the connection information is verified, your application can use the ODBC Driver for Oracle to access the information that the data source contains.