Welcome Guest, Not a member yet? Register   Sign In
Joining tables in two dbs
#1

[eluser]Eric Brown[/eluser]
I have two databases, one for reporting and one for their account data. PConnect = FALSE

In my query, since I have to connect two both databases and then join on user_id, what's the right format for generating a query? I know I can hardcode the database.tablename in the SQL query, but should I need to move hosts, and the database names change this will make my code a nightmare to update.

Can I insert the db object names in the SQL itself?


Messages In This Thread
Joining tables in two dbs - by El Forum - 05-18-2010, 10:21 PM
Joining tables in two dbs - by El Forum - 05-18-2010, 10:36 PM
Joining tables in two dbs - by El Forum - 05-18-2010, 10:45 PM
Joining tables in two dbs - by El Forum - 05-18-2010, 10:46 PM
Joining tables in two dbs - by El Forum - 05-18-2010, 10:47 PM
Joining tables in two dbs - by El Forum - 05-18-2010, 10:50 PM
Joining tables in two dbs - by El Forum - 05-18-2010, 10:52 PM
Joining tables in two dbs - by El Forum - 05-18-2010, 10:58 PM
Joining tables in two dbs - by El Forum - 05-18-2010, 11:01 PM
Joining tables in two dbs - by El Forum - 05-19-2010, 08:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB