Click here to Skip to main content
13,861,486 members
Rate this:
Please Sign up or sign in to vote.
See more:
i want my id back to 0 after deleting all the records

What I have tried:

Newbie here, I'm not really good using about Sql server but can show me step by step?
Updated 11-Jul-18 19:03pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Here is an example to reset the new identity to start from 1

DBCC CHECKIDENT (Transact-SQL) | Microsoft Docs[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web05 | 2.8.190214.1 | Last Updated 12 Jul 2018
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100