.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

Sql Server Identity reseed

Posted By: Deco     Posted Date: September 13, 2010    Points:2   Category :Sql Server
How to reseed the identity value?

Responses
Author: Faizal             
Posted Date: September 14, 2010     Points: 5   

Hi,

To reset the identity column seed value you can use below code

DBCC CHECKIDENT ('<tablename>', reseed, 1)

Author: sriram             
Posted Date: October 27, 2011     Points: 20   

SET IDENTIY_INSERT <TABLENAME> <ON> <OFF>


Hope This will help
let me know any Questions

Regards
Sriram.R



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