Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

How to reset IDENTITY fields

$
0
0

Dear all,

I have a big database structure where I need to reset in different tables the Entity column value number to start from 0.

I usually do this by using a TRUNCATE TABLE but as my tables as many relations between each other I am not allowed to do it.

I do not want to break all my tables FK as it would take  a hell of work for me to recreate them , is there a way to reset the IDENTITY field to restart from 0 by an other way ?

thanks for help

regards

serge


Your knowledge is enhanced by that of others.


Viewing all articles
Browse latest Browse all 23857

Trending Articles