8
sidekicks
Wednesday, March 23, 2011 1:42:56 PM GMT Sunday, March 20, 2011 8:24:12 PM GMT

I was experiencing a strange problem. Identity field of a table is set to [1,1] by generating script. Every time, when I drop the whole database, and then re-create it by running script in SQL Server 2005 Management Studio, and then insert a record into that table programmatically, SQL Server set identity field value of that first record to 0 instead of 1! I was gone mad until I have comeup with a small piece of code like this. The code will delete all the rows from all the tables in your database. So u...

1 comment posted.

To post your comment please login or signup
Thumbnail Screenshots by Thumbshots