I am using Access 2002 and would like to use ADO to
connect to a DB2 database. Does anyone know if there is a
provider for DB2?
Thanks,
Joe
Thanks,
Joe
I believe that IBM has a DB2 provider. Both IBM and we have ODBC drivers
for DB2. ( Ours comes with HIS Server ) I think that DataDirect has DB2
Drivers/providers as well.
I hope this helps,
Russ Gray
Microsoft Developer Support
This posting is provided AS IS with no warranties, and confers no rights.
Are you secure? For information about the Microsoft Strategic Technology
Protection Program and to order your FREE Security Tool Kit, please visit
http://www.microsoft.com/security.
Thanks for your reply (below). Could you please tell me
if OLEDB is more robust than ODBC? We are trying to
connect to a DB 2 database to create linked Access 2002
tables.
Is there an article that you could recommend that explains
the more distinct differences between the two technologies?
Thanks,
Joe
Strategic TechnologyQuote:>-----Original Message-----
>I believe that IBM has a DB2 provider. Both IBM and we
have ODBC drivers
>for DB2. ( Ours comes with HIS Server ) I think that
DataDirect has DB2
>Drivers/providers as well.
>I hope this helps,
>Russ Gray
>Microsoft Developer Support
>This posting is provided "AS IS" with no warranties, and
confers no rights.
>Are you secure? For information about the Microsoft
Quote:>Protection Program and to order your FREE Security Tool
Kit, please visit
>http://www.microsoft.com/security.
>.
there are further ODBC/JDBC/OLEDB data access drivers for DB2 available
at http://www.openlinksw.com. Please feel free to poast any questions / requests.
Best Regards,
Jan Csisko
Professional Services Consultant(UK) Tel: +44 (0)20 8681 7701
OpenLink Software Home Page: http://www.openlinksw.com
Universal Data Access & Data Integration Technology Providers
Online ODBC HOWTOs at: http://demo.openlinksw.com
Quote:> I believe that IBM has a DB2 provider. Both IBM and we have ODBC drivers
> for DB2. ( Ours comes with HIS Server ) I think that DataDirect has DB2
> Drivers/providers as well.
> I hope this helps,
> Russ Gray
> Microsoft Developer Support
> This posting is provided ?AS IS? with no warranties, and confers no rights.
> Are you secure? For information about the Microsoft Strategic Technology
> Protection Program and to order your FREE Security Tool Kit, please visit
> http://www.microsoft.com/security.
Hi Joe
I don't know of any articles that discuss the differences between OLEDB vs
ODBC. Basically, OLEDB is more flexible in that it's not locked into the
row/column kind of data that ODBC is. For instance, the OLEDB provider for
OLAP returns 3 dimensional results. And you could write an OLEDB provider
(someone may already have) that knows about map co-ordinates and can return
data based on the distance from a point, like all ice cream shops within a
given distance from a building ( is it lunchtime yet? :-).
As for robustness, I'd have to give ODBC a slight edge. It's been around
forever and has had most of the bugs hammered out. OLEDB has been around a
while too tho, and is the wave of the future.
This may be moot tho, given what you're doing. I believe that Access can
only use ODBC for linking tables, at least in the current incarnation.
Perhaps the next version of access will know about OLEDB.
I hope this helps,
Russ Gray
Microsoft Developer Support
This posting is provided AS IS with no warranties, and confers no rights.
Are you secure? For information about the Microsoft Strategic Technology
Protection Program and to order your FREE Security Tool Kit, please visit
http://www.microsoft.com/security.
1. Use ODBC connection string with native OLEDB (ORCL/SQLSERVER/DB2) providers via ADO?
We have an application which runs on Oracle, SQL Server and IBM DB2.
The code uses ODBC drivers (for ORCL/SQL SERVER, these drivers come from
MDAC 2.7, and for DB2 the driver comes with the DB2 Client Connectivity
Library) via ADO. However, the default OLE DB Provider for ODBC is being
used.
I wondered if it would be possible to make a small change to the connection
code to enable the use of the native OLEDB providers for each of the RDBMS
platforms?
NOTE: I still need the option of using ODBC drivers as well.
The ODBC connection strings are built dynamically at run-time for each RDBMS
platform.
What I'd like to do is take the ODBC connections string (minus the
DRIVER={DRIVERNAME} part), slap on a PROVIDER={NATIVE_PROVIDER} instead, and
pass the whole thing to ADO and have it use the native provider.
I can't really invest any time in translating the ODBC connection string
attributes to the native OLEDB ones, but I read somewhere a long time ago
that OLEDB can accept ODBC attributes.
Can somebody help me with this.
All help much appreciated.
Thanks.
Alastair
2. Money...
3. FREETEXT / TOP errors in SQL7
5. Problems using ADO.Net with IBM OLEDB Provider for DB2 Servers
6. Help with a beginner's question.
7. Native ADO.Net Data Provider for DB2/UDB
8. Problem with Microsoft ADO DB DB2 Provider
9. Passing provider specific properties from ADO to the underlying provider
11. db2 v8 ADO driver on db2 v7.2 servers