If you use MS SQL you can use Linked Servers to query across different
servers. it would be something like:

Select *
>From myLink.database.owner.table


Adam H

On 5/9/05, Ewok <[EMAIL PROTECTED]> wrote:
> Yes, one 'true datasource' in a cfquery but you can use 2 different record
> sets in a QoQ and combine them just as if they were 2 tables in one
> database.
> 
> What's Cross Database Query? 'Sounds' promising.
> 
> I've had to use the method in my previous example quite a bit in my latest
> nightmare... oh I mean 'project'. I thought it was my only (worthwhile)
> option
> 
> -----Original Message-----
> From: Robertson-Ravo, Neil (RX)
> [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 09, 2005 8:05 AM
> To: CF-Talk
> Subject: RE: More than one datasource in <cfquery>
> 
> 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:206048
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