Table join between two different databases (MSSQL 6.5) 
Author Message
 Table join between two different databases (MSSQL 6.5)

All,

I need to create a resultset based on a join between two tables in different
MSSQL 6.5 databases.  I know this can be done with 7.0, but that is not an
option for us at this time.  Any help would be greatly appreciated.

I am using VBEE 5.0 and RDO 2.0

Thanks for you help,

Matt Childs
Sr. Systems Analyst/Developer
Integrity Solutions Inc.



Sat, 05 Oct 2002 03:00:00 GMT  
 Table join between two different databases (MSSQL 6.5)
Matt,

You do not indicate whether the databases are on the same server, or on
different servers.

If they are on the same server, then you should be able to join just by using
the fully-qualified table name ...

<database>.<owner>.<table>

for example pubs.dbo.authors

If they are on different servers, then you can not do a direct join. You can
however execute a remote stored procedure to bring data from the remote server,
load it into a temp table, and then do a local join to it.

---------------------------------------------------------------
BP Margolin
Please reply only to the newsgroups.
When posting, inclusion of SQL (CREATE TABLE ..., INSERT ..., etc) which can be
cut and pasted into Query Analyzer is appreciated.


Quote:
> All,

> I need to create a resultset based on a join between two tables in different
> MSSQL 6.5 databases.  I know this can be done with 7.0, but that is not an
> option for us at this time.  Any help would be greatly appreciated.

> I am using VBEE 5.0 and RDO 2.0

> Thanks for you help,

> Matt Childs
> Sr. Systems Analyst/Developer
> Integrity Solutions Inc.



Sat, 05 Oct 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

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

2. Table join between two tables in different databases

3. Joining two tables from different databases

4. Joining two tables from two databases

5. Joining two tables on different length fields

6. joining two tables from different dbs

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

8. Joining two tables from different dbs

9. Join on two tables from different data sources?

10. Database (MSSQL 6.5) conection over OLE ?

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

12. Performing an INNER JOIN in two different databases.

 

 
Powered by phpBB® Forum Software