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 11 27261
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
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
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
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
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
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
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
And loose all SQL optimizations because of teh linked access.
Happy joining
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
And loose all SQL optimizations because of teh linked access.
Happy joining
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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.
|
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...
|
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...
|
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
|
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...
| |
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,
|
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
|
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...
|
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?
|
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...
|
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...
| |
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...
|
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...
|
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...
|
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...
|
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();...
|
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: 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...
| |