Hi, could anyone help me?
When I want to access AS400 database i use some code like the following:
{
string strDataSource = "128.2.2.2";
string strDBUser = "dbUser";
string strDBPass = "dbPass";
OleDbConnection objConnection = new OleDbConnection
("Provider=IBMDA400.DataSource.1; Data Source=" + strDataSource
+ ";User Id=" + strDBUser + "; Password=" + strDBPass);
objConnection.Open();
string strSelectCommand = "SELECT * FROM collection.table";
OleDbDataAdapter objDataAdapter = new OleDbDataAdapter(strSelectCommand,
objConnection);
DataTable objDataTable = new DataTable();
objDataAdapter.Fill(objDataTable);
objConnection.Close();
}
Everything just goes fine till today...
Just because I need to get data from AS400 database and store each query
result as MSMQ entry. In order to acomplish this, I wrote one dll COM+ (to be
accessed by the Biztalk 2002) and when I go to the test, I got the following
error when I execute the " objConnection.Open();" command:
"No error information available E_NOINTERFACE(0x80004002)"
The only diference between the two dll's is that one is in COM+ and the
first one Isn't.
Someone knows if there's any issue between ADO.Net and COM+ ? Or COM+ with
OleDB?
Thanks in Advance.
Daniel Santana. 6 5476
In article <AE**********************************@microsoft.co m>, "=?Utf-
8?B?RGFuaWVsIFNhbnRhbmE=?=" <Daniel Sa*****@discussions.microsoft.com>
says... Just because I need to get data from AS400 database and store each query result as MSMQ entry. In order to acomplish this, I wrote one dll COM+ (to be accessed by the Biztalk 2002) and when I go to the test, I got the following error when I execute the " objConnection.Open();" command:
"No error information available E_NOINTERFACE(0x80004002)"
The only diference between the two dll's is that one is in COM+ and the first one Isn't.
Someone knows if there's any issue between ADO.Net and COM+ ? Or COM+ with OleDB?
Does your .NET component inherit from the ServicedComponent class? Did
you use regsvcs.exe to register it with COM+?
--
Patrick Steele
Microsoft .NET MVP http://weblogs.asp.net/psteele
Daniel Santana wrote: Just because I need to get data from AS400 database and store each query result as MSMQ entry. In order to acomplish this, I wrote one dll COM+ (to be
Why did you write a COM+ dll? Can't you use a .NET dll with BizTalk?
Or use a Web Method?
Also, did you know there are now native .NET drivers for AS/400/DB2 that
come with the iSeries client access utilities, so you don't have to use
OleDb.
Yes Patrick.... About COM+, everything is just fine... I follow the steps to
get my dll registered and, at the end, I used the regsvcs.exe application.
All in the dll but the OleDb suff is working fine .
Tks!
"Patrick Steele [MVP]" wrote: In article <AE**********************************@microsoft.co m>, "=?Utf- 8?B?RGFuaWVsIFNhbnRhbmE=?=" <Daniel Sa*****@discussions.microsoft.com> says... Just because I need to get data from AS400 database and store each query result as MSMQ entry. In order to acomplish this, I wrote one dll COM+ (to be accessed by the Biztalk 2002) and when I go to the test, I got the following error when I execute the " objConnection.Open();" command:
"No error information available E_NOINTERFACE(0x80004002)"
The only diference between the two dll's is that one is in COM+ and the first one Isn't.
Someone knows if there's any issue between ADO.Net and COM+ ? Or COM+ with OleDB?
Does your .NET component inherit from the ServicedComponent class? Did you use regsvcs.exe to register it with COM+?
-- Patrick Steele Microsoft .NET MVP http://weblogs.asp.net/psteele
John Bailo,
Do you know where I can find it?
Sorry.... but I`m new in As400 "world"...
Tks!
"John Bailo" wrote: Daniel Santana wrote:
Just because I need to get data from AS400 database and store each query result as MSMQ entry. In order to acomplish this, I wrote one dll COM+ (to be
Why did you write a COM+ dll? Can't you use a .NET dll with BizTalk? Or use a Web Method?
Also, did you know there are now native .NET drivers for AS/400/DB2 that come with the iSeries client access utilities, so you don't have to use OleDb.
I didn't saw your first question.
The biztalk 2000/2002 just works with COM+ components or vbs files.
"John Bailo" wrote: Daniel Santana wrote:
Just because I need to get data from AS400 database and store each query result as MSMQ entry. In order to acomplish this, I wrote one dll COM+ (to be
Why did you write a COM+ dll? Can't you use a .NET dll with BizTalk? Or use a Web Method?
Also, did you know there are now native .NET drivers for AS/400/DB2 that come with the iSeries client access utilities, so you don't have to use OleDb.
I finnaly got the solution....
Using the Component Services administrative tool, I disable the support for
transactions.
(Under the tab "Transactions", I selected the "disabled" option). For more
information, this link might be usefull: http://msdn.microsoft.com/library/de...tions_5r39.asp
Thank you for everyone!
Daniel's This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: mechweb |
last post by:
I am trying to connect to a DB2 database on an AS400 via ASP. On the server
I can connect fine using VB, but keep getting a communcation link failure
when using the exact same code in ASP. Here is...
|
by: Niyazi |
last post by:
Hi,
I have to retrieve a data from AS400 DB2 and after working with data I have
to export into one of existing Excel file.
I can connect into specific library in AS400 DB2 using AS400...
|
by: Sleepy Smurf |
last post by:
Hello all,
I wonder if you could clarify this for me:
I want to develop applications on the Visual Studio.Net platform with
connectivity to the DB2 on the AS400 platform for the database.
I...
|
by: Amanda |
last post by:
From a guy in Microsoft newsgroups:
| In *comp.databases.ibm-db2* there are always IBM guys
| from the Toronto labs on line.Post with the
| -for the love of god please help-
| line...
|
by: Matthew Wells |
last post by:
FIRST OF ALL, I APPRECIATE PEOPLE SENDIUNG ME LINKS TO WEB SITES FOR
CONNECTION STRINGS BUT AS I'VE SAID BEFORE THAT IS NOT WHAT I NEED. I CAN
EASILY OPEN AN ADO CONNECTION OBJECT TO AS400. I...
|
by: Matthew Wells |
last post by:
Hello,
I'm still trying to get this to work.
I'm using Access tabledefs to connect to AS400. I need to refresh the
existing links to different AS400 machines (same tablenames). I need a...
|
by: Sehboo |
last post by:
Hello,
we have data sitting on AS400 (V4R5M0) - DB2-400. I need to access
that from my vb.net application. I don't know anything about AS400.
Is it possible to get data from tables and stored...
|
by: Brad Allison |
last post by:
Sorry to repeat myself if this is the same question I asked in the past, but
I have finally made a connection to our AS400 through ODBC. I tried to get
the connection using the data connection...
|
by: MadMan2004 |
last post by:
Hello all!
I'm having a problem with a project I'm working on and I'd like to ask
for anyone's input that might be helpful. I'm building a rather large
front-end application connecting to an...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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,...
|
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...
|
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...
|
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,...
|
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...
| |