Skip to content

Can i alter clustered by column #12121

Answered by mfussenegger
aman00323 asked this question in Q&A
Discussion options

You must be logged in to vote

Altering the clustered by column is not possible. It is used for the data distrubtion and changing it would mean that they'd have to redistribute all the data.

Currently the best alternative is to create a new table, copy over the data using insert into with a select and then swap around the table with alter cluster swap table

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by aman00323
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants