Quantcast
Channel: SQL Server Manageability forum
Viewing all articles
Browse latest Browse all 1519

Efficient way to do the Purge / Delete activity on a SQL Server Heap table

$
0
0

Hi,

I have a huge heap table (sql 2008) on a staging database which is used to store log history for an application.

The application is not directly using this heap table.

The table is having a Date column and We have a Purge Plan to remove the records that are all older than 1 Year.

In this scenario, which one will help and support us in order to expedite the purge process ?

Whether Crating a Clustered Index or Non-Clustered Index ?

Of course, I am planning to use the following script in order to avoid Log file bloat and get rid of the blockings.

Can some help in this regard by providing suggestion.



Viewing all articles
Browse latest Browse all 1519

Trending Articles



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