<?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: SQL SERVER &#8211; Discussion &#8211; Effect of Missing Identity on System &#8211; Real World Scenario</title>
	<atom:link href="http://blog.sqlauthority.com/2009/08/11/sql-server-discussion-effect-of-missing-identity-on-system-real-world-scenario/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2009/08/11/sql-server-discussion-effect-of-missing-identity-on-system-real-world-scenario/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Fri, 17 May 2013 15:26:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: SQL SERVER &#8211; Understanding Identity Beyond its Every Increasing Nature &#8211; Quiz &#8211; Puzzle &#8211; 3 of 31 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2009/08/11/sql-server-discussion-effect-of-missing-identity-on-system-real-world-scenario/#comment-230913</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Understanding Identity Beyond its Every Increasing Nature &#8211; Quiz &#8211; Puzzle &#8211; 3 of 31 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Wed, 04 Jan 2012 01:32:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6524#comment-230913</guid>
		<description><![CDATA[[...] of Record Reseed Identity of Table – Table Missing Identity Values – Gap in Identity Column Discussion – Effect of Missing Identity on System – Real World Scenario Negative Identity Seed Value and Negative Increment Interval Enable Identity Insert – Import [...]]]></description>
		<content:encoded><![CDATA[<p>[...] of Record Reseed Identity of Table – Table Missing Identity Values – Gap in Identity Column Discussion – Effect of Missing Identity on System – Real World Scenario Negative Identity Seed Value and Negative Increment Interval Enable Identity Insert – Import [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob Sebastian</title>
		<link>http://blog.sqlauthority.com/2009/08/11/sql-server-discussion-effect-of-missing-identity-on-system-real-world-scenario/#comment-54941</link>
		<dc:creator><![CDATA[Jacob Sebastian]]></dc:creator>
		<pubDate>Tue, 18 Aug 2009 02:28:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6524#comment-54941</guid>
		<description><![CDATA[Most applications will obtain a valid key from the table (either by a query or calling SCOPE_IDENTITY() after a new insert) before performing an insert operation to a referenced table. This makes sure that only valid references are inserted to the referenced table.

the question being discussed here is the implications of having non-sequential IDENTITY values. What does it matter if the customer table has identity values &#039;1, 2, 3&#039; and &#039;5&#039;.  (missing 4). In which real-life scenario some one will assume that customer &#039;4&#039; exists and try to perform an operation?]]></description>
		<content:encoded><![CDATA[<p>Most applications will obtain a valid key from the table (either by a query or calling SCOPE_IDENTITY() after a new insert) before performing an insert operation to a referenced table. This makes sure that only valid references are inserted to the referenced table.</p>
<p>the question being discussed here is the implications of having non-sequential IDENTITY values. What does it matter if the customer table has identity values &#8217;1, 2, 3&#8242; and &#8217;5&#8242;.  (missing 4). In which real-life scenario some one will assume that customer &#8217;4&#8242; exists and try to perform an operation?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay</title>
		<link>http://blog.sqlauthority.com/2009/08/11/sql-server-discussion-effect-of-missing-identity-on-system-real-world-scenario/#comment-54927</link>
		<dc:creator><![CDATA[Jay]]></dc:creator>
		<pubDate>Mon, 17 Aug 2009 17:41:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6524#comment-54927</guid>
		<description><![CDATA[Hi all,We rececntly encountered the problem in one of the application. 
We have a table with identity column. Its referenced by a foreignkey constraint from another table.
Table1(Id,event,time) ID is identity.
Table2(Id,table1_ID,message). Id is identity. talbe1_ID is the foreignkey that references Id from table1.
Our application was getting error messages(below) when they were trying to insert a particular value in table2 because the value was missing in table1.
Error 547, Level 16, State 0, Procedure storedprocedure, Line x, Message: The INSERT statement conflicted with the FOREIGN KEY constraint &quot;FK_table1_ID&quot;. The conflict occurred in database &quot;xxx&quot;, table &quot;dbo.table1&quot;, column &#039;Id&#039;..

Later we found out some  identity values were missing in the primary tables due to some transactions that were rolled back.
Thanks
Jay]]></description>
		<content:encoded><![CDATA[<p>Hi all,We rececntly encountered the problem in one of the application.<br />
We have a table with identity column. Its referenced by a foreignkey constraint from another table.<br />
Table1(Id,event,time) ID is identity.<br />
Table2(Id,table1_ID,message). Id is identity. talbe1_ID is the foreignkey that references Id from table1.<br />
Our application was getting error messages(below) when they were trying to insert a particular value in table2 because the value was missing in table1.<br />
Error 547, Level 16, State 0, Procedure storedprocedure, Line x, Message: The INSERT statement conflicted with the FOREIGN KEY constraint &#8220;FK_table1_ID&#8221;. The conflict occurred in database &#8220;xxx&#8221;, table &#8220;dbo.table1&#8243;, column &#8216;Id&#8217;..</p>
<p>Later we found out some  identity values were missing in the primary tables due to some transactions that were rolled back.<br />
Thanks<br />
Jay</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob Sebastian</title>
		<link>http://blog.sqlauthority.com/2009/08/11/sql-server-discussion-effect-of-missing-identity-on-system-real-world-scenario/#comment-54822</link>
		<dc:creator><![CDATA[Jacob Sebastian]]></dc:creator>
		<pubDate>Thu, 13 Aug 2009 13:46:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6524#comment-54822</guid>
		<description><![CDATA[I agree with Ron. Any data migration project should maintain the same Primary Key values. In a serious application there may be hundreds of tables where an ID is linked and if you re-sequence it, the whole data will be a mess.]]></description>
		<content:encoded><![CDATA[<p>I agree with Ron. Any data migration project should maintain the same Primary Key values. In a serious application there may be hundreds of tables where an ID is linked and if you re-sequence it, the whole data will be a mess.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ron</title>
		<link>http://blog.sqlauthority.com/2009/08/11/sql-server-discussion-effect-of-missing-identity-on-system-real-world-scenario/#comment-54728</link>
		<dc:creator><![CDATA[Ron]]></dc:creator>
		<pubDate>Tue, 11 Aug 2009 10:28:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6524#comment-54728</guid>
		<description><![CDATA[Gangadhar,

When migrating data with identity values use SET IDENTITY_INSERT IdentityTable ON.]]></description>
		<content:encoded><![CDATA[<p>Gangadhar,</p>
<p>When migrating data with identity values use SET IDENTITY_INSERT IdentityTable ON.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gangadhar Naidu</title>
		<link>http://blog.sqlauthority.com/2009/08/11/sql-server-discussion-effect-of-missing-identity-on-system-real-world-scenario/#comment-54725</link>
		<dc:creator><![CDATA[Gangadhar Naidu]]></dc:creator>
		<pubDate>Tue, 11 Aug 2009 08:39:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6524#comment-54725</guid>
		<description><![CDATA[Yes I know a real-world scenario where a Missing Identity value in any table can create problems.

At the time of data migration from one server to another server.

see the example:
server1:
table1(ID,Name) where ID is identity
table2(ID,MultipleAddress) where ID is foreignkey from table1.

example Data:
table1:
1, Gangadhar
3, Imran
4, pinaldave

table2:
1, Address1
1, Address2
3, Address1
3, Address2
3, Address3
4, Address1

Now i started migration from server1 to server2
migrated: server1.table1 to server2.table1
The data migrated like below:
1, Gangadhar
2, Imran
3, pinaldave

migrated: server1.table2 to server2.table2
table2:
1, Address1
1, Address2
3, Address1
3, Address2
3, Address3
4, Address1

Now how do you get address for relevent ID.]]></description>
		<content:encoded><![CDATA[<p>Yes I know a real-world scenario where a Missing Identity value in any table can create problems.</p>
<p>At the time of data migration from one server to another server.</p>
<p>see the example:<br />
server1:<br />
table1(ID,Name) where ID is identity<br />
table2(ID,MultipleAddress) where ID is foreignkey from table1.</p>
<p>example Data:<br />
table1:<br />
1, Gangadhar<br />
3, Imran<br />
4, pinaldave</p>
<p>table2:<br />
1, Address1<br />
1, Address2<br />
3, Address1<br />
3, Address2<br />
3, Address3<br />
4, Address1</p>
<p>Now i started migration from server1 to server2<br />
migrated: server1.table1 to server2.table1<br />
The data migrated like below:<br />
1, Gangadhar<br />
2, Imran<br />
3, pinaldave</p>
<p>migrated: server1.table2 to server2.table2<br />
table2:<br />
1, Address1<br />
1, Address2<br />
3, Address1<br />
3, Address2<br />
3, Address3<br />
4, Address1</p>
<p>Now how do you get address for relevent ID.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kashif Iqbal</title>
		<link>http://blog.sqlauthority.com/2009/08/11/sql-server-discussion-effect-of-missing-identity-on-system-real-world-scenario/#comment-54714</link>
		<dc:creator><![CDATA[Kashif Iqbal]]></dc:creator>
		<pubDate>Tue, 11 Aug 2009 04:40:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6524#comment-54714</guid>
		<description><![CDATA[Nice information. I am a student of Software Engineering. I am very much interested in search papers, but i have no one to guid me. will you help me that how can i start?]]></description>
		<content:encoded><![CDATA[<p>Nice information. I am a student of Software Engineering. I am very much interested in search papers, but i have no one to guid me. will you help me that how can i start?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
