If the column does not have a unique constraint and is not a primary key, this is possible, but as Jeff is getting at, it is not necessarily the best method to use.
There are many ways to do this, or achieve the same effect, but which way you choose depends on:
- will you keep existing data from previous months?
- similarly, is this a primary key column?
- what type of front-end or processes are you using to manipulate data (web site, automated services)? It may be more appropriate to work out the value to use on the front end.
For your information tho, you can reset an identity seed by truncating the table (TRUNCATE TABLE MyTable;) or by using a DBCC RESEED command:
sql Code:
-- reseed to 0, so next entry gets an id of 1
DBCC CHECKIDENT ('MyTable', RESEED, 0);