﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Administration / SQL Server 7,2000  / Reindexing Tables used in Log Shipping / 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>Wed, 19 Jun 2013 15:20:24 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Reindexing Tables used in Log Shipping</title><link>http://www.sqlservercentral.com/Forums/Topic423385-5-1.aspx</link><description>[quote][b]GilaMonster (2/15/2013)[/b][hr][quote][b]jblovesthegym (4/18/2012)[/b][hr]SOME POSTS in this thread are indeed over two years old, but the one immediately preceding yours answers a lot of questions I was going to pose (as I am looking after log shipping of over 50 dbs on SS2K) on the forum.  [/quote]Worth noting that the info given in the post you mention is lacking a few very critical points.Maybe take a read through this before you go off and use bulk logged recovery. It does have some downsides, it's not always interchangeable with full recovery (eg when there's mirroring), there are some risks to running it and it won't reduce the size of your log backups.[url]http://www.sqlservercentral.com/articles/Recovery+Model/89664/[/url][/quote]You are right Gail. Indeed, I should have added in my post that using the bulk logged recovery model will not reduce the size of log backups. It will only protect the transaction log files from growing very large without breaking the log chain.</description><pubDate>Wed, 20 Feb 2013 01:25:48 GMT</pubDate><dc:creator>Divine Flame</dc:creator></item><item><title>RE: Reindexing Tables used in Log Shipping</title><link>http://www.sqlservercentral.com/Forums/Topic423385-5-1.aspx</link><description>[quote][b]jblovesthegym (4/18/2012)[/b][hr]SOME POSTS in this thread are indeed over two years old, but the one immediately preceding yours answers a lot of questions I was going to pose (as I am looking after log shipping of over 50 dbs on SS2K) on the forum.  [/quote]Worth noting that the info given in the post you mention is lacking a few very critical points.Maybe take a read through this before you go off and use bulk logged recovery. It does have some downsides, it's not always interchangeable with full recovery (eg when there's mirroring), there are some risks to running it and it won't reduce the size of your log backups.[url]http://www.sqlservercentral.com/articles/Recovery+Model/89664/[/url]</description><pubDate>Fri, 15 Feb 2013 01:01:39 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>RE: Reindexing Tables used in Log Shipping</title><link>http://www.sqlservercentral.com/Forums/Topic423385-5-1.aspx</link><description>I also have a very large database with very sizeable clustered indexed tables.  I've been looking for a way around the bloating of logs and keeping tranlog backups at a decent size.  The only way I have found to do this efficiently is to spread the workload throughout the week instead of doing one-shot reindexing/reorg of the database on the weekend.Also, one comment about Devine's post.  Step #2 is fine, but remember that switching to bulk-logged recovery most often increases the size of the transaction log backups (although it does keep transaction log size smaller).  This is because the pages that are modified during reindexing are marked in the transaction log, then when the tranlog backups occur .. then all of the pages marked are copied into the tranlog backup.  Even when using 2008+ compression, redgate, or litespeed .. these log backups can very easily clog a WAN connection.</description><pubDate>Thu, 14 Feb 2013 20:31:55 GMT</pubDate><dc:creator>hipyskipy</dc:creator></item><item><title>RE: Reindexing Tables used in Log Shipping</title><link>http://www.sqlservercentral.com/Forums/Topic423385-5-1.aspx</link><description>[quote][b]GilaMonster (2/20/2012)[/b][hr]Please note: 5 year old thread.[/quote]SOME POSTS in this thread are indeed over two years old, but the one immediately preceding yours answers a lot of questions I was going to pose (as I am looking after log shipping of over 50 dbs on SS2K) on the forum.  Kudos to the man.  :)</description><pubDate>Wed, 18 Apr 2012 07:22:47 GMT</pubDate><dc:creator>jblovesthegym</dc:creator></item><item><title>RE: Reindexing Tables used in Log Shipping</title><link>http://www.sqlservercentral.com/Forums/Topic423385-5-1.aspx</link><description>Actuly 2 new posts got added in the same thread today prior to my response, so replying to them :-)</description><pubDate>Mon, 20 Feb 2012 04:06:20 GMT</pubDate><dc:creator>Divine Flame</dc:creator></item><item><title>RE: Reindexing Tables used in Log Shipping</title><link>http://www.sqlservercentral.com/Forums/Topic423385-5-1.aspx</link><description>Please note: 5 year old thread.</description><pubDate>Mon, 20 Feb 2012 03:54:56 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>RE: Reindexing Tables used in Log Shipping</title><link>http://www.sqlservercentral.com/Forums/Topic423385-5-1.aspx</link><description>I am not sure why people are so much ineterested in breaking log chain by changing the reocovery model to SIMPLE, just to avoid the log file growth during Re-indexing.Use Bulk Logged Recovery Model instead to avoid the log file growth. Benefits:1. Full &amp; Bulk Logged recovery models are interchangable. Interchanging Full &amp; Bulk Logged recovery model doesn't break the log chain.2. Once the reindexing is done you don't need to take the full/diff backups &amp; restoring them on secondary.3. You just need to switch back to Full recovery model again after the reindexing is done. Log backups will continue successfully after that &amp; you should leave it all to SQL Server log shipping jobs.</description><pubDate>Mon, 20 Feb 2012 03:45:40 GMT</pubDate><dc:creator>Divine Flame</dc:creator></item><item><title>RE: Reindexing Tables used in Log Shipping</title><link>http://www.sqlservercentral.com/Forums/Topic423385-5-1.aspx</link><description>Log Ship will be insync once you follow steps. I suggest, pl verify on test server for surity. We always do.</description><pubDate>Mon, 20 Feb 2012 02:42:18 GMT</pubDate><dc:creator>Paresh Randeria</dc:creator></item><item><title>RE: Reindexing Tables used in Log Shipping</title><link>http://www.sqlservercentral.com/Forums/Topic423385-5-1.aspx</link><description>Hi Paresh,I like your solution but again i am bit hasy in applying in production before testing it local.Are you sure log shipping will not affected after this process because my production database is very large and it takes quite long time to backup and restore on secondary server.</description><pubDate>Mon, 20 Feb 2012 02:01:08 GMT</pubDate><dc:creator>Rajat Jaiswal-337252</dc:creator></item><item><title>RE: Reindexing Tables used in Log Shipping</title><link>http://www.sqlservercentral.com/Forums/Topic423385-5-1.aspx</link><description>you cannot run reindex on a DB with TB of data in a Full recovery mode. It will blow up your Tran Log dramatically. One weekend one of my coworkers forgot to reset it to simple before running re-indexing, so we ended up having a tran log dump of 64GB which we had to copy to secondary server</description><pubDate>Fri, 07 Aug 2009 18:44:19 GMT</pubDate><dc:creator>barsuk</dc:creator></item><item><title>RE: Reindexing Tables used in Log Shipping</title><link>http://www.sqlservercentral.com/Forums/Topic423385-5-1.aspx</link><description>NO NEED TO BACKUP AND RESTORE FULL DATABASE. Differential will do...1. FULL BACKUP;2. Let One Log Backup and Restore on Secondary;3. DISABLE Log BACKUP (DO NOT STOP LOG SHIPPING, DO NOT CHANGE RECOVERY MODEL);4. Reindex;5. Update Stats;6. DUMP TRAN on Primary;7. [b]Differential Backup on Primary[/b];8. Copy and Restore Differential WITH NO RECOVERY/STAND BY on Secondary;9.  Start Backup Logs on Primary;10. Copy and Start applying Logs on Secondary. </description><pubDate>Fri, 07 Aug 2009 06:30:29 GMT</pubDate><dc:creator>Paresh Randeria</dc:creator></item><item><title>RE: Reindexing Tables used in Log Shipping</title><link>http://www.sqlservercentral.com/Forums/Topic423385-5-1.aspx</link><description>It has been awhile, but backup took about 1.5hr on 1.3TB Database. Copy another few hours and restore a bit longer. Secondary server was not required right away, so once backup was completed ( we skipped verify part) on Primary, it was available to use.At that time I was having tables with few hundred mln rows, a lot of writes, so missing one wknd for reindexing was unacceptable.By the way I was using LS for backup and restore. Without it, the above scenario would be unacceptableThe alternative to the that scenation would be using BCV\Time Finders Snaps, but it is very expensive from hardware point of view and require a lot of tweaking.</description><pubDate>Wed, 21 Nov 2007 14:19:14 GMT</pubDate><dc:creator>barsuk</dc:creator></item><item><title>RE: Reindexing Tables used in Log Shipping</title><link>http://www.sqlservercentral.com/Forums/Topic423385-5-1.aspx</link><description>When you say the statement below, you were basically rebuilding Log Shipping every weekend.Backup;Copy and Restore on Secondary;Start applying Logs on Secondary.When you have a very large database, rebuilding Log Shipping on a regular basis isn't do-able--especially when you don't have a large window to do it in.  One time I can remember that it took about 5 hours just to copy a set of 6 backup files between servers....</description><pubDate>Tue, 20 Nov 2007 13:46:44 GMT</pubDate><dc:creator>Linda Johanning</dc:creator></item><item><title>RE: Reindexing Tables used in Log Shipping</title><link>http://www.sqlservercentral.com/Forums/Topic423385-5-1.aspx</link><description>At my prior job, on the wknds we were running the following on Saturday night:Stop Logshipping;Set Recovery mode to Simple;Reindex;Update Stats for some indexes;Flip Recovery mode to Full;Backup;Copy and Restore on Secondary;Start applying Logs on Secondary.Everybody recognized the performance issues when we missed week or two without reindexing, so flipping between Recovery Modes and Restoring to the Secondary of the Backup was always a priority. Few times when we forgot to set Recovery to simple on weekend ( 3AM Sunday, tran log dump grew to 70GB-try to copy it to the Secondary!)</description><pubDate>Mon, 19 Nov 2007 16:07:10 GMT</pubDate><dc:creator>barsuk</dc:creator></item><item><title>RE: Reindexing Tables used in Log Shipping</title><link>http://www.sqlservercentral.com/Forums/Topic423385-5-1.aspx</link><description>What I've had to do is split up the reindex or defrag jobs so that there aren't so many large log files to ship to the secondary.  I put 6 of our largest tables to be defragged on separate days and then on the 7th day do the rest of them.  This doesn't solve the problem, but it helps.  Also, try to stay with re-indexing.  Defragging large tables takes twice as long and creates much larger log files.</description><pubDate>Mon, 19 Nov 2007 11:14:34 GMT</pubDate><dc:creator>Linda Johanning</dc:creator></item><item><title>RE: Reindexing Tables used in Log Shipping</title><link>http://www.sqlservercentral.com/Forums/Topic423385-5-1.aspx</link><description>If you run the optimizations more often the should less load to have to ship across.</description><pubDate>Mon, 19 Nov 2007 08:11:18 GMT</pubDate><dc:creator>EvilPostIT</dc:creator></item><item><title>RE: Reindexing Tables used in Log Shipping</title><link>http://www.sqlservercentral.com/Forums/Topic423385-5-1.aspx</link><description>setting to simple mode will break the log chain, so that is out for log shipping. I suggest you maintain the database to whatever degree it requires and ignore the fact it is log shipping, just take more frequent tran log backups during index rebuilds\reorgs.One thing you can do is run integrity checks (checkdbs) on the secondary database to take some load off the live database</description><pubDate>Mon, 19 Nov 2007 06:43:36 GMT</pubDate><dc:creator>george sibbald</dc:creator></item><item><title>Reindexing Tables used in Log Shipping</title><link>http://www.sqlservercentral.com/Forums/Topic423385-5-1.aspx</link><description>I have several databases just set up for log shipping to another server. Previously, I would set the DB to SIMPLE recovery, run DBCC DBREINDEX, then set it back to FULL recovery.But now that they're used for Log Shipping, I imagine that my previous strategy would break the transaction log chain. If I run DBCC DBREINDEX in FULL mode, then I'll generate big transaction logs, and those T-Logs will get pushed to the secondary server.What's the best practice for doing DB maintenance for databases used in Log Shipping ??    Thanks in advance.</description><pubDate>Sun, 18 Nov 2007 11:45:51 GMT</pubDate><dc:creator>homebrew01</dc:creator></item></channel></rss>