Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Purging the data older than 1 year

$
0
0

I have a requirement to purge data older than 1 year.

Table has 5 billion rows and delete about 4 billion rows in batches.

there is no primary key or indexes on table.

There is column Datetime and i created nonclustered index on table and planning to purge data based on that column.

Any help in preparing the script to purge data in batches older than 1 year.

Thanks,

Ron.


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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