Join on two tables from different data sources? 
Author Message
 Join on two tables from different data sources?

Is this possible via ADO?  I have two connections, one to an Access database
and another to an AS/400 database.  I can get a recordset from a table in
each of these separately, but then I want to do a query that would be a SQL
join between these two recordsets.   I know I could to this by using an ODBC
linked table to the AS/400 in Access first, but that introduces a lot of
overhead and slowness for ODBC.  Is there any way to do this purely with
just ADO?

I found this tantalizing post on deja.com that indicates this might be
possible, assuming the guy new what he was talking about:

http://www.*-*-*.com/

Thanks



Sat, 11 Jan 2003 03:00:00 GMT  
 Join on two tables from different data sources?
ADO can't perform joins against heterogeneous data sources in the way you
mentioned.  You need a database engine with a query optimizer such as JET or
SQL Server to perform the join.

My $0.02
--
Patrick Logan, MCSD
Senior Technical Development Advisor
McKessonHBOC -- Extended Care Solutions Group

Opinions expressed are my own and not necessarily those of McKessonHBOC.



Sat, 11 Jan 2003 03:00:00 GMT  
 Join on two tables from different data sources?
Thanks.  I suspected it had to be a database engine feature but I wasn't
totally sure.


Quote:
> ADO can't perform joins against heterogeneous data sources in the way you
> mentioned.  You need a database engine with a query optimizer such as JET
or
> SQL Server to perform the join.

> My $0.02
> --
> Patrick Logan, MCSD
> Senior Technical Development Advisor
> McKessonHBOC -- Extended Care Solutions Group

> Opinions expressed are my own and not necessarily those of McKessonHBOC.



Sat, 11 Jan 2003 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Trying to bind data from two different tables to two different controls

2. Table join between two tables in different databases

3. Joining two tables from different databases

4. Creating a join on tables in two different MSSQL 6.5 DB's

5. Joining two tables on different length fields

6. Table join between two different databases (MSSQL 6.5)

7. joining two tables from different dbs

8. Querying two recordset objects or Joining tables from different datastores

9. Joining two tables from different dbs

10. Joining two tables from two databases

11. Here's a sticky wicket - joining two tables on two diffrent servers with ADO

12. Linking two different tables on one form WITHOUT using Data Environment Deisgner

 

 
Powered by phpBB® Forum Software