473,735 Members | 2,295 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Connect to AS/400 from .NET

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.Invalid OperationExcept ion' 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
Nov 12 '05 #1
11 27260
JB
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.goo gle.com...
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.Invalid OperationExcept ion' 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

Nov 12 '05 #2
DB2
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.go ogle.com>...
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.Invalid OperationExcept ion' 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

Nov 12 '05 #3
Here's a conn string I use to get to ours:

Private Const sConnStr As String = "Provider=IBMDA 400.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;Passw ord=xyzzyj"

"DB2" <db*****@hotmai l.com> wrote in message
news:a7******** *************** ***@posting.goo gle.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.go ogle.com>...
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.Invalid OperationExcept ion' 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

Nov 12 '05 #4
Marcus,

Another option would be to use an ADO.NET provider to access the
AS/400 instead of the OLE DB option. This would provide better
performance and allow you take advantage of the features in the .NET
framework (security, memory management).

DataDirect's Connect for .NET provides a 100% managed ADO.NET provider
that can access all flavors of DB2, including AS/400. There are also
no dependencies on DB2 database clients. Everything you need to
connect is in the provider as it uses DRDA to communicate with the
database. You can download a trial version from the Connect for .NET
jump page at:

http://www.datadirect.com/products/dotnet/index.ssp

This trial version is fully functional.

Hope this helps.

Bill Fahey
(bill dot fahey at datadirect dot com)

"Rich Wallace" <ri**********@m inusthecannedme at.jfsheadotcom > wrote in message news:<e5******* *******@TK2MSFT NGP11.phx.gbl>. ..
Here's a conn string I use to get to ours:

Private Const sConnStr As String = "Provider=IBMDA 400.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;Passw ord=xyzzyj"

"DB2" <db*****@hotmai l.com> wrote in message
news:a7******** *************** ***@posting.goo gle.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.go ogle.com>...
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.Invalid OperationExcept ion' 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

Nov 12 '05 #5
Marcus,

Another option would be to use an ADO.NET provider to access the
AS/400 instead of the OLE DB option. This would provide better
performance and allow you take advantage of the features in the .NET
framework (security, memory management).

DataDirect's Connect for .NET provides a 100% managed ADO.NET provider
that can access all flavors of DB2, including AS/400. There are also
no dependencies on DB2 database clients. Everything you need to
connect is in the provider as it uses DRDA to communicate with the
database. You can download a trial version from the Connect for .NET
jump page at:

http://www.datadirect.com/products/dotnet/index.ssp

This trial version is fully functional.

Hope this helps.

Bill Fahey
(bill dot fahey at datadirect dot com)

"Rich Wallace" <ri**********@m inusthecannedme at.jfsheadotcom > wrote in message news:<e5******* *******@TK2MSFT NGP11.phx.gbl>. ..
Here's a conn string I use to get to ours:

Private Const sConnStr As String = "Provider=IBMDA 400.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;Passw ord=xyzzyj"

"DB2" <db*****@hotmai l.com> wrote in message
news:a7******** *************** ***@posting.goo gle.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.go ogle.com>...
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.Invalid OperationExcept ion' 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

Nov 12 '05 #6
Yet another option is to have a local sql server (or msde) and set it up as
a linked server and then just access it via sql server :-)

HTH,

--
Greg Low (MVP)
MSDE Manager SQL Tools
www.whitebearconsulting.com

"Bill Fahey" <wj*****@hotmai l.com> wrote in message
news:77******** *************** **@posting.goog le.com...
Marcus,

Another option would be to use an ADO.NET provider to access the
AS/400 instead of the OLE DB option. This would provide better
performance and allow you take advantage of the features in the .NET
framework (security, memory management).

DataDirect's Connect for .NET provides a 100% managed ADO.NET provider
that can access all flavors of DB2, including AS/400. There are also
no dependencies on DB2 database clients. Everything you need to
connect is in the provider as it uses DRDA to communicate with the
database. You can download a trial version from the Connect for .NET
jump page at:

http://www.datadirect.com/products/dotnet/index.ssp

This trial version is fully functional.

Hope this helps.

Bill Fahey
(bill dot fahey at datadirect dot com)

"Rich Wallace" <ri**********@m inusthecannedme at.jfsheadotcom > wrote in

message news:<e5******* *******@TK2MSFT NGP11.phx.gbl>. ..
Here's a conn string I use to get to ours:

Private Const sConnStr As String = "Provider=IBMDA 400.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;Passw ord=xyzzyj"

"DB2" <db*****@hotmai l.com> wrote in message
news:a7******** *************** ***@posting.goo gle.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.go ogle.com>...
> 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.Invalid OperationExcept ion' 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

Nov 12 '05 #7
Yet another option is to have a local sql server (or msde) and set it up as
a linked server and then just access it via sql server :-)

HTH,

--
Greg Low (MVP)
MSDE Manager SQL Tools
www.whitebearconsulting.com

"Bill Fahey" <wj*****@hotmai l.com> wrote in message
news:77******** *************** **@posting.goog le.com...
Marcus,

