Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Linking SQL Server 2000 to DB2 Connect 8.x
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?


Report this thread to moderator Post Follow-up to this message
Old Post
Dad
07-22-05 06:23 PM


Re: Linking SQL Server 2000 to DB2 Connect 8.x
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/


Report this thread to moderator Post Follow-up to this message
Old Post
db2newbie
07-23-05 01:23 AM


Re: Linking SQL Server 2000 to DB2 Connect 8.x
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" <dadburnett@gmail.com> wrote in message
news:1122055835.814312.44300@z14g2000cwz.googlegroups.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?
>



Report this thread to moderator Post Follow-up to this message
Old Post
Mark Yudkin
07-24-05 08:23 AM


Re: Linking SQL Server 2000 to DB2 Connect 8.x
Mark Yudkin  (myudkinATcompuserve
DOTcom@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, esquel@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp

Report this thread to moderator Post Follow-up to this message
Old Post
Erland Sommarskog
07-24-05 12:27 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

Microsoft SQL Server forum archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 11:15 AM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006