Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2011-02-20
2
Medium Priority
?
1,859 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 46

Accepted Solution

by:
Kent Olsen earned 2000 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

Automating Terraform w Jenkins & AWS CodeCommit

How to configure Jenkins and CodeCommit to allow users to easily create and destroy infrastructure using Terraform code.

Question has a verified solution.

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

Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

688 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