从.NET连接到AS / 400 [英] Connect to AS/400 from .NET

查看:91
本文介绍了从.NET连接到AS / 400的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!


我正在尝试编写一个连接到AS / 400服务器的VB.NET程序。

我已经尝试了几乎所有东西,但它不会连接。

我试图使用客户端访问ODBC驱动程序设置DSN

(v8.00.04.08)但没有结果。我还尝试过无DSN的连接。

来自VB.NET我正在使用oleDbConnection创建连接。如果我没有在连接字符串中提供提供商,程序会挂起

说提供商是必需的。

我有尝试使用不同的提供程序IBMDA400,MSDASQL,DB2OLEDB。

总是得到相同的结果:类型未处理的异常

'System.InvalidOperationException''在system.data中发生。 dll


附加信息:''IBMDA400''提供商未在本地机器上注册




如何注册IBMDA400提供商?还有另一种方式来连接?b $ b?是否可以建立无DSN连接?


谢谢!

Marcus Malmgren

Hello!

I''m trying to write a VB.NET program that connects to a AS/400 Server.
I''ve tried almost everything, but it will not connect.
I''ve tried to set up a DSN using the Client Access ODBC-driver
(v8.00.04.08) but with no result. I''ve also tried a DSN-less
connection.
From VB.NET i''m using oleDbConnection to create the connection. If I
don''t supply a provider in the connection string, the program hangs
saying that a provider is requiered.
I have tried using different providers IBMDA400, MSDASQL, DB2OLEDB.
Always with the same result: An unhandled exception of type
''System.InvalidOperationException'' occurred in system.data.dll

Additional information: The ''IBMDA400'' provider is not registered on
the local machine.

How do I register the IBMDA400 provider? Is there an other way to
connect? Is it possible to make a DSN-less connection?

Thanks!
Marcus Malmgren

推荐答案

ISeries Access for Windows beta提供.NET Framework数据提供程序。

请参阅下面的URL

http://www-1.ibm.com/servers/eserver...dows /beta.html


我不认为这个测试版已经上线了。它于2004年2月10日更新。


HTH

JB

" Marcus" <毫安************* @ plastal.com>在留言中写道

news:d4 ************************** @ posting.google.c om ...
ISeries Access for Windows beta provides a .NET Framework Data Provider.
See the URL below

http://www-1.ibm.com/servers/eserver...dows/beta.html

I don''t think this beta has gone live. It was updated on Feb 10, 2004.

HTH
JB
"Marcus" <ma*************@plastal.com> wrote in message
news:d4**************************@posting.google.c om...
你好!

我正在尝试编写一个连接到AS / 400服务器的VB.NET程序。
我几乎尝试了所有的东西,但它无法连接。
我已尝试使用客户端访问ODBC驱动程序设置DSN(v8.00.04.08),但没有结果。我还尝试过无DSN连接。
来自VB.NET我正在使用oleDbConnection创建连接。如果我没有在连接字符串中提供提供程序,程序会挂起
表示提供程序是必需的。
我尝试使用不同的提供程序IBMDA400,MSDASQL,DB2OLEDB。始终具有相同的结果:system.data.dll中出现未处理的类型
''System.InvalidOperationException''异常

附加信息:''IBMDA400''提供者是没有在本地机器上注册。

如何注册IBMDA400提供商?还有另一种方式来连接吗?是否可以建立无DSN连接?

谢谢!
Marcus Malmgren
Hello!

I''m trying to write a VB.NET program that connects to a AS/400 Server.
I''ve tried almost everything, but it will not connect.
I''ve tried to set up a DSN using the Client Access ODBC-driver
(v8.00.04.08) but with no result. I''ve also tried a DSN-less
connection.
From VB.NET i''m using oleDbConnection to create the connection. If I
don''t supply a provider in the connection string, the program hangs
saying that a provider is requiered.
I have tried using different providers IBMDA400, MSDASQL, DB2OLEDB.
Always with the same result: An unhandled exception of type
''System.InvalidOperationException'' occurred in system.data.dll

Additional information: The ''IBMDA400'' provider is not registered on
the local machine.

How do I register the IBMDA400 provider? Is there an other way to
connect? Is it possible to make a DSN-less connection?

Thanks!
Marcus Malmgren



嗨Marcus,


我建议你试试另一个ODBC驱动程序,StarSQL

www.starquest.com )可能是个不错的选择。


Bob
ma ************* @ plastal.com (马库斯)在留言中写道:< d4 * *************************@posting.google。 com> ...
Hi Marcus,

I suggest you try with another ODBC driver, StarSQL
(www.starquest.com) might be a good option.

Bob
ma*************@plastal.com (Marcus) wrote in message news:<d4**************************@posting.google. com>...
你好!

