How to Delete old partition and add new partition automatically

  • I have a table in SQL Server 2008 R2.

    It has 3 years data i partitioned it in to 12 partitions(Quarterly). based on datetime column.

    In feature as new data inserted (or new quarter started) a new partition should add automatically. and the older partition should be deleted automatically.

    As time frame moving on at any point of time i just want 3 yrs of data only. New data should go in to new partition and data older than 3yrs should be deleted automatically.

    Can any one help me on this?

  • Please don't start multiple threads for the same problem.

    No replies to this thread please. Direct replies to http://www.sqlservercentral.com/Forums/Topic1102345-391-1.aspx

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply