Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dropping a constraint
Message
De
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:
01617952
Vues:
24
>You didn't provide enough information to answer you question. Is PK clustered? Are there other indexes?

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.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform