General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Tables from two different Database - SQL PT
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only