Yashpal K. Verma
2005-10-18 05:00:00 UTC
Hi,
I am creating a table with identity column. When I am deleting all the
records from the table, I want to reset the identity column to start from 1
again.
For example, I have a table IDTest with two columns
-> NameID - This is my identity column
-> Name - This is data column.
I inserted 10 records.
I deleted all. If I insert new record now then it will have 11 as NameID
value. I want to reset this to start from 1 again.
I am looking for the similer function as available in MS SQL Server - (DBCC
checkident (tablename, reseeed, 0)).
TIA
-Yash-
I am creating a table with identity column. When I am deleting all the
records from the table, I want to reset the identity column to start from 1
again.
For example, I have a table IDTest with two columns
-> NameID - This is my identity column
-> Name - This is data column.
I inserted 10 records.
I deleted all. If I insert new record now then it will have 11 as NameID
value. I want to reset this to start from 1 again.
I am looking for the similer function as available in MS SQL Server - (DBCC
checkident (tablename, reseeed, 0)).
TIA
-Yash-