Eh, sorry I didn't catch that you are pulling in from a completely different database. I think you can still directly in MySQL, like
INSERT INTO tablename (x,y,z) SELECT x,y,z FROM databasename.othertable *if* both databases are on the same MySQL server. But I'm not sure how it works with a ColdFusion datasource, I think the user you are connect the DSN as would need permission to both databases and it should work. -Ryan Ryan Stille wrote: > This is how you'd do it with MySQL: > > INSERT INTO tablename (x,y,z) SELECT x,y,z FROM othertable > > If you are using MSSQL, I'm sure its something similar. > > -Ryan > > Eric Roberts wrote: > >> >> >> I have been trying to come up with a more streamlined way to update the >> contents of a table with data that is coming from a different database. Is >> there a way to use in the values clause a reverence to a record from a cf >> query instead of actually typing out all of the variables? Something along >> the lines of: >> >> >> >> Insert into table(x,y,z) >> >> Values(#queryname[currentrow]#) >> >> >> >> Or is there a way to use cfinsert or some other process where I could >> essentially pass the query object so that I can insert the data without >> having to loop and do each insert individually? >> >> >> >> Thanks! >> >> >> >> Eric >> >> >> >> >> >> >> >> >> >> >> >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313962 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4