Solved

error when connecting to DB2 data via IBM OLEDB using ASP.net

Posted on 2011-02-20
2
1,843 Views
Last Modified: 2012-05-11
I'm trying to connect to new database called TEST10 through ASP.net and I'm getting the error: System.Data.OleDb.OleDbException: CLI0124E  Invalid argument value. SQLSTATE=HY009

The database I use to connect to was called TEST and that works without any errors.  Here is my web.config file.  The only change I made was calling the Data Source TEST_TMW10.  It was TEST_TMW.

from web.config....
            <add name="TEST_TMW" connectionString="Provider=IBMDADB2.DB2COPY1;Data Source=TEST_TMW10;Persist Security Info=True;Password=pppp;User ID=uuuu" providerName="System.Data.OleDb"/>

I have a Data Source in Windows ODBC called TEST_TMW10 and I can connect to it there using the connect button.

Any help would be greatly appreciated.

Thanks,
Steve Cross
Fairrington
0
Comment
Question by:fairrington
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 45

Accepted Solution

by:
Kent Olsen earned 500 total points
ID: 34938464
Hi  fairrington,

Some simple things to check:

 - Is the database set up to answer connections? (Can you connect with other tools)?
 - Is the database name unique in your network? (Do you have identical production and test databases)?
 - Are you connecting with the database name or alias name?  (Life will be easier in the long run if you connect via the alias name.


Good Luck,
Kent
0
 

Author Closing Comment

by:fairrington
ID: 34944687
Thanks for responding to my question. This morning when I tried connecting it worked, so I'm not sure why it was giving me the error yesterday.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question