Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tables from two different Database - SQL PT
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Tables from two different Database - SQL PT
Divers
Thread ID:
01028877
Message ID:
01028877
Vues:
58
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform