DB2 IBM OleDB Provider [英] DB2 IBM OleDB Provider

查看:87
本文介绍了DB2 IBM OleDB Provider的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



今天我设法让OleDB提供商让我使用sql从

as400中放入数据集。


太棒了,我使用的提供者字符串是:


Provider = IBMDA400.DataSource.1;用户ID = XXXXX;密码= XXXX;数据

来源= nnn .nnn.nnn.nnn;" />

问题:


什么是/IBMDA400.DataSource.1/?


这是一个ODBC驱动程序吗?


它内置于.net 1.1中吗?或者我是否需要安装其他东西?


它是IBM CAE(Client Access Express)实用程序的一部分吗?


CAE是否有要安装在客户端上才能使用

IBMDA400.DataSource.1?


-


隐身()几乎每日更新
http://kentpsychedelic.blogspot.com

推荐答案

>什么是/IBMDA400.DataSource.1/?


简介:.NET使用.NET数据提供程序。


- 你有本机 ;适用于Oracle,SQL Server的.NET数据提供程序(由

MS提供),也可能适用于IBM(由IBM提供,如果有的话)。


- 有一个特殊的.NET数据提供者:Microsoft .NET数据提供者
OLEDB的
,与原生相反。 .NET数据提供程序需要一个

旧的OLEDB提供程序才能工作,并且应该在没有本机.NET数据的情况下使用

提供程序可用于数据库。


所以:


" Provider = IBMDA400.DataSource.1"指定用于OLEDB的
Microsoft .NET数据提供程序必须使用的OLEDB提供程序。在这种情况下,它指定您要为IBM使用OLEDB Provider的

。例如,

Provider = MSDAORA将为Oracle指定Microsoft OLEDB Provider。

从技术上讲,它是OLEDB提供商公开的COM类的ProgID。

.1指定依赖于版本的ProgID。

" Provider = IBMDA400.DataSource"将是与版本无关的ProgID。
> What is /IBMDA400.DataSource.1/ ?

Introduction: .NET uses .NET Data Providers.

- You have "native" .NET Data Providers for Oracle, SQL Server (provided by
MS) and maybe for IBM (provided by IBM, if any).

- There is a special .NET Data Provider: The Microsoft .NET Data Provider
for OLEDB, which on the contrary to "native" .NET Data Providers, needs an
old OLEDB Provider to work, and should be used when no native .NET Data
Providers is available for a database.

So:

"Provider=IBMDA400.DataSource.1" specifies the OLEDB Provider that the
Microsoft .NET Data Provider for OLEDB must use. In this case, it specifies
that you want to use the OLEDB Provider for IBM. For example,
Provider=MSDAORA would specify the Microsoft OLEDB Provider for Oracle.
Technically it is the ProgID of the COM class exposed by the OLEDB provider.
The .1 specifies the version-depending ProgID.
"Provider=IBMDA400.DataSource" would be the version-independent ProgID.
这是一个ODBC驱动程序吗?


No.

内置于.​​net 1.1吗?或者我必须安装其他东西吗?


用于OLEDB的Microsoft .NET数据提供程序由.NET

框架提供。此提供程序是.NET-OLEDB桥,需要OLEDB

提供程序。一些用于Oracle和SQL Server的OLEDB提供程序由Microsoft数据访问组件(MDAC)中的Microsoft提供,但是对于IBM,您可以从IBM公司获得它的b $ b。

它是IBM CAE(Client Access Express)实用程序的一部分吗?


可以,请咨询IBM文档。

是否必须在客户端上安装CAE才能使用
IBMDA400.DataSource .1?
Is that an ODBC driver?
No.
Is it built into .net 1.1 ? Or do I have to install something else?
The Microsoft .NET Data Provider for OLEDB is supplied by the .NET
Framework. This provider is a .NET-OLEDB bridge which needs an OLEDB
Provider. Some OLEDB Providers for Oracle and SQL Server are supplied by
Microsoft in Microsoft Data Access Components (MDAC), but for IBM you have
to get it presumably from IBM Corp.
Is it part of the IBM CAE ( Client Access Express ) Utilities?
It could be, check with IBM docs.
Does CAE have to be installed on the client to be able to use
IBMDA400.DataSource.1 ?




