I need to work with a database to create database reports rather large: 416 055 104 lines Each line is very light, but only logical and int id.
Each row is identified by three columns, but, to my surprise, it does not have a Primary Key. Only a clustered index with a unique constraint.
I know that I have 2 questions.
- Could there be ANY reason?
- Is there a way to turn this into a primary key.
Regarding Question 2
Creating a new primary key also creates a non-clustered index for communication (a clustered one already exists).
This is not what I am looking for. I want to keep the same index, but also make it primary.
- Is it possible?
- Would it be faster if you re-create the entire index? (I hope so)
- What could be the consequences? (blocks? data corruption failure?)
source share