Another option would be to use an ADO.NET provider to access the
AS/400 instead of the OLE DB option. This would provide better
performance and allow you take advantage of the features in the .NET
framework (security, memory management).

DataDirect's Connect for .NET provides a 100% managed ADO.NET provider
that can access all flavors of DB2, including AS/400. There are also
no dependencies on DB2 database clients. Everything you need to
connect is in the provider as it uses DRDA to communicate with the
database. You can download a trial version from the Connect for .NET
jump page at:

http://www.datadirect.com/products/dotnet/index.ssp

This trial version is fully functional.

Hope this helps.

Bill Fahey
(bill dot fahey at datadirect dot com)

"Rich Wallace" <ri**********@m inusthecannedme at.jfsheadotcom > wrote in

message news:<e5******* *******@TK2MSFT NGP11.phx.gbl>. ..
Here's a conn string I use to get to ours:

Private Const sConnStr As String = "Provider=IBMDA 400.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;Passw ord=xyzzyj"

"DB2" <db*****@hotmai l.com> wrote in message
news:a7******** *************** ***@posting.goo gle.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.go ogle.com>...
> 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.Invalid OperationExcept ion' 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

Nov 12 '05 #8
And loose all SQL optimizations because of teh linked access.
Happy joining
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #9
And loose all SQL optimizations because of teh linked access.
Happy joining
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
3240
by: James Kupernik | last post by:
Hello everyone! I'm hoping someone can shed some light on my ever daunting mysql/php problem. I'm currently trying to get a new server up and running using apache/php/mysql. Everything runs fine, except every so often (very random) mysql will not autenticate the username and password. Once you hit refresh it goes through fine.
4
9103
by: Steve Smith | last post by:
I have just installed db2 connect v8.1 (personal edition) on my PC - and reinstalled DB2 Application development client (again v8.1 FP4). When trying to use this to connect via CLI to an AS/400 (which is set up correctly according to the 'DB2 Version 8 Connectivity Cheat sheet' by Raul F Chong) I get an error message from db2licm.exe telling me that 'The procedure entry point sqlofgets could not be located in the dynamic link library...
6
3066
by: Jerry Orr | last post by:
We are trying to determine the easiest (and cheapest) way to get connections for about 50 Win2K workstations on our LAN to DB2 on a z/OS server. We could install DB2 Connect Personal Edition on every workstation, but that would require purchasing a license for each workstation (or, more likely, a site license). We would like to avoid that option. I've heard mixed accounts of what DB2 Connect ENTERPRISE Edition can do. One source says...
30
7431
by: aka | last post by:
Hi I have a DB2 v8.1 on AIX and DB2 Connect EE on Solaris wich is connected to OS/390 DB2 subsystems via APPC / SNA. I have cataloged the DB2 Connect instance as tcpip node and then the Host DB cataloged on that node...this works from v7.2 Fixpack 11 clients and servers, but with v8.1 server I get SQL1334N. Does anyone has an idea? Thanks
0
4546
by: Zorba.GR | last post by:
IBM DB2 Connect Enterprise Edition v8.2, other IBM DB2 (32 bit, 64 bit) (MULTiOS, Windows, Linux, Solaris), IBM iSoft Commerce Suite Server Enterprise v3.2.01, IBM Tivoli Storage Resource Manager Express Edition v1.3.2 Win, IBM Tivoli System Automation v1.2.0 Linux, IBM Tivoli Workload Scheduler Virtualized Data Centers v8.2 , other IBM Tivoli CDs, WEBSPHERE EVERYPLACE MOBILE PORTAL v5.0 - ALTIUM , other IBM WebSphere Business CDs...
5
5687
by: mayamorning123 | last post by:
A comparison among six VSS remote tools including SourceOffSite , SourceAnyWhere, VSS Connect, SourceXT, VSS Remoting, VSS.NET To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool This article makes a detailed comparison among SourceAnyWhere 4.0, SourceOffSite 4.1, VSS Connect 1.5, SourceXT 2.1, VSS Remoting 2.5,
5
6669
by: rAinDeEr | last post by:
Hi, Y'day one of my friend showed me how to connect to a Oracle database as SYSDBA, DBA etc I have DB2 UDB installed in Linux machine.Right now, I have a user WADI which has got some previliges on the tables. But I dont know how to connect as SYSDBA etc
14
7040
by: Marcus | last post by:
I have a function that simply returns TRUE if it can connect to a particular Sql Server 2005 express, or FALSE if it cannot. I am getting some strange error codes returned when the computer that sql server resides on is not reachable. The error is different depending on the connection string that I use. If I use the following connection string: "server=192.1.1.1; Initial Catalog=master; uid=The_User; password=The_Password; Connect...
2
3804
by: zgh1970 | last post by:
Hi, All, I have question on DB2 CONNECT configure. We installed DB2 ESE V8 FixPak 14 o AIX . When we set up the connection to DB2 Mainframe. We just catalog node and DB directory without DCS. From what I know, DB2 conenct needs to set up node, dcs and db directories. Why DB2 CONNECT can connect to DB2 mainframe without the DCS?
0
9460
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9323
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9248
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9193
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8196
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6747
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4555
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4821
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3269
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.