• I'd be really careful when considering partitioning (either partitioned tables or views) just for purposes of archiving. There are a whole lot of caveats (for example, partitioned column is added to all unique indexes in partitioned tables making them non-unique unless it's the only column in the index) to partitioning to the point that I tell people "if you partitioned a table and thought it was easy, you probably did something wrong". 😉 Yeah... it's real nice to do nearly instant SPLITs and the like but there can be a lot of other baggage that goes along with it.

    --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)