• I wouldn't (and haven't) used any of those 3 methods. I'd (and have) do the clustered index by Date (the partitioning column) and the PK. It's going to happen anyway because the PK is unique. And make sure it's a unique clustered index.

    If the data in old months is 100% static (think "audit table" or "closed invoice detail table"), then also consider making the DATE partitions live on 1 filegroup/file per month and make them Read-Only so that you don't have to worry about backing them up or doing index maintenance any more. It's been a real timesaver for me and will make "Piece-Meal" restores a whole lot easier if {knocking on wood} such a thing is ever needed.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)