Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dropping a constraint
Message
 
 
À
07/04/2015 11:59:56
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2012
Application:
Web
Divers
Thread ID:
01617939
Message ID:
01617953
Vues:
26
Clustered PK is a table because all data from the table stored in it. Other indexes point to data through clustered index. When you drop clusterd PK, whole table and all its indexes have to be rebuild.

>Primary keys are clustered. There are other indexes.
>
>Documentation says that the drop of a primary key will create an overhead as SQL Server has to reorg its way of finding records. I ended up doing this:
>
>
>ALTER INDEX [ClientNumero] ON [Client] REBUILD WITH (ONLINE=OFF)
>
>
>This allows to do it direclty without a drop, with an online clause to be off to provide more performance.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform