Introduction
Although OLE DB is a key component of Microsoft Corporation's Universal Data Access strategy, many applications still use ODBC as the protocol to access data sources. Therefore, it is important to be able to access an OLE DB provider from any ODBC consumer. Software resources
To complete the exercise in this chapter, you need these software resources:
In this chapter
In this chapter, you access the ObjectStore Active Toolkit OLE DB provider from an ODBC-compliant reporting tool. This chapter contains the following exercise:
Exercise | Description |
---|---|
Use ATK as an ODBC Data Source | Configure access to an ObjectStore database as an ODBC data source, and access it through an ODBC consumer. |
Use ATK as an ODBC Data Source
Overview
To use ATK as an ODBC data source, you first access the ObjectStore Active Toolkit OLE DB provider. Next, create and access an ODBC data source. Process
To create this application, follow these steps: 1 Configure ISG Navigator.
Configure ISG Navigator so it can access the ObjectStore Active Toolkit OLE DB provider: CARSDEMO = OLEFS
where CARSDEMO is a name that references the ATK Table Data Provider (TDP) and OLEFS is the type of data provider.
TDP_CONNECT =
where ObjectStore Active Toolkit OLE DB Provider is the name of the ObjectStore Active Toolkit OLE DB provider and c:\odi\ATK6.0\Examples\demodbs\carsdemo.db is the full pathname of the ObjectStore database you want to access though an ODBC consumer.
ObjectStore Active Toolkit OLE DB Provider;c:\odi\ATK6.0\Examples\demodbs\carsdemo.db
The modified file looks like this:
[TDP-NAMES]
CARSDEMO = OLEFS
[CARSDEMO]
TDP_CONNECT =
ObjectStore Active Toolkit OLE DB provider;c:\odi\ATK6.0\Examples\demodbs\carsdemo.db
2 Create the ODBC data source.
Create a new ODBC data source that points to the carsdemo.db database through the ISG Navigator Driver/ObjectStore Active Toolkit OLE DB provider.
3 Access the ODBC data source.
Open the ATK-linked ODBC source using an ODBC consumer application, such as Microsoft Access.
Summary
In this chapter, you configured ISG Navigator so that you could access the ObjectStore Active Toolkit OLE DB provider. Next, you created an ODBC data source based on an ObjectStore database. Then you accessed the data source using an ODBC consumer, which displayed the data returned by its query.
Updated: 05/11/99 12:00:29