Solved

IBM DB2 Client for Windows

Posted on 2009-07-01
4
1,721 Views
Last Modified: 2012-05-07
Hi,
We are using IBM DB2 Client 9.5 for connecting to a DB2 server from SQL Server 2005/2008. We have created a datasource and a linked server in SQL Server for that. A query against the DB2 is working fine. But we are getting the below error after we run a query against DB2 using MSDASQL (Microsoft OLEDB provider for ODBC) provider and then run the query using IBM DB2 client.

Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "IBMDADB2.DB2COPY1" for linked server "DB2OLEDB2" reported an error. The provider reported an unexpected catastrophic failure.
Msg 7320, Level 16, State 2, Line 1
Cannot execute the query "Select * from db1.user.table1" against OLE DB provider "IBMDADB2.DB2COPY1" for linked server "DB2OLEDB2".

This issue is getting resolved when we restart the SQL Server. And the issue resurfaces again when we run the query using MSDASQL provider. The MSDASQL provider always works fine but not IBM DB2 Client. Are there any compatibility issues or any other issues between MSDASQL and IBM DB2 client? Can someone please give some insight on this?
0
Comment
Question by:Srinivas_Vengala
  • 2
  • 2
4 Comments
 
LVL 57

Expert Comment

by:Raja Jegan R
ID: 24772846
Hope you didn't installed OLEDB provider for DB2 from Microsoft in your machine.
Instead of MSDASQL, try using DB2OLEDB2 itself for the other one too

Kindly install this one and check it out again.

http://download.microsoft.com/download/4/4/D/44DBDE61-B385-4FC2-A67D-48053B8F9FAD/DB2OLEDB.exe
0
 

Author Comment

by:Srinivas_Vengala
ID: 24783705
We also have DB2OLEDB installed on our machine. We need to test all the drivers so that Production team can install them on the production servers. We need to have all these 3 drivers on the machine without any issues. Hence, can you tell me how can it be resolved?

And also, can you please tell me how to create a linked server to DB2 server using MSDASQL as I suspect our DB2 Linked server configuration using MSDASQL causing this issue.
0
 

Author Comment

by:Srinivas_Vengala
ID: 24783761
In particular I am looking how to configure a DSN (specifically which driver needs to be selected in ODBC administrator) which is given for the parameter  @datasrc while creating the Linked server to DB2 using MSDASQL.
0
 
LVL 57

Accepted Solution

by:
Raja Jegan R earned 500 total points
ID: 24784302
Hope you meant about this one:

http://snippets.dzone.com/posts/show/3731
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

If you having speed problem in loading SQL Server Management Studio, try to uncheck these options in your internet browser (IE -> Internet Options / Advanced / Security):    . Check for publisher's certificate revocation    . Check for server ce…
INTRODUCTION: While tying your database objects into builds and your enterprise source control system takes a third-party product (like Visual Studio Database Edition or Red-Gate's SQL Source Control), you can achieve some protection using a sing…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

705 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now