Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tables from two different Database - SQL PT
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Tables from two different Database - SQL PT
Miscellaneous
Thread ID:
01028877
Message ID:
01028877
Views:
57
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.
Next
Reply
Map
View

Click here to load this message in the networking platform