I followed the steps listed here
Auto increment primary key in SQL Server Management Studio 2012
to create an auto increment query. After doing so, should I delete the original primary key I had created?
I followed the steps listed here
Auto increment primary key in SQL Server Management Studio 2012
to create an auto increment query. After doing so, should I delete the original primary key I had created?
Not sure what original primary key you are talking about. Lets say you have a two column table named names. One column is the name_id, set to IDENTITY, and the other is a name to store a username:
[name_id|username]
Whenever you insert a value into the table, the name_id will automatically be created because it is an IDENTITY column. You do not have to specify it, in fact, you cannot specify it. So, the INSERT statement would look like:
INSERT INTO names VALUES('Bob')
If you then look at the table, the name_id will get an automatic ID:
[name_id|username]
[1 |Bob ]
The next INSERT you do, the name_id will increment the ID by 1 (considering you left the default auto-increment value):
INSERT INTO names VALUES('Carl')
You then get :
[name_id|username]
[1 |Bob ]
[2 |Carl ]