I have to work with a database to do reporting The DB is quite big : 416 055 104 rows Each row is very light though, just booleans and int ids.
Each row is identify by 3 columns, but at my surprise, there is no Primary Key on it. Only a Clustered Index with a unique constraint.
So Knowing that, I have 2 question.
- Could there be ANY good reason for that?
- Is there any way I can turn this into a primary key.
Regarding question 2
Creating a new primary key also creates a non-clustered index to associate with (there is already an existing clustered one).
This is not what I am looking for. I want to keep that same index, but also make it a primary key.
- Is it possible?
- Would that be faster that creating the whole index again? (I hope so)
- What could be the consequences? (locks? crash? corrupted data?)