Erm, well you can only use one DSN in a single CFQUERY but you should be
able to use a Cross Database Query allowing you to search across two
databases.



-----Original Message-----
From: Ewok [mailto:[EMAIL PROTECTED] 
Sent: 09 May 2005 13:06
To: CF-Talk
Subject: RE: More than one datasource in <cfquery>

You can't with one shot. You'll have to query each then combine them with a
QoQ (assuming you are running CF5.0 or up)

<!--- DATASOURCE ONE --->
<cfquery name="a" datasource="datasource1">
Select * from tbl_in_db1
</cfquery>

<!--- DATASOURCE TWO --->
<cfquery name="b" datasource="datasource2">
Select * from tbl_in_db2
</cfquery>

<!--- QUERY OF QUERY OF BOTH QUERIES/DATASOURCES --->
<cfquery name="c" dbtype="query">
Select a.*, b.*
>From a, b
Where a.something = b.something
</cfquery>


-----Original Message-----
From: simmyana a [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 09, 2005 2:05 AM
To: CF-Talk
Subject: More than one datasource in <cfquery>

Hi,

How to use more than one datasource in <cfquery> tag?

Thanks





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206043
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to