Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use cfquery within two datasource

Status
Not open for further replies.

Benbunny

Programmer
Mar 19, 2001
18
0
0
HK
Dear all,

Can anyone help me to solve the problem, as I want to select data from two different datasource by using cfquery.

Thanks so much.
 
Hey Benbunny,

The only way to query across two different datasources is with CF 5 and the new "query of queries" feature. This allows you to query two different datasources and execute a third query against the previous two which results in a single query containing data from two different datasources.

If this isn't an option, the only other solution I can think of is to query each datasource independently and then build a query manually with the querynew(), querySetCell(), etc.. functions. Depending on how you need the data sorted and joined, this approach can be very difficult.

Hope this helps,
GJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top