How do I join two tables that belong to two different databases?
I can build an SQL statement in SQL Server Management Studio that does a join of a table in one database with a table in another database. I have a common "read" username/password for both databases.
How do I do the join in ColdFusion? The <cfquery> tag requires a single datasource. I could do it as two queries and cross comparing, or even possibly some usage of dbtype=query, but these would be horrendously less efficient than a direct join.
I could place the SQL statement in a stored procedure, but that seems like overkill-- especially since the number of fields needed in the "WHERE" clause will change based on logic in the ColdFusion program.
Does anyone know of a way of doing this with <cfquery>?
