Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Recommendations on removing large number of rows?

$
0
0

This is on SQL2012 Standard

Looking for recommendations to remove large number of rows of data (millions) from a table that has tens of millions of rows. Records older than 9 years will be removed.

Have 2 options in my mind:

1. Create a temp table with records I want to keep, drop existing table, rename temp table. Recreate index, etc.

2. Create automated process to delete in batches

Which is recommended in terms of performance impact and duration?



Viewing all articles
Browse latest Browse all 7129

Trending Articles



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