If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > SQL to DB2 Connection

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-30-09, 05:00
Athers Athers is offline
Registered User
 
Join Date: Sep 2009
Posts: 1
SQL to DB2 Connection

Hi all,

I am having trouble connecting to a DB2 database from SQL server 2008/Visual Studio. It is DB2 Express v9.1.200.166 on a Windows server.

I have downloaded the Microsoft db2 OLE DB driver, but receive an error message when trying to configure it using the data import wizard in SSMS, or when trying to create a connection manager in VS2008.

Error when testing connection:

Test connection failed because of an error in initializing the provider. - The parameter is incorrect.

This is my error when trying to configure a package:

Connecting...
Package creation failed:
A TCPIP socket error has occured (10061): No connection could be made because the target machine actively refused it.
SQLSTATE: 08S01, SQLCODE: 10061

I have run netstat and think i'm using the correct port db2 is listening on. I've also turned off the firewall for now and enabled TCP/IP.

Can anyone offer any advice?

Thanks in advance.

Last edited by Athers; 09-30-09 at 05:10.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On