473,395 Members | 2,006 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Enterprise Library - DB2 data access

Not sure where to post this question as I didn't find any groups
specific to enterprise library. So I'm posting here..

I'm trying to retrieve data from a DB2 database. It throws an Invalid
argument trying to connect to the database.

IBM.Data.DB2.DB2ConnPool.a(String A_0, a& A_1, f& A_2)\r\n at
IBM.Data.DB2.DB2Connection.set_ConnectionString(St ring value)\r\n at
IBM.Data.DB2.DB2Connection..ctor(String connectionString)\r\n at
Microsoft.Practices.EnterpriseLibrary.Data.DB2.DB2 Database.GetConnection()\r\n
at
Microsoft.Practices.EnterpriseLibrary.Data.Databas e.OpenConnection()\r\n
at
Microsoft.Practices.EnterpriseLibrary.Data.Databas e.ExecuteReader(DBCommandWrapper
command)\r\n at
Microsoft.Practices.EnterpriseLibrary.Data.Databas e.ExecuteReader(CommandType
commandType, String commandText)\r\n at
TestDB2EntLibrary.Form1.btnDb2EL_Click(Object sender, EventArgs e) in
c:\\user_projects\\pocs\\testdb2entlibrary\\form1. cs:line 176

I tried connecting through ODBC and OLEDB and both work just fine. Here
are the connectionstrings I used for both:

OLEDB:
Provider=IBMDADB2;Database=<DBName>;PROTOCOL=TCPIP ;HOSTNAME=<servername>;PORT=<port>;uid=<userid>;pw d=<password>

ODBC:
DSN=<DSNName>;uid=<userid>;pwd=<password>

The DSN is set up using "IBM DB2 ODBC Driver".

The issue is that when I define these parameters in the
dataConfiguration.config file, I'm seeing the above error. I'm not sure
what connector enterprise library uses to connect to DB2 or what
parameters that connector expects. Not able to find any documentation
too.

Could somebody help?

thanks in advance
Srinivas.

Oct 10 '05 #1
0 1966

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

Similar topics

1
by: Mike Chamberlain | last post by:
Hi all. I'm trying to extend the Microsoft Enterprise Library Data Access Application Block (http://msdn.microsoft.com/library/en-us/dnpag2/html/daab.asp?frame=true) to work with a Borland...
8
by: poifull | last post by:
Is anyone using the Microsoft Enterprise Library? If yes, do you like it or not? Any feedback will be appreciated.
3
by: veera sekhar kota | last post by:
hi, im seriously looking for right answer .... We are developing windows application in c#. I implemented DAAB(Data Access Application Block) 2.0 in our application. One of the senior asked...
0
by: veera sekhar kota | last post by:
im seriously looking for right answer .... We are developing windows application in c#. I implemented DAAB(Data Access Application Block) 2.0 in our application. One of the senior asked me to...
0
by: veera sekhar kota | last post by:
im seriously looking for right answer .... We are developing windows application in c#. I implemented DAAB(Data Access Application Block) 2.0 in our application. One of the senior asked me to...
2
by: bjhogan | last post by:
Hi, I have built an c# asp.net application on my laptop, it uses the Enterprise Library blocks - Data Access Application Block, Configuration Application Block. I now want to deploy my...
6
by: Jonathan Crawford | last post by:
Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) +473 Hi I have installed the enterprise library on a development machine and created a project on our webserver. When...
1
by: dhussong | last post by:
I am attempting to use Visual Studio 2005 (Visual Basic) and the Enterprise Library 2.0 Data Access Application Block with a Microsoft Access database. I know the names of my Access databases but I...
7
by: galico | last post by:
Hi All, We are having a very strange problem with the above. We have designed an application in ASP.NET 2.0 that uses the enterprise library data application blocks amongst others. We seem to be...
3
by: bungle | last post by:
Hi, I have started using MS Enterprise Library for the data access layer and found it great. I have changed to coding on another machine though and didn't think it necessary to a full install of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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,...
0
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...
0
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...
0
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,...

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.