<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Dumping A Select/Insert Query</title>
	<atom:link href="http://thecrumb.com/2009/11/13/dumping-a-selectinsert-query/feed/" rel="self" type="application/rss+xml" />
	<link>http://thecrumb.com/2009/11/13/dumping-a-selectinsert-query/</link>
	<description>ramblings of a coldfusion developer</description>
	<lastBuildDate>Tue, 31 Aug 2010 18:58:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: richard</title>
		<link>http://thecrumb.com/2009/11/13/dumping-a-selectinsert-query/#comment-1235</link>
		<dc:creator>richard</dc:creator>
		<pubDate>Sat, 14 Nov 2009 06:54:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecrumb.com/?p=972#comment-1235</guid>
		<description>you can also try

INSERT INTO myTable (...)
OUTPUT INSERTED.*
SELECT (...)
FROM theOtherTable
WHERE 1=1


output command also works for updated, deleted</description>
		<content:encoded><![CDATA[<p>you can also try</p>
<p>INSERT INTO myTable (&#8230;)<br />
OUTPUT INSERTED.*<br />
SELECT (&#8230;)<br />
FROM theOtherTable<br />
WHERE 1=1</p>
<p>output command also works for updated, deleted</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Sandefer</title>
		<link>http://thecrumb.com/2009/11/13/dumping-a-selectinsert-query/#comment-1234</link>
		<dc:creator>Andy Sandefer</dc:creator>
		<pubDate>Fri, 13 Nov 2009 22:20:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecrumb.com/?p=972#comment-1234</guid>
		<description>@Jim
One other thing that you may find very useful to know is that the result will also hold the primary key when you&#039;re performing an INSERT statement.  This is great if you need to have a cfc return the primary key and your table is using IDENTITY (SQL Server) or Auto-Increment (MySQL).</description>
		<content:encoded><![CDATA[<p>@Jim<br />
One other thing that you may find very useful to know is that the result will also hold the primary key when you&#8217;re performing an INSERT statement.  This is great if you need to have a cfc return the primary key and your table is using IDENTITY (SQL Server) or Auto-Increment (MySQL).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
