<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www.sqlservercentral.com/blogs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SQL Server Soldier :: News from the frontlines of the database wars - All Comments</title><link>http://www.sqlservercentral.com/blogs/robert_davis/default.aspx</link><description>Join in the never ending battle to tweak every micron of performance and functionality out of SQL Server.

Topics include T-SQL, performance tuning, query optimization, data architecture, automation, cool tips &amp;amp; tricks, and whatever else comes to mind.</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>re: SQLSaturday 26 Session Files</title><link>http://www.sqlservercentral.com/blogs/robert_davis/archive/2009/10/04/SQLSaturday-26-Session-Files.aspx#15544</link><pubDate>Fri, 06 Nov 2009 15:16:55 GMT</pubDate><guid isPermaLink="false">70975365-724d-4ce8-8d1c-45c963ab81ff:15544</guid><dc:creator>vbabu3</dc:creator><description>&lt;p&gt;Was informative with regards to mirroring. Looking forward to future sessions&lt;/p&gt;
&lt;img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=15544" width="1" height="1"&gt;</description></item><item><title>re: Breaking Up is Easy to Do</title><link>http://www.sqlservercentral.com/blogs/robert_davis/pages/Breaking-Up-is-Easy-to-Do.aspx#15496</link><pubDate>Thu, 05 Nov 2009 05:43:58 GMT</pubDate><guid isPermaLink="false">70975365-724d-4ce8-8d1c-45c963ab81ff:15496</guid><dc:creator>Vijayakumar KP</dc:creator><description>&lt;p&gt;Nice stuff....&lt;/p&gt;
&lt;img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=15496" width="1" height="1"&gt;</description></item><item><title>re: SQLSaturday 26 Session Files</title><link>http://www.sqlservercentral.com/blogs/robert_davis/archive/2009/10/04/SQLSaturday-26-Session-Files.aspx#14662</link><pubDate>Mon, 05 Oct 2009 21:42:39 GMT</pubDate><guid isPermaLink="false">70975365-724d-4ce8-8d1c-45c963ab81ff:14662</guid><dc:creator>Robert Davis</dc:creator><description>&lt;p&gt;Thanks Buck!! Unfortunately, I was not able to atend your sessions that day, but I've attended a couple of your presentations on MSFT campus before, and I hope to attend more of them in the future!!&lt;/p&gt;
&lt;img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=14662" width="1" height="1"&gt;</description></item><item><title>re: SQLSaturday 26 Session Files</title><link>http://www.sqlservercentral.com/blogs/robert_davis/archive/2009/10/04/SQLSaturday-26-Session-Files.aspx#14653</link><pubDate>Mon, 05 Oct 2009 16:40:36 GMT</pubDate><guid isPermaLink="false">70975365-724d-4ce8-8d1c-45c963ab81ff:14653</guid><dc:creator>BuckWoody</dc:creator><description>&lt;p&gt;Great to meet you there, Robert. Hope to see you again soon!&lt;/p&gt;
&lt;img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=14653" width="1" height="1"&gt;</description></item><item><title>re: Database Mirroring FAQ: How do we handle transaction log maintenance for a mirrored database?</title><link>http://www.sqlservercentral.com/blogs/robert_davis/archive/2009/03/04/How-do-we-handle-transaction-log-maintenance-for-a-mirrored-database.aspx#14142</link><pubDate>Tue, 15 Sep 2009 14:48:59 GMT</pubDate><guid isPermaLink="false">70975365-724d-4ce8-8d1c-45c963ab81ff:14142</guid><dc:creator>BobAtDBS</dc:creator><description>&lt;p&gt;If you simply use DBCC ShrinkFile on the principle's log file, the resulting change will be applied to the mirror as well in a very small transaction. &amp;nbsp;The mirror size will normally stay perfectly in synch with the principle's size.&lt;/p&gt;
&lt;p&gt;We ran out of disk space on the mirror, so mirroring was suspended and the principle's log grew rather large. &amp;nbsp;After clearing room on the mirror's log drive, resuming mirroring, letting it catch up, and finally letting the next principle log backup take place, we were able to use DBCC ShrinkFile on the principle's log file and the change was instantly reflected on the mirror.&lt;/p&gt;
&lt;img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=14142" width="1" height="1"&gt;</description></item><item><title>re: I Need a Backup and I Need It Now</title><link>http://www.sqlservercentral.com/blogs/robert_davis/archive/2009/04/18/I-Need-a-Backup-and-I-Need-It-Now.aspx#13393</link><pubDate>Tue, 18 Aug 2009 19:26:10 GMT</pubDate><guid isPermaLink="false">70975365-724d-4ce8-8d1c-45c963ab81ff:13393</guid><dc:creator>dsully</dc:creator><description>&lt;p&gt;I am getting an error everytime:&lt;/p&gt;
&lt;p&gt;Exception calling &amp;quot;SqlBackup&amp;quot; with &amp;quot;1&amp;quot; argument(s): &amp;quot;Backup failed for Server 'myServer'. &amp;quot;&lt;/p&gt;
&lt;p&gt;At C:\PowerShell\BackupProdDB.ps1:78 char:18&lt;/p&gt;
&lt;p&gt;+ $Backup.SqlBackup( &amp;lt;&amp;lt;&amp;lt;&amp;lt; $Srv)&lt;/p&gt;
&lt;p&gt;What am I doing wrong?&lt;/p&gt;
&lt;p&gt;This will be very useful if I can get it to work. Thanks in advance.&lt;/p&gt;
&lt;img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=13393" width="1" height="1"&gt;</description></item><item><title>re: Database Mirroring FAQ: How do we handle transaction log maintenance for a mirrored database?</title><link>http://www.sqlservercentral.com/blogs/robert_davis/archive/2009/03/04/How-do-we-handle-transaction-log-maintenance-for-a-mirrored-database.aspx#13138</link><pubDate>Wed, 05 Aug 2009 10:16:03 GMT</pubDate><guid isPermaLink="false">70975365-724d-4ce8-8d1c-45c963ab81ff:13138</guid><dc:creator>-- Cranfield</dc:creator><description>&lt;p&gt;We've seen a problem where if the log file on the Primary autogrows then this growth is not propogated to the mirror. &amp;nbsp;This causes a big problem in that the log file on the primary will not truncate after the log backup. I'm sitting with a tran log of 150GB with 65% used. There are no open transactions and a backup or checkpoint does not truncate the log. &amp;nbsp;My log file on my mirror is only 80GB. the mirror is in synch. &amp;nbsp;This has to be a bug.&lt;/p&gt;
&lt;img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=13138" width="1" height="1"&gt;</description></item><item><title>re: How many mirrored databases can I have on a server?</title><link>http://www.sqlservercentral.com/blogs/robert_davis/archive/2008/11/18/How-many-mirrored-databases-can-I-have-on-a-server_3F00_.aspx#12302</link><pubDate>Mon, 15 Jun 2009 10:30:38 GMT</pubDate><guid isPermaLink="false">70975365-724d-4ce8-8d1c-45c963ab81ff:12302</guid><dc:creator>Gé Brander</dc:creator><description>&lt;p&gt;Ok, clear. Maybe adjust your post to Cores. It makes more sense to people. Then you make a clear distinction between processors and cores.&lt;/p&gt;
&lt;img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=12302" width="1" height="1"&gt;</description></item><item><title>re: How many mirrored databases can I have on a server?</title><link>http://www.sqlservercentral.com/blogs/robert_davis/archive/2008/11/18/How-many-mirrored-databases-can-I-have-on-a-server_3F00_.aspx#12297</link><pubDate>Mon, 15 Jun 2009 00:00:27 GMT</pubDate><guid isPermaLink="false">70975365-724d-4ce8-8d1c-45c963ab81ff:12297</guid><dc:creator>Robert Davis</dc:creator><description>&lt;p&gt;I use the term &amp;quot;processors&amp;quot; to mean logical processors. It is the number of processors as SQL sees them. So if you have 8 quad core processors, then SQL sees 32 processors. If you have 32 quad core processors, then SQL sees 128 processors.&lt;/p&gt;
&lt;img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=12297" width="1" height="1"&gt;</description></item><item><title>re: How many mirrored databases can I have on a server?</title><link>http://www.sqlservercentral.com/blogs/robert_davis/archive/2008/11/18/How-many-mirrored-databases-can-I-have-on-a-server_3F00_.aspx#12273</link><pubDate>Fri, 12 Jun 2009 08:34:43 GMT</pubDate><guid isPermaLink="false">70975365-724d-4ce8-8d1c-45c963ab81ff:12273</guid><dc:creator>Gé Brander</dc:creator><description>&lt;p&gt;When you state 'processors' do you mean cores or processors? Do I need a 32 processor with quad cores ==&amp;gt; 128 cores or 8 processor with each 4 cores ==&amp;gt; 32 cores?&lt;/p&gt;
&lt;img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=12273" width="1" height="1"&gt;</description></item><item><title>re: Database Mirroring FAQ: How do we handle transaction log maintenance for a mirrored database?</title><link>http://www.sqlservercentral.com/blogs/robert_davis/archive/2009/03/04/How-do-we-handle-transaction-log-maintenance-for-a-mirrored-database.aspx#12271</link><pubDate>Fri, 12 Jun 2009 00:31:52 GMT</pubDate><guid isPermaLink="false">70975365-724d-4ce8-8d1c-45c963ab81ff:12271</guid><dc:creator>Robert Davis</dc:creator><description>&lt;p&gt;Hi Bob. I agree about it being a bad thing. That should only be used for extreme cases, in my opinion. Unfortunately, it was required due to a bug if your SQL build was SQL 2005 prior to CU6 for SP2. Fortunately, that bug has been fixed!!&lt;/p&gt;
&lt;p&gt;Really, the only way to shrink the log file on the mirror only would be to fail over to the mirror, shrink the file, and then fail back.&lt;/p&gt;
&lt;img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=12271" width="1" height="1"&gt;</description></item><item><title>re: Database Mirroring FAQ: How do we handle transaction log maintenance for a mirrored database?</title><link>http://www.sqlservercentral.com/blogs/robert_davis/archive/2009/03/04/How-do-we-handle-transaction-log-maintenance-for-a-mirrored-database.aspx#12226</link><pubDate>Tue, 09 Jun 2009 21:51:13 GMT</pubDate><guid isPermaLink="false">70975365-724d-4ce8-8d1c-45c963ab81ff:12226</guid><dc:creator>Robert Mills</dc:creator><description>&lt;p&gt;Robert,&lt;/p&gt;
&lt;p&gt;The article you referenced from Microsoft Support is a very bad thing for my implementation. &amp;nbsp;I'm dealing with a VERY LARGE DB and it is NOT set to autogrow. &amp;nbsp;I really don't want to shrink it even if that would shrink my mirror transaction log. &amp;nbsp;Is there any way known in SQL 2005 to truncate / shrink a transaction log ONLY on the mirror?&lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;
&lt;p&gt;Bob Mills&lt;/p&gt;
&lt;img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=12226" width="1" height="1"&gt;</description></item><item><title>re: Database Mirroring FAQ: How do we handle transaction log maintenance for a mirrored database?</title><link>http://www.sqlservercentral.com/blogs/robert_davis/archive/2009/03/04/How-do-we-handle-transaction-log-maintenance-for-a-mirrored-database.aspx#12135</link><pubDate>Thu, 04 Jun 2009 13:45:28 GMT</pubDate><guid isPermaLink="false">70975365-724d-4ce8-8d1c-45c963ab81ff:12135</guid><dc:creator>Robert Davis</dc:creator><description>&lt;p&gt;Hi Amy. Take a look at this KB article if you need to shrink the log file on the mirror: &lt;a rel="nofollow" target="_new" href="http://support.microsoft.com/kb/937531"&gt;support.microsoft.com/.../937531&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Otherwise, if you just need to shrink the log file on the principal, use DBCC ShrinkFile().&lt;/p&gt;
&lt;img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=12135" width="1" height="1"&gt;</description></item><item><title>re: Database Mirroring FAQ: How do we handle transaction log maintenance for a mirrored database?</title><link>http://www.sqlservercentral.com/blogs/robert_davis/archive/2009/03/04/How-do-we-handle-transaction-log-maintenance-for-a-mirrored-database.aspx#12125</link><pubDate>Wed, 03 Jun 2009 22:14:02 GMT</pubDate><guid isPermaLink="false">70975365-724d-4ce8-8d1c-45c963ab81ff:12125</guid><dc:creator>Amy Herndon</dc:creator><description>&lt;p&gt;Database Mirroring FAQ: How do we handle transaction log maintenance for a ... They normally truncate the txn log after a full backup without DB Mirroring. ...&lt;/p&gt;
&lt;p&gt;www.sqlservercentral.com/blogs/robert_davis/archive/.../How-do-we-handle-transaction-log-maintenance-for-a-mirrored-database.aspx - Similar pages&lt;/p&gt;
&lt;p&gt;I am trying to see what we can do to truncate the logs on the morrroed dbs.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=12125" width="1" height="1"&gt;</description></item><item><title>re: Behind Every Great Restore is a Great Backup</title><link>http://www.sqlservercentral.com/blogs/robert_davis/archive/2009/04/22/Behind-Every-Great-Restore-is-a-Great-Backup.aspx#11972</link><pubDate>Fri, 22 May 2009 09:28:57 GMT</pubDate><guid isPermaLink="false">70975365-724d-4ce8-8d1c-45c963ab81ff:11972</guid><dc:creator>v-ranik</dc:creator><description>&lt;p&gt;This article was really superb and informative.. I would like to learn more in details on backup &amp;amp; restore terminologies.. Any inputs on this would be of great help.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=11972" width="1" height="1"&gt;</description></item></channel></rss>