Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

Connecting to DB2 using SSIS

To start, first download and install the Microsoft OLE DB Provider for DB2. Click here to download. After it is installed I suggest rebooting your machine. In some cases a reboot is not required; however I have encountered problems without rebooting.

Next open an SSIS project and create a new data source. On the Connection Manager screen select Microsoft OLE DB Provider for DB2 from the drop down list labeled Provider. In the text box labeled Server or file name enter the IP address of your server. Then select the radio button labeled Use a specific user name and password. Enter you user name and password and select the checkbox labeled allow saving password if you want to persist those values. Then enter you database name in the drop down list labeled Initial Catalog.

clip_image002

Now you must click the button labeled Data Links. The Data Source, User Name and Initial Catalog textboxes should be populated. You will only need to enter values for the textboxes labeled Package Collection and Default Schema. Enter your database schema in both textboxes.

clip_image004

Then click on the Advanced tab and check the box labeled Process binary as character.  To understand why you need to do this please read, How to Retrieve IBM AS 400 /JD Edwards “for bit data” via SSIS, by Alberto Munera.

image

Now click on the ellipses next to the Network drop down list and enter your IP address in the textbox labeled IP Address.

clip_image006

Click Ok twice and you will be returned to the Connection Manager Screen. Click the button labeled Test Connection to verify that your settings are correct. Now that you have a successful connection to your DB2 database click OK and the data source is ready to use. I have to give credit to my colleagues at TBC for assisting me in putting this document together, thanks Roberto and Chad.

Talk to you soon,

Patrick LeBlanc, MCTS

Founder www.TSQLScripts.com and www.SQLLunch.com.

Visit www.BIDN.com, Bring Business Intelligence to your company.

Comments

Posted by mhm281 on 2 May 2011

Would this setup work for SQL 2008R2?

After installing the package, I am having problem using it. I followed all steps but it return with error related parameters conning to source.

Any idea???

Max

Posted by kpfitzgerald on 12 October 2011

Since this OLE DB is deprecated, i would not travel down this path, but instead install the visual studio addin's and db2 client on the system to access via ODBC/JDBC type 4 native drivers.

Leave a Comment

Please register or log in to leave a comment.