﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Discuss Content Posted by Andy Warren / Article Discussions / Article Discussions by Author  / Removing Audit History - SQL School Video / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sun, 26 May 2013 00:09:15 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Removing Audit History - SQL School Video</title><link>http://www.sqlservercentral.com/Forums/Topic672178-29-1.aspx</link><description>If your trim job has any significant number of rows in it, it is generally advisable to expire the rows in batches of N rows. One very easy way to implement this is to do:    set rowcount @pBatchCntDelete  -- Limit number of rows to selectand then run the delete in a loop until no rows are affected.Of course it will perform far better if you can base your deletions on the clustered key. If you aren't using an index and have to delete by table scan, then you would not want to batch the delete as above.</description><pubDate>Thu, 12 Mar 2009 09:43:26 GMT</pubDate><dc:creator>Adrian Hains</dc:creator></item><item><title>Removing Audit History - SQL School Video</title><link>http://www.sqlservercentral.com/Forums/Topic672178-29-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/articles/Video/65297/"&gt;Removing Audit History - SQL School Video&lt;/A&gt;[/B]</description><pubDate>Mon, 09 Mar 2009 23:56:58 GMT</pubDate><dc:creator>Andy Warren</dc:creator></item></channel></rss>