我正在尝试编写一个连接到AS / 400服务器的VB.NET程序。
我几乎尝试了所有东西,但它无法连接。
我尝试使用客户端访问ODBC驱动程序设置DSN(v8.00.04.08),但没有结果。我还尝试过无DSN连接。
来自VB.NET我正在使用oleDbConnection创建连接。如果我没有在连接字符串中提供提供程序,程序会挂起
表示提供程序是必需的。
我尝试使用不同的提供程序IBMDA400,MSDASQL,DB2OLEDB。始终具有相同的结果:system.data.dll中出现未处理的类型
''System.InvalidOperationException''异常

附加信息:''IBMDA400''提供者是没有在本地机器上注册。

如何注册IBMDA400提供商?还有另一种方式来连接吗?是否可以建立无DSN连接?

谢谢!
Marcus Malmgren
Hello!

I''m trying to write a VB.NET program that connects to a AS/400 Server.
I''ve tried almost everything, but it will not connect.
I''ve tried to set up a DSN using the Client Access ODBC-driver
(v8.00.04.08) but with no result. I''ve also tried a DSN-less
connection.
From VB.NET i''m using oleDbConnection to create the connection. If I
don''t supply a provider in the connection string, the program hangs
saying that a provider is requiered.
I have tried using different providers IBMDA400, MSDASQL, DB2OLEDB.
Always with the same result: An unhandled exception of type
''System.InvalidOperationException'' occurred in system.data.dll

Additional information: The ''IBMDA400'' provider is not registered on
the local machine.

How do I register the IBMDA400 provider? Is there an other way to
connect? Is it possible to make a DSN-less connection?

Thanks!
Marcus Malmgren



这里有一个用来进入我们的conn字符串:


Private Const sConnStr As String =" Provider = IBMDA400.DataSource.1; " &

_

"用户ID = zzz;数据源= sysname;保护等级=无;

& _

运输产品=客户访问; " &安培; _

" Force Translate = 00037;默认收藏= zzz; " &安培; _

"转换日期时间为Char = TRUE;密码= xyzzyj"


" DB2" <分贝***** @ hotmail.com>在消息中写道

新闻:a7 ************************** @ posting.google.c om ...
Here''s a conn string I use to get to ours:

Private Const sConnStr As String = "Provider=IBMDA400.DataSource.1; " &
_
"User ID=zzz;Data Source=sysname;Protection Level=None; "
& _
"Transport Product=Client Access; " & _
"Force Translate=00037;Default Collection=zzz; " & _
"Convert Date Time To Char=TRUE;Password=xyzzyj"

"DB2" <db*****@hotmail.com> wrote in message
news:a7**************************@posting.google.c om...
嗨Marcus,

我建议你试试另一个ODBC驱动程序,StarSQL
www.starquest.com )可能是一个不错的选择。

Bob
ma ************* @ plastal.com (马库斯)在留言中写道
Hi Marcus,

I suggest you try with another ODBC driver, StarSQL
(www.starquest.com) might be a good option.

Bob
ma*************@plastal.com (Marcus) wrote in message



news:< d4 ************************** @ posting.google。 com> ...


news:<d4**************************@posting.google. com>...

你好!

我正在尝试编写一个连接到AS / 400的VB.NET程序服务器。
我几乎尝试了所有东西,但它无法连接。
我试图使用客户端访问ODBC驱动程序设置DSN
(v8.00.04。 08)但没有结果。我还尝试过无DSN连接。
来自VB.NET我正在使用oleDbConnection创建连接。如果我没有在连接字符串中提供提供程序,程序会挂起
表示提供程序是必需的。
我尝试使用不同的提供程序IBMDA400,MSDASQL,DB2OLEDB。始终具有相同的结果:system.data.dll中出现未处理的类型
''System.InvalidOperationException''异常

附加信息:''IBMDA400''提供者是没有在本地机器上注册。

如何注册IBMDA400提供商?还有另一种方式来连接吗?是否可以建立无DSN连接?

谢谢!
Marcus Malmgren
Hello!

I''m trying to write a VB.NET program that connects to a AS/400 Server.
I''ve tried almost everything, but it will not connect.
I''ve tried to set up a DSN using the Client Access ODBC-driver
(v8.00.04.08) but with no result. I''ve also tried a DSN-less
connection.
From VB.NET i''m using oleDbConnection to create the connection. If I
don''t supply a provider in the connection string, the program hangs
saying that a provider is requiered.
I have tried using different providers IBMDA400, MSDASQL, DB2OLEDB.
Always with the same result: An unhandled exception of type
''System.InvalidOperationException'' occurred in system.data.dll

Additional information: The ''IBMDA400'' provider is not registered on
the local machine.

How do I register the IBMDA400 provider? Is there an other way to
connect? Is it possible to make a DSN-less connection?

Thanks!
Marcus Malmgren



这篇关于从.NET连接到AS / 400的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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