Quantcast
Channel: SQL Server Setup & Upgrade forum
Viewing all articles
Browse latest Browse all 5760

Partition key on non primary key column

$
0
0

I have scenario where the table has defined non primary key column as "partition key".

I was wondering how it will affect the purge/archive process if the index and table are using different column (they are not aligned)?

What should be the solution to this scenario?

Can I use the non primary key column as partition key? Is this affect purging/archiving or switching -IN or OUT partitions?

Here is the article which Im following but didn't get the precise answer:

"When the indexes and the table use the same partitioning function and columns in the same order, the table and index are aligned." 

https://msdn.microsoft.com/en-US/library/ms345146%28v=SQL.90%29.aspx?f=255&MSPPError=-2147217396#sql2k5parti_topic9

Look at "Index Partitioning" and "Defining the Partitioning Key" section.



ZK


Viewing all articles
Browse latest Browse all 5760


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>