Article View: borland.public.cppbuilder.database.ado
Article #1028Re: Joining tables from different databases
From: Viatcheslav V. Vassiliev
Date: Wed, 15 Dec 2004 09:52
Date: Wed, 15 Dec 2004 09:52
38 lines
2358 bytes
2358 bytes
You may try to add linked server to MS SQL Server. Look sp_addlinkedserver in BOL. //------------------------------------------ Regards, Vassiliev V. V. http://www.managed-vcl.com - using .Net objects in Delphi for Win32 + ADO.Net http://www.oledbdirect.com - The fastest way to access MS SQL Server, MS Jet (Access) and Interbase (through OLEDB) "Patrick Wong" <patrickwong@computer.org> �������/�������� � �������� ���������: news:41bfa1cc$1@newsgroups.borland.com... > Dear all, > > I don't know whether this is the right place to post this message, since the > problem is not specific to ADO. > > This is an existing application that requires data from two different > databases, Informix and MSSQL Server. Informix provides a view for MSSQL > server to fetch required dataset. MSSQL constructs its own records > > A new requirement is that based on the records in one of the MSSQL table, I > need to get extra data from Informix's view, which having matched fields in > two. Since VCL data access components (TQuery, TADOQuery, etc.) have one > database name only, how can I specify to join two tables in these separated > databases? > > Thanks for any kind advice. > > Best regards, > Patrick > >
Technical Details
Message-ID:
<41c00945@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news2.euro.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41bfa1cc$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,a37be4c1a4c96948 X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com> Newsgroups: borland.public.cppbuilder.database.ado References: <41bfa1cc$1@newsgroups.borland.com> Subject: Re: Joining tables from different databases Date: Wed, 15 Dec 2004 12:52:05 +0300 Lines: 40 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 217.73.240.22 Message-ID: <41c00945@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1103104325 217.73.240.22 (15 Dec 2004 01:52:05 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news2.euro.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail