December 18, 2012 at 8:51 pm
Comments posted to this topic are about the item What will the max id be?
December 18, 2012 at 8:52 pm
December 18, 2012 at 9:24 pm
EZPZ
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
December 18, 2012 at 10:17 pm
Thanks for reminding the basics 🙂
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
December 18, 2012 at 11:00 pm
easy one for Wednesday 🙂
revision of basics........
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
December 18, 2012 at 11:20 pm
easy ...truncate resets the identity;
It's a coincidence , I was just discussing it with my colleague about inserting a row in between identity inserted column. And yes, Truncate popped up as an option 🙂
~ demonfox
___________________________________________________________________
Wondering what I would do next , when I am done with this one :ermm:
December 18, 2012 at 11:56 pm
Easy one, thanks.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
December 19, 2012 at 12:11 am
Another good one. 19% wrong right now :blink:
Paul White
SQLPerformance.com
SQLkiwi blog
@SQL_Kiwi
December 19, 2012 at 2:34 am
I'm also wrong, but i learned something. Could someone please explain, why is the identity resetted after a truncate? For me is a possible source of inconsitency.
December 19, 2012 at 2:46 am
Nice question.
Thanks
Igor Micev,My blog: www.igormicev.com
December 19, 2012 at 3:26 am
palotaiarpad (12/19/2012)
I'm also wrong, but i learned something. Could someone please explain, why is the identity resetted after a truncate? For me is a possible source of inconsitency.
TRUNCATE command apart from removing data from the table, resets the seed value of the identity column defined in the table.
Another command to re-seed identity is DBCC CHECKIDENT. It can be used something like below:
DBCC CHECKIDENT ('test_trun', RESEED, 0)
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
December 19, 2012 at 3:28 am
palotaiarpad (12/19/2012)
For me is a possible source of inconsitency.
Not sure why you said this as "inconsistency"...it's just the property of TRUNCATE command!
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
December 19, 2012 at 3:56 am
This was removed by the editor as SPAM
December 19, 2012 at 4:03 am
bcoz it is its behavior that every time we execute TRUNCATE command it will reset the identity value..
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
December 19, 2012 at 4:34 am
Thanks for a nice easy Wednesday question.
Viewing 15 posts - 1 through 15 (of 35 total)
You must be logged in to reply to this topic. Login to reply