.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> Sql Server >> Post New QuestionBookmark and Share Subscribe to Forum

HOW TO SOLVE RESET IDENTITY COLUMN VALUE

Posted By: parthiban     Posted Date: December 19, 2012    Points:5   Category :Sql Server
I GOT A IDENTITY COLUMN NAMED ID..

WHEN I DELETE A RECORD IN TABLE WITH IDENTITY VALUE 3 AND INSERT NEW RECORD THE IDENTITY COLUMN VALUE SKIPS TO 4 INSTEAD OF 3..

I TRIED
DBCC CHECKIDENT('IINFO1',RESEED,3)

BUT STILL GET IDENTITY COL VALUE AS 4..

Responses
Author: Akhil Raj       [Moderator]      
Posted Date: December 21, 2012     Points: 20   

Change the value to 0 like

DBCC CHECKIDENT('IINFO1',RESEED,0)






Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend