Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

Drop partition

$
0
0

In sqlserver 2005, If i have partitioned my table based on date for each month, how do I drop partitions having data older than 3 months. This is to do the archiving the old data as we don't want old data to be in the database (older than 3 months). I am an Oracle DBA and it is quite easy there by simply dropping the partition by the name of that partition, and it will drop all the data inside that partition instead of having a delete statement with date clause to delete data older than 3 months

Thanks in advance


Salman



Viewing all articles
Browse latest Browse all 15889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>