How can I reset the Identity column of a table to zero in SQL Server?
Edit:
How can we do it with LINQ to SQL ?
To accomplish the same task in a SQL Compact table use:
db.CommandText = "ALTER TABLE MyTable ALTER COLUMN Id IDENTITY (1,1)"; db.ExecuteNonQuery( );