i'm trying to delete all the rows in a table in sql server enterprise.
i have a primary key in one of the column with identity=yes
identity seed=1 identtity increment =1
if i have 10 records after i delete them when i enter new records its starts from 11? how do i restart the seed back to 1 when deleting all rows in a table
i was trying to use
"truncate tablename ;"
in sql query but tha's not working?
i have a primary key in one of the column with identity=yes
identity seed=1 identtity increment =1
if i have 10 records after i delete them when i enter new records its starts from 11? how do i restart the seed back to 1 when deleting all rows in a table
i was trying to use
"truncate tablename ;"
in sql query but tha's not working?