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?
<cfquery name="getBooks" datasource="publishers">
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 "dbo", then the table name, then the column name. You'll want to spell that all out in the "from" clause as well.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.