<?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: Getting the auto generated id after insert in MSSQL</title>
	<atom:link href="http://blog.stannard.net.au/2007/01/18/getting-the-auto-generated-id-after-insert-in-mssql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.stannard.net.au/2007/01/18/getting-the-auto-generated-id-after-insert-in-mssql/</link>
	<description></description>
	<lastBuildDate>Sun, 08 Jan 2012 15:53:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Eric Cobb</title>
		<link>http://blog.stannard.net.au/2007/01/18/getting-the-auto-generated-id-after-insert-in-mssql/comment-page-1/#comment-190</link>
		<dc:creator>Eric Cobb</dc:creator>
		<pubDate>Mon, 29 Oct 2007 07:23:47 +0000</pubDate>
		<guid isPermaLink="false">#comment-190</guid>
		<description>If you&#039;re using CF8, this is built into &lt;CFQUERY&gt; now:  

http://www.forta.com/blog/index.cfm/2007/7/6/ColdFusion-8-Can-Return-Identity-Values</description>
		<content:encoded><![CDATA[<p>If you&#8217;re using CF8, this is built into &lt;CFQUERY&gt; now:  </p>
<p><a href="http://www.forta.com/blog/index.cfm/2007/7/6/ColdFusion-8-Can-Return-Identity-Values" rel="nofollow">http://www.forta.com/blog/index.cfm/2007/7/6/ColdFusion-8-Can-Return-Identity-Values</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevan Stannard</title>
		<link>http://blog.stannard.net.au/2007/01/18/getting-the-auto-generated-id-after-insert-in-mssql/comment-page-1/#comment-189</link>
		<dc:creator>Kevan Stannard</dc:creator>
		<pubDate>Fri, 13 Jul 2007 00:33:52 +0000</pubDate>
		<guid isPermaLink="false">#comment-189</guid>
		<description>Hi Tony, thanks for the update!</description>
		<content:encoded><![CDATA[<p>Hi Tony, thanks for the update!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony Brandner</title>
		<link>http://blog.stannard.net.au/2007/01/18/getting-the-auto-generated-id-after-insert-in-mssql/comment-page-1/#comment-188</link>
		<dc:creator>Tony Brandner</dc:creator>
		<pubDate>Tue, 10 Jul 2007 08:24:59 +0000</pubDate>
		<guid isPermaLink="false">#comment-188</guid>
		<description>Hey, also note the new SQL Server 2005 feature - the OUTPUT clause:

&lt;cfquery name=&quot;personInsertQuery&quot; datasource=&quot;mydsn&quot;&gt;
 INSERT INTO Person(firstname,lastname)
 OUTPUT
  INSERTED.personID, INSERTED.firstname, INSERTED.lastname
 VALUES (
  &lt;cfqueryparam cfsqltype=&quot;CF_SQL_VARCHAR&quot; value=&quot;#firstname#&quot;&gt;,
  &lt;cfqueryparam cfsqltype=&quot;CF_SQL_VARCHAR&quot; value=&quot;#lastname#&quot;&gt;
 )
&lt;/cfquery&gt;

Tony Brandner</description>
		<content:encoded><![CDATA[<p>Hey, also note the new SQL Server 2005 feature &#8211; the OUTPUT clause:</p>
<p>&lt;cfquery name=&quot;personInsertQuery&quot; datasource=&quot;mydsn&quot;&gt;<br />
 INSERT INTO Person(firstname,lastname)<br />
 OUTPUT<br />
  INSERTED.personID, INSERTED.firstname, INSERTED.lastname<br />
 VALUES (<br />
  &lt;cfqueryparam cfsqltype=&quot;CF_SQL_VARCHAR&quot; value=&quot;#firstname#&quot;&gt;,<br />
  &lt;cfqueryparam cfsqltype=&quot;CF_SQL_VARCHAR&quot; value=&quot;#lastname#&quot;&gt;<br />
 )<br />
&lt;/cfquery&gt;</p>
<p>Tony Brandner</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevan Stannard</title>
		<link>http://blog.stannard.net.au/2007/01/18/getting-the-auto-generated-id-after-insert-in-mssql/comment-page-1/#comment-186</link>
		<dc:creator>Kevan Stannard</dc:creator>
		<pubDate>Thu, 14 Jun 2007 01:55:30 +0000</pubDate>
		<guid isPermaLink="false">#comment-186</guid>
		<description>Hi Joern

I am not sure, but it is unlikely.</description>
		<content:encoded><![CDATA[<p>Hi Joern</p>
<p>I am not sure, but it is unlikely.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joern</title>
		<link>http://blog.stannard.net.au/2007/01/18/getting-the-auto-generated-id-after-insert-in-mssql/comment-page-1/#comment-185</link>
		<dc:creator>Joern</dc:creator>
		<pubDate>Wed, 13 Jun 2007 07:35:38 +0000</pubDate>
		<guid isPermaLink="false">#comment-185</guid>
		<description>Does this work with mysql, too?</description>
		<content:encoded><![CDATA[<p>Does this work with mysql, too?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Allen</title>
		<link>http://blog.stannard.net.au/2007/01/18/getting-the-auto-generated-id-after-insert-in-mssql/comment-page-1/#comment-187</link>
		<dc:creator>James Allen</dc:creator>
		<pubDate>Thu, 15 Mar 2007 08:24:33 +0000</pubDate>
		<guid isPermaLink="false">#comment-187</guid>
		<description>That is fantastic!! How many years have I (and I&#039;m sure others) been doing the old INSERT, then immediately SELECT Max(ID) AS NewID FROM xxxx routine to get the newly inserted ID.. I always thought CFQUERY should be able to return the new ID and hear it is. Brilliant. Thanks for posting this.</description>
		<content:encoded><![CDATA[<p>That is fantastic!! How many years have I (and I&#8217;m sure others) been doing the old INSERT, then immediately SELECT Max(ID) AS NewID FROM xxxx routine to get the newly inserted ID.. I always thought CFQUERY should be able to return the new ID and hear it is. Brilliant. Thanks for posting this.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

