I have no experience using sub queries and have found little help else where. I am looking to select records from one table and insert them into another. The tables are identical but they are in different schemas and different servers. I understand why I get the Datasource not found error but how do I get around it? I don't know where to go from here:
<cfset Newdatasource="Access"> <!--- DATA CONNECTIONN ---> <cfset Newtable1="WEBTEST"> <cfset Newdatasource1="ScheduleTest"> <cfquery name="Insert" datasource="Newdatasource1"> INSERT INTO #Newtable1#.SiteLog SELECT * FROM #Newdatasource#.VisitLog </cfquery> Is this sort of query possible? How do you get the two datasources recognised? Any help would be greatly appreciated. Thanks. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/SQL/message.cfm/messageid:2811 Subscription: http://www.houseoffusion.com/groups/SQL/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.6
