Quantcast
Channel: Table partition existing table where partition key is not part of the primary key - Database Administrators Stack Exchange
Browsing all 3 articles
Browse latest View live

Answer by David Browne - Microsoft for Table partition existing table where...

If OrderId is monotonically increasing, you can partition on that. Then you can truncate old partitions having no data you need to retain. Something like:create partition function pf_OrderId(int) as...

View Article



Answer by Scott Hodgin for Table partition existing table where partition key...

ALL unique constraints (that would include a primary key) involved in a partitioning scenario MUST have the partition column defined as part of the base index definition (subset of the index key) -...

View Article

Table partition existing table where partition key is not part of the primary...

Main objective: Add partitioning to table to make deletion of old orders non-blocking/quicker (and also understand partitioning)I have an existing table Order, like this:CREATE TABLE Order ( OrderId...

View Article
Browsing all 3 articles
Browse latest View live


Latest Images