mysql - Microsoft SQL resetting ID auto increment -


I am using Microsoft SQL Server 2012 and I am trying to reset my table primary key ID In its sequential way Some know that it will be better to leave, but I want to find a way to do it.

Use in SQL Server 2008 There is a command to do, and should be similar to 2012:

  DBCC Investigator ("YourTableNameHere", RESEED, 1);   

And if you want it in MySQL or T-SQL syntax, then it is not very clear.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

c++ - Qt::make_shared for creating QSharedPtr as std::make_shared for creating std::shared_ptr -