473,387 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Linking SQL Server 2000 to DB2 Connect 8.x

Dad
I need to connect SQL Server 2000 to DB2 on z/OS through DB2 Connect 8.
I can successfully connect and query data through a System DSN, but
trying to link the server using this DSN and MSDASQL fails (can't seem
to find the DB2 Connect server). I've also tried IBM's OLE/DB driver
(IBMDADB2).

Has anyone successfully linked to DB2 on a mainframe through DB2
Connect 8.x via either ODBC or OLE/DB drivers?

Jul 23 '05 #1
3 2462
DB2 Connect "talks" DRDA

ODBC and DRDA are two different standards. Please take a look at the
following...

http://www.unixreview.com/documents/s=1471/urm0000ndc/

Jul 23 '05 #2
Microsoft SQL Server 2000 is not a DB2 client. It has facilities for
connecting to remote databases, but you must configure these correctly to
use the IBM DB2 drivers, not the Microsoft SQL Server drivers. MSDASQL is
Microsoft SQL Server driver, not an IBM DB2 driver. The IBM OLE DB driver is
OK, but Microsoft's SQL Server's approach is not completely compatible, IIRC
(but check on a SQL Server forum for the details). Summary: To access IBM
databases, you need to use the corresponding IBM driver. Use of the
Microsoft driver will not and can not work.

Your best bet - assuming you really do need a Microsoft SQL Server in the
equation at all - is to use the IBM ODBC driver from SQL Server. Note that
if you do place the Microsoft code between your application and DB2, that
you will need to address security very carefully, since the MS layer does
not fully support the IBM distributed security model. This too, should be
taken up on a SQL Server forum.

Leaving SQL Server out of the access path (i.e. have your applicaiton talk
to both on their own terms, using the distributed transaction coordinator to
address 2 phase commit) is a lot easier and imposes substantially less
constraints, It's also almost trivial to get working.

"Dad" <da********@gmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
I need to connect SQL Server 2000 to DB2 on z/OS through DB2 Connect 8.
I can successfully connect and query data through a System DSN, but
trying to link the server using this DSN and MSDASQL fails (can't seem
to find the DB2 Connect server). I've also tried IBM's OLE/DB driver
(IBMDADB2).

Has anyone successfully linked to DB2 on a mainframe through DB2
Connect 8.x via either ODBC or OLE/DB drivers?

Jul 24 '05 #3
Mark Yudkin (my***********************@boing.org) writes:
Microsoft SQL Server 2000 is not a DB2 client. It has facilities for
connecting to remote databases, but you must configure these correctly to
use the IBM DB2 drivers, not the Microsoft SQL Server drivers. MSDASQL is
Microsoft SQL Server driver, not an IBM DB2 driver.
Correction: MSDASQL is an OLE DB provider that uses an ODBC driver as
its data source. It is thus not specific for SQL Server, bu can be used
to connect to any data source for which there is an ODBC driver.

Thus when you say:
Your best bet - assuming you really do need a Microsoft SQL Server in the
equation at all - is to use the IBM ODBC driver from SQL Server.


You are saying that he should use MSDASQL.

To wit, when you communicate with a linked server from SQL Server, you
always to this over OLE DB. Either then you use a targeted OLE DB provider,
or you use MSDASQL to use an ODBC driver. Usually it's preferrable to
use a targeted OLE DB provider over MSDASQL.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 24 '05 #4

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

Similar topics

2
by: Jay Chan | last post by:
We have just installed a SQL Server 2000 (SP 3A) onto a computer that has Windows-2003 Server on it. Now, we cannot get access to that database server from other computers. Seem like this may be an...
3
by: John South | last post by:
I have an Access 2000 front end that I wish to work with a SQL Server 2000 database by means of Linked tables. Do I have to use an ODBC connection to SQL Server? It seems to be the only option...
2
by: kai | last post by:
Hi, All I used to link a SQL Server 2000 table through ODBC in Access 2003 using Wizard, now because the security requirement, I want to do the same job using code. I tried hard, but not...
17
by: Danieltbt05 | last post by:
just installed SQL server 2000 and using my client , i can't locate the server. I used SQL query analyzer to search but no servers were found. Error message is as below Server : Msg17,level...
8
by: M K | last post by:
I am a newbie at C# (VS 2005) and SQL Server(2003). I was able to create a db using my old pc and then copied it to my laptop to my project folder, I cannot connect to it nor can i create a db on...
5
by: Jack | last post by:
Hello, I had SQL2000 server running fine on the windows 2003 box. I then installed SQL 2005 Express. They both worked together fine. I then uninstalled SQL 2005 Express and installed SQL 2005...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
0
by: tamayi | last post by:
I have a problem (like most others posting issues on this forum :) ) I have a remote server running Windows XP SP2, with both SQL Server 2005 Express with Advanced Features and SQL 2000...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...

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.