﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by dun  / Identity Crisis / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Fri, 24 May 2013 14:53:19 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Identity Crisis</title><link>http://www.sqlservercentral.com/Forums/Topic810487-1508-1.aspx</link><description>Thanx Dun:-)</description><pubDate>Thu, 05 Nov 2009 01:11:19 GMT</pubDate><dc:creator>rizwan.inam</dc:creator></item><item><title>RE: Identity Crisis</title><link>http://www.sqlservercentral.com/Forums/Topic810487-1508-1.aspx</link><description>A good explanation on TRUNCATE vs DELETE can be found at [url]http://www.mssqltips.com/tip.asp?tip=1080[/url].</description><pubDate>Wed, 04 Nov 2009 06:28:42 GMT</pubDate><dc:creator>dun</dc:creator></item><item><title>RE: Identity Crisis</title><link>http://www.sqlservercentral.com/Forums/Topic810487-1508-1.aspx</link><description>What is the Difference between Truncate Table and Delete Table</description><pubDate>Wed, 04 Nov 2009 02:37:02 GMT</pubDate><dc:creator>rizwan.inam</dc:creator></item><item><title>RE: Identity Crisis</title><link>http://www.sqlservercentral.com/Forums/Topic810487-1508-1.aspx</link><description>[quote][b]VM-723206 (10/30/2009)[/b][hr]Damn, I knew how this would work, and noticed the increment 3 too. My mind kinda' swapped the DELETE and TRUNCATE. Chose 4.[/quote]Welcome to the party. Not as easy as 1 2 3 ...</description><pubDate>Fri, 30 Oct 2009 07:59:54 GMT</pubDate><dc:creator>BudaCli</dc:creator></item><item><title>RE: Identity Crisis</title><link>http://www.sqlservercentral.com/Forums/Topic810487-1508-1.aspx</link><description>Damn, I knew how this would work, and noticed the increment 3 too. My mind kinda' swapped the DELETE and TRUNCATE. Chose 4.</description><pubDate>Fri, 30 Oct 2009 05:54:35 GMT</pubDate><dc:creator>VM-723206</dc:creator></item><item><title>RE: Identity Crisis</title><link>http://www.sqlservercentral.com/Forums/Topic810487-1508-1.aspx</link><description>[quote][b]SanjayAttray (10/29/2009)[/b][hr]Damn.  I missed the increment/seed part.  Generally we used (1,1) for identity column and its (1,3) in the question.[/quote]That hit me, too...:angry:</description><pubDate>Thu, 29 Oct 2009 12:09:31 GMT</pubDate><dc:creator>ck9663</dc:creator></item><item><title>RE: Identity Crisis</title><link>http://www.sqlservercentral.com/Forums/Topic810487-1508-1.aspx</link><description>I have added the truncate item to the explanation.</description><pubDate>Thu, 29 Oct 2009 10:26:03 GMT</pubDate><dc:creator>Steve Jones - SSC Editor</dc:creator></item><item><title>RE: Identity Crisis</title><link>http://www.sqlservercentral.com/Forums/Topic810487-1508-1.aspx</link><description>Damn.  I missed the increment/seed part.  Generally we used (1,1) for identity column and its (1,3) in the question.</description><pubDate>Thu, 29 Oct 2009 09:27:49 GMT</pubDate><dc:creator>SanjayAttray</dc:creator></item><item><title>RE: Identity Crisis</title><link>http://www.sqlservercentral.com/Forums/Topic810487-1508-1.aspx</link><description>[quote][b]Mark Harr (10/29/2009)[/b][hr]Shoot!  I had the identity increment right, but forgot about truncate table resetting the seed value.[/quote]There was a recent question which brought that point out (maybe Mark missed it :-)).  I appreciate this question's showing an aspect of IDENTITY() with which I wasn't familiar.</description><pubDate>Thu, 29 Oct 2009 08:12:53 GMT</pubDate><dc:creator>Michael Poppers</dc:creator></item><item><title>RE: Identity Crisis</title><link>http://www.sqlservercentral.com/Forums/Topic810487-1508-1.aspx</link><description>[quote][b]kramaswamy (10/29/2009)[/b][hr]bah. automatically assumed it was seeded with increments of 1. i've never used a non-1 increment personally :/[/quote]Ditto :-).</description><pubDate>Thu, 29 Oct 2009 08:10:28 GMT</pubDate><dc:creator>Michael Poppers</dc:creator></item><item><title>RE: Identity Crisis</title><link>http://www.sqlservercentral.com/Forums/Topic810487-1508-1.aspx</link><description>Shoot!  I had the identity increment right, but forgot about truncate table resetting the seed value.</description><pubDate>Thu, 29 Oct 2009 06:39:22 GMT</pubDate><dc:creator>Mark Harr</dc:creator></item><item><title>RE: Identity Crisis</title><link>http://www.sqlservercentral.com/Forums/Topic810487-1508-1.aspx</link><description>bah. automatically assumed it was seeded with increments of 1. i've never used a non-1 increment personally :/</description><pubDate>Thu, 29 Oct 2009 06:13:53 GMT</pubDate><dc:creator>kramaswamy</dc:creator></item><item><title>RE: Identity Crisis</title><link>http://www.sqlservercentral.com/Forums/Topic810487-1508-1.aspx</link><description>In your explanation 'According to BOL, "If the table contains an identity column, the counter for that column is reset to the seed value defined for the column. If no seed was defined, the default value 1 is used."' you omit to say that this is for TRUNCATE.</description><pubDate>Thu, 29 Oct 2009 03:56:00 GMT</pubDate><dc:creator>daniel.surridge</dc:creator></item><item><title>RE: Identity Crisis</title><link>http://www.sqlservercentral.com/Forums/Topic810487-1508-1.aspx</link><description>[quote][b]San-847017 (10/28/2009)[/b][hr]I always increment identity column with default value.[/quote]I used a seed = 1 and an increment of 5 and in another table seed = 2 and an increment of 5. So table A always has last digit = 1 or 6 and table B 2 and 7.When I reference in table C the two table above, I know thanks to the last digit which table is linked.</description><pubDate>Thu, 29 Oct 2009 02:49:49 GMT</pubDate><dc:creator>Carlo Romagnano</dc:creator></item><item><title>RE: Identity Crisis</title><link>http://www.sqlservercentral.com/Forums/Topic810487-1508-1.aspx</link><description>Nice one, realised my mistake after running the qry on management studio.</description><pubDate>Thu, 29 Oct 2009 00:08:01 GMT</pubDate><dc:creator>BudaCli</dc:creator></item><item><title>RE: Identity Crisis</title><link>http://www.sqlservercentral.com/Forums/Topic810487-1508-1.aspx</link><description>Gud question. I had forgotten abt incremental value as I never use it. I always increment identity column with default value.</description><pubDate>Wed, 28 Oct 2009 22:45:22 GMT</pubDate><dc:creator>Joy Smith San</dc:creator></item><item><title>Identity Crisis</title><link>http://www.sqlservercentral.com/Forums/Topic810487-1508-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/questions/T-SQL/67493/"&gt;Identity Crisis&lt;/A&gt;[/B]</description><pubDate>Wed, 28 Oct 2009 21:31:04 GMT</pubDate><dc:creator>dun</dc:creator></item></channel></rss>