Quantcast
Channel: TechPint - Sql Server
Viewing all articles
Browse latest Browse all 10

How to ReSeed Identity value in SQL Server?

$
0
0

I want to reset an identity coloumn in SqlServer. I am using

Delete from "TableName".

It is deleteing all data in the table but it is not resetting my Identity value.

I have tried Truncate Table , But I will not be able to restore my data back in case of truncate.

I need a method to delete all rows from the table and simultaneosly reset the identity value.


Viewing all articles
Browse latest Browse all 10

Trending Articles