Delete data data older than 3 moths from a sql table having more than 16 millions of data

  • I need to Delete data data older than 3 moths from a sql table having more than 16 millions of data,coudl you please suggest a optimized solution?

    Thanks,

    Giri

  • Don't suppose your table is partitioned?

    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
  • I have always used a script template I found in another thread here

    http://www.sqlservercentral.com/Forums/Topic437300-5-1.aspx

    written by Jeff Moden

    It is from 2007 and so may have been replaced with something even better.

    But it has always been good enough for my larger deletes

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

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