I have an application that allows new rows to be, added, updated, or deleted from a sql database. The problem Im having is that when I add new rows, the new Primary Key (ID) is not in sequence. For Instance, the database Im currently modifying has 2600 pieces of equipment. When I create a new piece of equipment and add it in to the database. The Id Becomes 2601. So far, so good. Now when I go back and delete that same piece of equipment and then add a new one, The ID becomes 2602. How do I go about making it sequential. When I view the database from Visual Studio, it only shows 2600 pieces of equipment but if I keep adding and deleting rows, the Increment keeps going up, instead of using the next available ID in the sequence. Where is the value being stored at? Ive closed out my program and Visual Studio, but when I come back, and add more equipment the Increment Keeps going up. My database is starting to look like this
...
2599
2600
2610
2615
...
Any help would be much appreciated. Thanks In Advance
-=Simcoder=-
...
2599
2600
2610
2615
...
Any help would be much appreciated. Thanks In Advance
-=Simcoder=-