Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tables from two different Database - SQL PT
Message
De
05/07/2005 03:43:00
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01028877
Message ID:
01028889
Vues:
14
>Hi All,
>
>I have two datbases say A and B. There is a connection handle for
>Database A as AHandle and connection handle for Database B is BHandle.
>
>
>I need to get data from both the datbase using the select command
>below.
>
>SELECT * from A!Items INNER JOIN B!Price ON Items.Item_Key =
>Price.Iem_key
>
>If I write a SQL execute statement like SQLEXEC('AHandle',
>sqlcommand, 'crsOut'). I get an error indicating table Price is not
>present in Database A.
>
>How will I accomplish the task either by SQLEXEC or using ODBC? Any
>help on this matter is appreciated.
>
>Thanks,
>Smitha.

Instead of B!Price use path&filename of second table.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform