473,883 Members | 1,528 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
11 27285
DB2 "Stinger" version of DB2 Connect provides both a native DB2 .NET Data
Provider to enable programming for ADO.NET interfaces and a set of DB2
add-ins for Visual Studio .NET to make this programming an natural
experience for Visual Studio .NET programmers. It fully supports
connectivity to DB2 for iSeries and building of complete applications
including client components and server objects such as stored procedures and
user defined functions. To get DB2 "Stinger" go to
http://www.ibm.com/db2/stinger and apply.

--
Leon Katsnelson
Manager, DB2 Product Management and Planning

Want to do hands-on DB2 Stinger programming?
Attend Hands-On Programming - DB2 Application Development One Day
Educational Seminar
at the IDUG conference in Orlando on May 9.
http://conferences.idug.org/namerica...u_seminars.cfm

DB2 Stinger - The buzz of the database industry.
http://www.ibm.com/db2/stinger

"Greg Low (MVP)" <gr*****@lowell .com.au> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
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 #11
DB2 "Stinger" version of DB2 Connect provides both a native DB2 .NET Data
Provider to enable programming for ADO.NET interfaces and a set of DB2
add-ins for Visual Studio .NET to make this programming an natural
experience for Visual Studio .NET programmers. It fully supports
connectivity to DB2 for iSeries and building of complete applications
including client components and server objects such as stored procedures and
user defined functions. To get DB2 "Stinger" go to
http://www.ibm.com/db2/stinger and apply.

--
Leon Katsnelson
Manager, DB2 Product Management and Planning

Want to do hands-on DB2 Stinger programming?
Attend Hands-On Programming - DB2 Application Development One Day
Educational Seminar
at the IDUG conference in Orlando on May 9.
http://conferences.idug.org/namerica...u_seminars.cfm

DB2 Stinger - The buzz of the database industry.
http://www.ibm.com/db2/stinger

"Greg Low (MVP)" <gr*****@lowell .com.au> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
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 #12

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

Similar topics

22
3252
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
9112
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
3079
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
7460
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
4556
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
5701
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
6681
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
7052
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
3809
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
9932
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11109
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
10728
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...
0
10405
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
9558
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...
0
7114
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5980
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4200
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3227
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.