Focal Point
[SOLVED] connect to multiple databased via sql passthru

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5187073616

February 07, 2012, 10:02 AM
ReddyP
[SOLVED] connect to multiple databased via sql passthru
I ave two tables.
Table B from database A
table B from database B
Both databases are on the same SQL server.
I need to join these two tables.
I can use focus code and do the join.
But, I am trying to avoid focus code and use sql passthru.
Is there a way to connect to two databases via SQL passthru?
something like
ENGINE SQLMSS SET DEFAULT_CONNECTION database connection A, database connection B.
Is there a way to do this?
Thank you.

This message has been edited. Last edited by: ReddyP,


7.7.01,windows2008 R2
February 07, 2012, 12:23 PM
dhagen
The adapters connect to SQL Server instances with potentially a default database. You have access to all the databases under the same instance. Prefix the table names with the database and user space name (or whatever the **** they are called).


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
February 21, 2012, 08:37 AM
ReddyP
Yes, it worked. Thank you.


7.7.01,windows2008 R2