We have a table that has about 2,000,000 records in it. It has an ID field (integer) that is the Primary Key, but it does not auto-increment.
To insert a record you have to specify the new ID number. Which since we have multiple users inserting information with various applications, means I have to be very careful of PK clashes.
I am wondering whether it would be feasible to upgrade that field to auto-increment, make it an identity field. It would make the inserts a lot simpler, but I am concerned whether the table would survive intact.
There are 14 indexes on the table including a time field that is actually varchar!!
I have tried to upgrade the ID field on an old copy of the table in a backed-up database, but it could not re-create the time field index.
Should I just not bother with the idea of upgrading the ID field to auto-increment? Or should I pursue this further?
Any help would be really appreciated
Ta
John
To insert a record you have to specify the new ID number. Which since we have multiple users inserting information with various applications, means I have to be very careful of PK clashes.
I am wondering whether it would be feasible to upgrade that field to auto-increment, make it an identity field. It would make the inserts a lot simpler, but I am concerned whether the table would survive intact.
There are 14 indexes on the table including a time field that is actually varchar!!
I have tried to upgrade the ID field on an old copy of the table in a backed-up database, but it could not re-create the time field index.
Should I just not bother with the idea of upgrading the ID field to auto-increment? Or should I pursue this further?
Any help would be really appreciated
Ta
John