How can I programmaticly reset a SQL Server IDENTITY_SEED?
I've been looking through the help and searching online SQL Server web sites and haven't come up with anything. The only way I've been able to get reset it is to delete all the records, modify the table so that it doesn't have an identity, save the table, modify the table again puting the identity back. That's not only a pain, but hardly something I want to have to do all the time.
Suggestions?
I've been looking through the help and searching online SQL Server web sites and haven't come up with anything. The only way I've been able to get reset it is to delete all the records, modify the table so that it doesn't have an identity, save the table, modify the table again puting the identity back. That's not only a pain, but hardly something I want to have to do all the time.
Suggestions?