<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Finding Next Identity Value, and a Wild Goose Chase.</title>
	<atom:link href="http://sqlfascination.com/2009/10/09/finding-next-identity-value-and-a-wild-goose-chase/feed/" rel="self" type="application/rss+xml" />
	<link>http://sqlfascination.com/2009/10/09/finding-next-identity-value-and-a-wild-goose-chase/</link>
	<description>Weirdness and oddities within SQL</description>
	<lastBuildDate>Tue, 22 May 2012 20:32:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Martin</title>
		<link>http://sqlfascination.com/2009/10/09/finding-next-identity-value-and-a-wild-goose-chase/#comment-121</link>
		<dc:creator><![CDATA[Martin]]></dc:creator>
		<pubDate>Sun, 15 May 2011 13:14:02 +0000</pubDate>
		<guid isPermaLink="false">http://andrewhogg.wordpress.com/?p=114#comment-121</guid>
		<description><![CDATA[The relevant columns in the system tables are sys.syscolpars and idtval, I have successfully (just for &quot;fun&quot;) changed the identity property of columns using these on a test instance in single user mode.

This doesn&#039;t get updated in real time however. If you were to do 

CHECKPOINT
SELECT * FROM sys.syscolpars WHERE id = OBJECT_ID(&#039;YourTable&#039;)

You should see the idtval value change.]]></description>
		<content:encoded><![CDATA[<p>The relevant columns in the system tables are sys.syscolpars and idtval, I have successfully (just for &#8220;fun&#8221;) changed the identity property of columns using these on a test instance in single user mode.</p>
<p>This doesn&#8217;t get updated in real time however. If you were to do </p>
<p>CHECKPOINT<br />
SELECT * FROM sys.syscolpars WHERE id = OBJECT_ID(&#8216;YourTable&#8217;)</p>
<p>You should see the idtval value change.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthijs</title>
		<link>http://sqlfascination.com/2009/10/09/finding-next-identity-value-and-a-wild-goose-chase/#comment-59</link>
		<dc:creator><![CDATA[Matthijs]]></dc:creator>
		<pubDate>Tue, 27 Jul 2010 21:58:34 +0000</pubDate>
		<guid isPermaLink="false">http://andrewhogg.wordpress.com/?p=114#comment-59</guid>
		<description><![CDATA[I just saw your post on stack overflow, and it was good. Found this blog in the same google. Also good is that you worked on answering the question, instead of questioning why the question was asked - if you catch my drift.

In my own case I was checking up reports from a user on missing records. I could see in the table no gaps in the ID order, so that told me the records had probably not been added and then physically deleted (there&#039;s no ID re-set in this system). But how would I know if the missing records had been added at the &quot;end&quot; of the table or not? I needed to know the next ID, without actually making a record, to know if there was a &quot;gap&quot; at the &quot;end&quot; of the table.]]></description>
		<content:encoded><![CDATA[<p>I just saw your post on stack overflow, and it was good. Found this blog in the same google. Also good is that you worked on answering the question, instead of questioning why the question was asked &#8211; if you catch my drift.</p>
<p>In my own case I was checking up reports from a user on missing records. I could see in the table no gaps in the ID order, so that told me the records had probably not been added and then physically deleted (there&#8217;s no ID re-set in this system). But how would I know if the missing records had been added at the &#8220;end&#8221; of the table or not? I needed to know the next ID, without actually making a record, to know if there was a &#8220;gap&#8221; at the &#8220;end&#8221; of the table.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: faheem</title>
		<link>http://sqlfascination.com/2009/10/09/finding-next-identity-value-and-a-wild-goose-chase/#comment-33</link>
		<dc:creator><![CDATA[faheem]]></dc:creator>
		<pubDate>Wed, 20 Jan 2010 13:13:41 +0000</pubDate>
		<guid isPermaLink="false">http://andrewhogg.wordpress.com/?p=114#comment-33</guid>
		<description><![CDATA[very nice]]></description>
		<content:encoded><![CDATA[<p>very nice</p>
]]></content:encoded>
	</item>
</channel>
</rss>

