Visual Studio 2005 Connection to DB2 on IBM i5

I'm a windows programmer tryng to establish a data connection to a DB2 instance on an IBM i5 series machine.  I talked to the IBM support center, and followed the guidelines by installing the required iSeries ODBC drive and accompanying Visual Stuido 2005 Add-Ins as detailed in the following reference doc:

http://www.databasejournal.com/features/db2/article.php/3751776

But - when I try to establish a connection using the server IP address and database name - I keep getting the following connection error message:  

Error opening connectionERROR [08001] [IBM] SQL30081N  A communication error has been detected.  Communication protocol being used: "TCP/IP".  Communication API being used: "SOCKETS".  Location where the error was detected: "192.168.14.23".  Communication function detecting the error: "connect".  Protocol specific error code(s): "10061", "*", "*".  SQLSTATE=08001

According to my IT guys, there is no firewall blocking and all ports should be open to receive.  How can I check the actual connection is working/listenting on TCP/IP as well as on sockets?  From the error - it seems as though the DB2 instance on the i5 series is not listening on TCP/IP and needs to be.  Any ideas on how I can get this connection to work?  

thanks in advance for any help with this.
coechoAsked:
Who is Participating?
 
ScottParkerConnect With a Mentor Commented:
That error message says its a License issue.
perhaps you do not have a SQL license on your iSeries.

https://publib.boulder.ibm.com/infocenter/db2luw/v9r5/index.jsp?topic=/com.ibm.db2.luw.messages.sql.doc/doc/msql08002n.html
0
 
momi_sabagCommented:
i guess you need to look on the i5 and run the equivalent command of netstats -an
to see which ports are being listened to
0
 
coechoAuthor Commented:
I don't know the i5.  What is the equivalent of netstats on the i5 and how would you run it?  
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
coechoAuthor Commented:
It looks like it is listening on port 446.  Now when I try to connect - I'm getting the following error message:

ERROR [42968] [IBM] SQL8002N An attempt to connet to a host failed due to a missing DB2 Connect product or invalid license SQLSTATE=4296B
0
 
coechoAuthor Commented:
Does DB2 Connect need to be installed on the i5 - even if I want to connect via the i5 ODBC iSeries ODBC driver instead?  When I talked with IBM support, they recommded iSeries driver over DB2 Connect.  So - I guess I don't understand if I'm using the correct driver in order to connect via VS 2005 and DB2?  I'm using the "IBM DB2, IDS and U2 Data Provider for the .Net Framework as my Data Source, as detailed in the document IBM support sent me - but now this doesn't seem like the correct Data Source to use and I don't see an option for the iSeries Access ODBC Driver in the Data Source option list from Visual Studio 2005.
0
 
hoospieCommented:
This one really hasn't been closed, has it? coecho, did you get it working?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.