<?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: SQL Server 2008 &#8211; Get the next Identity Value	</title>
	<atom:link href="https://varindersandhu.in/2012/06/01/sql-server-2008-get-the-next-identity-value/feed/" rel="self" type="application/rss+xml" />
	<link>https://varindersandhu.in/2012/06/01/sql-server-2008-get-the-next-identity-value/</link>
	<description>Keep it Simple and Smart</description>
	<lastBuildDate>Tue, 05 Nov 2013 15:59:00 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>
		By: Varinder Sandhu		</title>
		<link>https://varindersandhu.in/2012/06/01/sql-server-2008-get-the-next-identity-value/#comment-186</link>

		<dc:creator><![CDATA[Varinder Sandhu]]></dc:creator>
		<pubDate>Tue, 05 Nov 2013 15:59:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.varindersandhu.in/?p=2400#comment-186</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://varindersandhu.in/2012/06/01/sql-server-2008-get-the-next-identity-value/#comment-185&quot;&gt;Wilf&lt;/a&gt;.

Hi Wilf,

Let me clear, the purpose of this post to give the brief intro about IDENT_CURRENT and IDENT_INCR functions with example. I have not mentioned anywhere to use these functions ( IDENT_CURRENT and IDENT_INCR) for inserting the new identity value. 

You can refer my other post to insert the value to identity column :  http://varindersandhu.in/2011/02/01/add-the-value-into-an-identity-column-in-sql-server/]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://varindersandhu.in/2012/06/01/sql-server-2008-get-the-next-identity-value/#comment-185">Wilf</a>.</p>
<p>Hi Wilf,</p>
<p>Let me clear, the purpose of this post to give the brief intro about IDENT_CURRENT and IDENT_INCR functions with example. I have not mentioned anywhere to use these functions ( IDENT_CURRENT and IDENT_INCR) for inserting the new identity value. </p>
<p>You can refer my other post to insert the value to identity column :  <a href="http://varindersandhu.in/2011/02/01/add-the-value-into-an-identity-column-in-sql-server/" rel="ugc">http://varindersandhu.in/2011/02/01/add-the-value-into-an-identity-column-in-sql-server/</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Wilf		</title>
		<link>https://varindersandhu.in/2012/06/01/sql-server-2008-get-the-next-identity-value/#comment-185</link>

		<dc:creator><![CDATA[Wilf]]></dc:creator>
		<pubDate>Sat, 02 Nov 2013 11:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.varindersandhu.in/?p=2400#comment-185</guid>

					<description><![CDATA[That is not a save way. If you get the value and you don&#039;t use it immediately after getting it, another user of the same database may have used it already before you ! The only way to RESERVE the value seems to be an INSERT, getting the Current identity, then DELETE the new record; the id will then be &quot;reserved&quot;. Then use identity_insert on to insert your new record using  the given ID.]]></description>
			<content:encoded><![CDATA[<p>That is not a save way. If you get the value and you don&#8217;t use it immediately after getting it, another user of the same database may have used it already before you ! The only way to RESERVE the value seems to be an INSERT, getting the Current identity, then DELETE the new record; the id will then be &#8220;reserved&#8221;. Then use identity_insert on to insert your new record using  the given ID.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Page Caching using Disk: Enhanced 
Database Caching using Disk

Served from: varindersandhu.in @ 2025-10-17 08:19:04 by W3 Total Cache
-->