473,549 Members | 2,616 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DB2 Connection Issue

OK, I am trying to connect to DB2 (z/OS). I have successfully made the
connection to the database in the Server Explorer. I am also able to
successfully log in to DB2 when I am testing the "System DSN" in the ODBC
configuration tool (MS).

When In server Explorer, I click on my connection object and then select
properties to get the connection information. I then copy this connection
information and place it into a string object so that I can configure all the
connection information in my code. I add to that connection information the
"Password" as this does not show up in the properties.

When I attempt to connect to the Database, I get and error which suggest
that the user ID/Password is invalid. I know that this password and user ID
is valid, so it must be something else. A format issue or perhaps there is
somethine which is missing in the properties other then password. Below is
my connection information. I presume that I am connecting via ODBC (the
error mseeage points this out), but there is nothing in the properties for
the connection (within server explorer) which specifies that.

Dsn=DB29;uid=XX XXXX;pwd=YYYYYY ,dbalias=DB29;s chemalist='GATS C'

Here is the error message that I am getting...
ERROR [08001] [IBM][CLI Driver] SQL30082N
Attempt to establish connection failed with security reason \"24\"
(\"USERNAME AND/OR PASSWORD INVALID\"). SQLSTATE=08001\ r\n\r\nERROR [IM006]
[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAt tr failed"}
System.Exceptio n {System.Data.Od bc.OdbcExceptio n}

SO what might be the problem?

Thanks in advance for your assistance!!

Jul 28 '06 #1
1 4161
Hi,

Take a look at connectionstrin gs.com

OLE DB, OleDbConnection (.NET) from ms
a.. TCP/IP:

"Provider=DB2OL EDB;Network Transport Library=TCPIP;N etwork
Address=XXX.XXX .XXX.XXX;Initia l Catalog=MyCtlg; Package
Collection=MyPk gCol;Default Schema=Schema;U ser ID=MyUser;Passw ord=MyPW"

b.. APPC:

"Provider=DB2OL EDB;APPC Local LU Alias=MyAlias;A PPC Remote LU
Alias=MyRemote; Initial Catalog=MyCtlg; Package Collection=MyPk gCol;Default
Schema=Schema;U ser ID=MyUser;Passw ord=MyPW"
ODBC
a.. Standard:

"driver={IB M DB2 ODBC
DRIVER};Databas e=myDbName;host name=myServerNa me;port=myPortN um;protocol=TCP IP;
uid=myUserName; pwd=myPwd"
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"OldButStillLea rning" <Ol************ *****@discussio ns.microsoft.co mwrote
in message news:65******** *************** ***********@mic rosoft.com...
OK, I am trying to connect to DB2 (z/OS). I have successfully made the
connection to the database in the Server Explorer. I am also able to
successfully log in to DB2 when I am testing the "System DSN" in the ODBC
configuration tool (MS).

When In server Explorer, I click on my connection object and then select
properties to get the connection information. I then copy this connection
information and place it into a string object so that I can configure all
the
connection information in my code. I add to that connection information
the
"Password" as this does not show up in the properties.

When I attempt to connect to the Database, I get and error which suggest
that the user ID/Password is invalid. I know that this password and user
ID
is valid, so it must be something else. A format issue or perhaps there
is
somethine which is missing in the properties other then password. Below
is
my connection information. I presume that I am connecting via ODBC (the
error mseeage points this out), but there is nothing in the properties for
the connection (within server explorer) which specifies that.

Dsn=DB29;uid=XX XXXX;pwd=YYYYYY ,dbalias=DB29;s chemalist='GATS C'

Here is the error message that I am getting...
ERROR [08001] [IBM][CLI Driver] SQL30082N
Attempt to establish connection failed with security reason \"24\"
(\"USERNAME AND/OR PASSWORD INVALID\"). SQLSTATE=08001\ r\n\r\nERROR
[IM006]
[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAt tr failed"}
System.Exceptio n {System.Data.Od bc.OdbcExceptio n}

SO what might be the problem?

Thanks in advance for your assistance!!

Jul 28 '06 #2

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

Similar topics

0
3364
by: Ryan Schefke | last post by:
------=_NextPart_000_0077_01C34C8B.2B90C960 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit ..I just sent this out to the win32 distribution list but no one has replied.can someone on this list please help? The issue should be trivial for experienced MySQL users, I'm just a novice, thanks!
5
4956
by: Brian Piotrowski | last post by:
Hi All, I almost have the connection working for my connection to the AS/400 from an ASP page. However, I have an error appearing, and I'm not sure how to fix it. The code I have for connecting to the AS/400 is this: <% Set adoCon = Server.CreateObject("ADODB.Connection") adoCon.Open "Provider=IBMDA400.DataSource.1;Persist Security...
0
976
by: Rig76 | last post by:
I'm having a very strange issue with an application I'm building. The applicaiton has multiple users, each with their own connection to the database. However, when one of these connections closes then all the other users connections seem to close. This is most obviously seen when I'm writing a rather large chunk of data with connection A....
0
1128
by: WC Justice | last post by:
This website is running on IIS 6, SQL Server 7 back end, asp scripting. It has public and private areas, but uses the same connection scripting throughout the entire site. SET conn = server.createobject ("adodb.connection") conn.open Session("DSN") strUserID = request.form("txtUserID")
7
1214
by: Mike | last post by:
I'm trying to connect to a SQL 2000 db that is on another server then the web server. I setup and ID and PWD to access the SQL db via the code and it works locally and when I put the everything on the web server I get an Access denied to SQL Database. what is causing this, what do i need to change
2
4080
by: JohnnyBoy | last post by:
I am learning to program C++ .net and am having difficulty with one of the exercises and wondered if someone could help? I am including the code for a console app I wrote according to the exercise that is supposed to create a connection to the Northwind.mdb database. I modified the code for the ConnectionString to include the path to where I...
3
1335
by: JD | last post by:
Hello, I am dealing with an issue, that although probably simple, is driving me crazy. I am trying to connect to a SQL 2005 Express database through a web service using the following code: public XmlDocument GetAllAuthors() { XmlDocument doc = new XmlDocument();
1
1195
by: nickyeng | last post by:
Hi all, I have a question. The situation is like this. I have website and allow user to login and check their details. Every pages are jsp file and contented connection to mysql database to retrieve information. Sometimes it can be accessed to mysql but sometimes cannot. and the error it give me is NullPointerException.
2
1890
by: Martin | last post by:
I have the following code being used in several of my PHP scripts (it's in an include file). It opens a socket connection to a process that's running on the same computer that IIS/PHP is running on. The OS is Windows XPPro. This all works fine - no problems. $portnum = 1001; $address = $_SERVER; $socket = @fsockopen($address, $portnum,...
0
7521
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, 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...
0
7451
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7720
Oralloy
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. ...
0
7959
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7473
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6044
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5369
isladogs
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...
0
5088
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...
1
1944
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 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.