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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple DSN query

Status
Not open for further replies.

CFtaxtron

Programmer
May 26, 2001
19
CA
Is it possible to do a cfquery with multiple DSN's? Basically I want to do a left join on two tables on different servers and then insert the results into a new table. Anyway to do this?

Thanks in advance.

Tim
develop@embanet.com
 
Tim-

AFAIK it is:

<cfquery name=&quot;getBooks&quot; datasource=&quot;publishers&quot;>
select pub.dbo.publisherInfo.name, books.dbo.titles.title
from pub.dbo.publisherInfo, books.dbo.titles
</cfquery>

You do the name of the datasource first, then &quot;dbo&quot;, then the table name, then the column name. You'll want to spell that all out in the &quot;from&quot; clause as well.

HTH,

geoff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top