很可能,因为.NET数据提供程序,OLEDB提供程序或ODBC驱动程序需要本机客户端DLL连接到数据库。


请注意,您使用的是用于OLED的Microsoft .NET数据提供程序,其中
是IBM的OLEDB提供程序。另一种方法是避免使用OLEDB并使用

本机。 IBM的.NET数据提供程序,如果IBM提供的话。由于你避免使用

桥组件,性能可以更好。


-


Carlos J. Quintero


MZ-Tools 4.0:Visual Studio .NET的生产力插件

您可以更快地编码,设计和记录。
< a rel =nofollowhref =http://www.mztools.comtarget =_ blank> http://www.mztools.com



It''s very likely, since .NET Data Providers, OLEDB Providers or ODBC drivers
need the native client DLLs to connect to the database.

Notice that you are using the Microsoft .NET Data Provider for OLEDB with
an OLEDB Provider for IBM. Another approach is to avoid OLEDB and use a
"native" .NET Data Provider for IBM, if IBM offers it. Since you avoid the
bridge component, the performance can be better.

--

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com


Carlos J. Quintero [.NET MVP]写道:
Carlos J. Quintero [.NET MVP] wrote:
请注意,您正在使用OLEDB的Microsoft .NET数据提供程序和OLEDB IBM的提供商。另一种方法是避免使用OLEDB并使用原生的方法。 IBM的.NET数据提供程序,如果IBM提供的话。由于你避免使用
网桥组件,性能可能会更好。
Notice that you are using the Microsoft .NET Data Provider for OLEDB with
an OLEDB Provider for IBM. Another approach is to avoid OLEDB and use a
"native" .NET Data Provider for IBM, if IBM offers it. Since you avoid the
bridge component, the performance can be better.




在IBM的网站上有一个提供商,但它是还处于测试阶段。我会试试。但是我会尝试它。


我尝试过ODBC和OleDb。


做的时间OleDb中的连接/显着/长时间比使用ODBC的时间更长 - 但是使用OleDb我不需要在

CAE中进行任何配置来创建ODBC来源。


我真的很想离开CAE,因为其他应用程序存在版本问题

问题,我想保持尽可能纯净的.net

感谢OleDb的信息。


-


隐身...几乎每天更新
http://kentpsychedelic.blogspot.com


Keith写道:
Carlos J. Quintero [.NET MVP]写道:
Carlos J. Quintero [.NET MVP] wrote:
请注意,您正在使用OLED的Microsoft .NET数据提供程序和IBM的OLEDB提供程序。另一种方法是避免使用OLEDB并使用原生的OLEDB。 IBM的.NET数据提供程序,如果IBM提供的话。由于您避免使用网桥组件,性能可能会更好。
Notice that you are using the Microsoft .NET Data Provider for OLEDB
with an OLEDB Provider for IBM. Another approach is to avoid OLEDB and
use a "native" .NET Data Provider for IBM, if IBM offers it. Since you
avoid the bridge component, the performance can be better.



在IBM的网站上有一个提供商,但它仍处于测试阶段。我会尝试一下。



There is a provider up on IBM''s site, but it''s still in beta. I will
try it though.




搜索:Redistributable DB2 Run-Time Client Lite


在IBM上的网站。那是.NET提供商而且它不再是测试版。


Frans。


-

----------------------------------------------- -------------------------

获取LLBLGen Pro,.NET的高效O / R映射: http://www.llblgen.com

我的.NET博客: http://weblogs.asp.net/fbouma

Microsoft MVP(C#)

-------------------------------------- ----------------------------------



search for: Redistributable DB2 Run-Time Client Lite

on IBM''s site. That''s the .NET provider and it''s not beta anymore.

Frans.

--
------------------------------------------------------------------------
Get LLBLGen Pro, productive O/R mapping for .NET: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------


这篇关于DB2 IBM OleDB Provider的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