IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
Delphi
Search Delphi Group:

Advanced
-Collapse +Expand Delphi To/From
To/FromCODEGuides
-Collapse +Expand Delphi Store
PRESTWOODSTORE

Prestwood eMagazine

October Edition
Subscribe now! It's Free!
Enter your email:

   ► KBProgrammingDelphi for W...Using Data   Print This     
  From the May 2012 Issue of Prestwood eMag
 
Delphi Using Data:
Heterogeneous Joins in Delphi
 
Posted 22 years ago on 8/21/2002 and updated 3/18/2003
Take Away: Heterogeneous Joins in Delphi: by Mike Benemelis. A heterogeneous join is when you join tables from two different SQL servers (or a server and a local table) within the same query. This short article will show you how to perform such queries using Delphi.

KB100009

The Delphi 1.0 Database Application Developer’s Guide for performing a Heterogeneous join is not quite correct. The following was provided (in part) by Borland Technical Support:

To perform a heterogeneous join do the following.

  1. For each server table, a connection must exist before the query is executed. A TDatabase can be used to establish the connection.
  2. The SQL statement must use real Alias names, as set up in the BDE config file, Not the Database Name properties from a Tdatabase component.
  3. The SQL syntax should be formatted as follows: a double quote, a colon, a real alias name, a colon, the table name, and a double quote. See the example below:
  4. Leave the DatabaseName Property of the TQuery blank.

For Example:

Select A.VENDORNO, B.VENDORNO
From ":DBDEMOS:VENDORS" A, ":IBLOCAL:VENDORS" B
where A.VENDORNO = B.VENDORNO

I performed a query similar to the one above, using tables in an Oracle and MS SQL database. Both databases are on a windows NT 4.0 OS. The performance seemed slow, possibly due to the BDE having to bring the data down locally and to data translations.


Comments

1 Comments.
Share a thought or comment...
First Comment
Comment 1 of 6

Documents of different capacities are present that help knows much. Therefore, just visit an online essay writer, and you will see the several components that are under consideration.

Posted 54 months ago

Comment 2 of 6

Assignment writing help for those who have no idea how to formulate arguments in essays so catch it explainer video service and see how to embed words in assignment. 

Posted 54 months ago

Comment 3 of 6

Assignment writing is a good initiative for those who don‘t have any idea how to take good marks in exam so must take colorado bee supply assistance for beekeeping.

Posted 46 months ago

Comment 4 of 6

I like your concept but now I supposed you have to take home care philadelphia assistance in terms of care and healthy life.

Posted 46 months ago

Comment 5 of 6

Good concept, visit here https://www.apexhomehealthcarellc.com/

Posted 45 months ago

Latest Comment
Comment 6 of 6

Great facts, visit here https://theapolloservice.com

Posted 43 months ago
 
Write a Comment...
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P157A1
Enter key:
KB Post Contributed By Mike Prestwood:

Mike Prestwood is a drummer, an author, and creator of the PrestwoodBoards online community. He is the President & CEO of Prestwood IT Solutions. Prestwood IT provides Coding, Website, and Computer Tech services. Mike has authored 6 computer books and over 1,200 articles. As a drummer, he maintains play-drums.com and has authored 3 drum books. If you have a project you wish to discuss with Mike, you can send him a private message through his PrestwoodBoards home page or call him 9AM to 4PM PST at 916-726-5675 x205.

Visit Profile

 KB Article #100009 Counter
5818
Since 4/2/2008
Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site: 
www.prestwood.com


©1995-2024 Prestwood IT Solutions.   [Security & Privacy]