Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dropping a constraint
Message
 
 
To
07/04/2015 11:59:56
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2012
Application:
Web
Miscellaneous
Thread ID:
01617939
Message ID:
01617953
Views:
27
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform