Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dropping a constraint
Message
From
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:
01617952
Views:
25
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform