<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>Esoteric</title><link>http://blogs.msdn.com/b/arvindsh/</link><description>All esoteric things about SQL Server and Microsoft Developer Tools</description><dc:language>en</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>Opinion Poll: Are PRINT statements considered harmful?</title><link>http://blogs.msdn.com/b/arvindsh/archive/2012/05/24/opinion-poll-are-print-statements-considered-harmful.aspx</link><pubDate>Thu, 24 May 2012 17:08:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10309994</guid><dc:creator>Arvindsh</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/arvindsh/rsscomments.aspx?WeblogPostID=10309994</wfw:commentRss><comments>http://blogs.msdn.com/b/arvindsh/archive/2012/05/24/opinion-poll-are-print-statements-considered-harmful.aspx#comments</comments><description>&lt;p&gt;Today during a discussion a point came up around the role of PRINT statements in production code. While most data access today is routed through a data access layer (typically .NET or JDBC) and is focussed on consuming result sets (or executing U/I/D nonquery stuff) we were wondering on what you use PRINT statements for. In the long past, I would have said that the print statement is probably the best way for debugging, but in today's world with easy access to the T-SQL debugger, a developer is probably much better off without PRINT.&lt;/p&gt;
&lt;p&gt;With SqlClient, we consume the PRINT events using the InfoMessage event, but in practice I wonder how many of you actually rely on that. Please comment on this post to share your experiences with PRINT and if you think it is good / bad / evil in today's world :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10309994" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/arvindsh/archive/tags/T_2D00_SQL+Anti_2D00_patterns/">T-SQL Anti-patterns</category></item><item><title>Implementing MDX Drillthrough in SSRS</title><link>http://blogs.msdn.com/b/arvindsh/archive/2012/03/19/implementing-mdx-drillthrough-in-ssrs.aspx</link><pubDate>Mon, 19 Mar 2012 15:47:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10285005</guid><dc:creator>Arvindsh</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/arvindsh/rsscomments.aspx?WeblogPostID=10285005</wfw:commentRss><comments>http://blogs.msdn.com/b/arvindsh/archive/2012/03/19/implementing-mdx-drillthrough-in-ssrs.aspx#comments</comments><description>&lt;p&gt;Let&amp;rsquo;s say for some reason your users want to implement MDX DRILLTHROUGH statement (equivalent to the cube action provided by most OLAP browsers) in SSRS. Here&amp;rsquo;s a step-by-step way to implement this.&lt;/p&gt;
&lt;p&gt;For the purposes of this walkthrough, we are using the standard AdventureWorks Analysis Services database. You can obtain this and the related DW database from &lt;a title="http://msftdbprodsamples.codeplex.com/" href="http://msftdbprodsamples.codeplex.com/"&gt;http://msftdbprodsamples.codeplex.com/&lt;/a&gt;. Do note that you have to manually deploy and process the database after opening the Adventure Works.sln file from its default location of C:\Program Files\Microsoft SQL Server\100\Tools\Samples\AdventureWorks Analysis Services Project\enterprise&lt;/p&gt;
&lt;p&gt;Our objective is to implement two reports:&lt;/p&gt;
&lt;p&gt;1. The parent report will list the top 10 products along with their sales amount totals&lt;/p&gt;
&lt;p&gt;2. The child (drillthrough) report will display a raw DRILLTHROUGH for the first 500 rows and get back the product quantity of the individual order, along with the order number and date the order was placed&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 1. Verify the AS database is deployed and processed&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 2. Here is our (pretty basic) MDX query for the Top 10 listing for current products:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;WITH MEMBER PKey AS &lt;br /&gt;[Product].[Product].CurrentMember.Properties("Key0") &lt;br /&gt;select {[Measures].[Reseller Sales Amount], PKey } on 0, &lt;br /&gt;(TopCount([Product].[Product Categories].[Product], 10, [Measures].[Reseller Sales Amount])) on 1 &lt;br /&gt;from [Adventure Works] &lt;br /&gt;where [Product].[Status].[Current]&lt;/p&gt;
&lt;p&gt;Why the calculated member PKey? You will see later.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 3. Capture the DRILLTHROUGH query in Profiler&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Since writing the DRILLTHROUGH statement by hand can be a bit of a challenge, here it is captured from SQL Profiler:&lt;/p&gt;
&lt;p&gt;DRILLTHROUGH&amp;nbsp; Select&amp;nbsp; ([Measures].[Reseller Sales Amount],[Product].[Product&lt;span style="background-color: #ffff00;"&gt;].&amp;amp;[358])&lt;/span&gt;&amp;nbsp; on 0 From [Adventure Works] RETURN [Reseller Sales].[Reseller Order Quantity],[$Employee].[Employee],[$Delivery Date].[Date],[$Sales Territory].[Sales Territory Region],[$Reseller Sales Order Details].[Sales Order Number]&lt;/p&gt;
&lt;p&gt;You can see the product key is highlighted. This is actually the key column syntax as can be seen from the ampersand prefix. So now you know why we selected the PKey calculated member in the previous query.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 4. Create the parent report&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The first step is to create a shared data source to the SSAS database:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-64-64-metablogapi/7571.image_5F00_202BD02C.png"&gt;&lt;img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" border="0" alt="image" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-64-64-metablogapi/0020.image_5F00_thumb_5F00_44DCE7A3.png" width="473" height="346" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Next, we actually create the report. We select the New Report option and use the above shared data source. In the Query Designer, we switch to Query Mode and type in the MDX query we developed earlier:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-64-64-metablogapi/2313.image_5F00_0FEFE266.png"&gt;&lt;img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" border="0" alt="image" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-64-64-metablogapi/8255.image_5F00_thumb_5F00_53E3A0B0.png" width="604" height="452" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Once this is done, select Tabular report, and move all the columns into the Details section of the report. Title the report as MainReport.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-64-64-metablogapi/7215.image_5F00_4962CC90.png"&gt;&lt;img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" border="0" alt="image" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-64-64-metablogapi/6523.image_5F00_thumb_5F00_62BAA9FD.png" width="420" height="391" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In the generated report, delete the PKey column.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 5. Create the drillthrough report&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This is the tricky part. Normally, the MDX query designer does not support DRILLTHROUGH SELECT syntax. Hence we need to use a workaround. Please note that this workaround may not be officially supported by Microsoft.&lt;/p&gt;
&lt;p&gt;We start the same way, by creating a new report and referencing the shared data source. But when you launch the query designer please switch the query type to DMX instead of MDX.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-64-64-metablogapi/5518.image_5F00_06935B8B.png"&gt;&lt;img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" border="0" alt="image" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-64-64-metablogapi/3108.image_5F00_thumb_5F00_15E6BD9A.png" width="516" height="386" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After this is switched, also switch to query mode as done before. In the space at the bottom, type in the &amp;lsquo;DMX&amp;rsquo; query which is actually our MDX DRILLTHROUGH SELECT query. However now we do need to parameterize the query to accommodate the PKey parameter:&lt;/p&gt;
&lt;p&gt;DRILLTHROUGH MAXROWS 50 Select&amp;nbsp; ([Measures].[Reseller Sales Amount], StrToMember('[Product].[Product].&amp;amp;[' + @PKey + ']'))&amp;nbsp; on 0 From [Adventure Works] RETURN [Reseller Sales].[Reseller Order Quantity],[$Employee].[Employee],[$Delivery Date].[Date],[$Sales Territory].[Sales Territory Region],[$Reseller Sales Order Details].[Sales Order Number]&lt;/p&gt;
&lt;p&gt;Before you can click on OK though, you need to setup the parameter as well. You do that by clicking on the Query Parameters button:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-64-64-metablogapi/5722.image_5F00_510A7398.png"&gt;&lt;img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" border="0" alt="image" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-64-64-metablogapi/1256.image_5F00_thumb_5F00_2027BC2D.png" width="463" height="347" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;We provide a dummy value of 394 so that the fields can be retrieved. The actual value, of course, will be provided by the drillthrough action later.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-64-64-metablogapi/2627.image_5F00_604DAFDA.png"&gt;&lt;img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" border="0" alt="image" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-64-64-metablogapi/8547.image_5F00_thumb_5F00_5E30B111.png" width="388" height="276" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Select the tabular layout and move all the fields to the Details section. Name the report DrillThroughReport.rdl. Finally, set the report parameter PKey type as Hidden:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-64-64-metablogapi/0020.image_5F00_3062E84C.png"&gt;&lt;img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" border="0" alt="image" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-64-64-metablogapi/3225.image_5F00_thumb_5F00_2E45E983.png" width="398" height="326" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 6. Create the drillthrough action&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Back to MainReport.rdl, right click on the Product text box and select Text Box properties. In the Action tab, you need to set up the Drillthrough (SSRS this time&amp;hellip; don&amp;rsquo;t get confused by the similar term &lt;img style="border-style: none;" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-64-64-metablogapi/0675.wlEmoticon_2D00_smile_5F00_76B02894.png" /&gt;)&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-64-64-metablogapi/5025.image_5F00_51B2681B.png"&gt;&lt;img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" border="0" alt="image" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-64-64-metablogapi/3438.image_5F00_thumb_5F00_3A37B3EA.png" width="431" height="390" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;We also change the hyperlink look and feel for good measure:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-64-64-metablogapi/3021.image_5F00_652FA1EF.png"&gt;&lt;img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" border="0" alt="image" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-64-64-metablogapi/6523.image_5F00_thumb_5F00_2D99E101.png" width="415" height="376" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And that does it for our reports:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-64-64-metablogapi/0815.image_5F00_46490844.png"&gt;&lt;img style="background-image: none; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" border="0" alt="image" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-64-64-metablogapi/4617.image_5F00_thumb_5F00_6F046D8D.png" width="200" height="244" /&gt;&lt;/a&gt;&amp;nbsp;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-64-64-metablogapi/0550.image_5F00_33645ECD.png"&gt;&lt;img style="background-image: none; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" border="0" alt="image" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-64-64-metablogapi/3582.image_5F00_thumb_5F00_229CB41F.png" width="244" height="242" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Final Notes&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;How &amp;lsquo;legitimate&amp;rsquo; is it to masquerade a MDX DRILLTHROUGH as a DMX query? As I said before, this is not officially supported. You can refer the to the MS Connect posting at &lt;a title="http://connect.microsoft.com/SQLServer/feedback/details/126175/reporting-services-drillthrough-mdx-queries" href="http://connect.microsoft.com/SQLServer/feedback/details/126175/reporting-services-drillthrough-mdx-queries"&gt;http://connect.microsoft.com/SQLServer/feedback/details/126175/reporting-services-drillthrough-mdx-queries&lt;/a&gt; for the &amp;lsquo;won&amp;rsquo;t fix&amp;rsquo; response.&lt;/p&gt;
&lt;p&gt;The main reason for my documenting the approach above is that in the specific case I was interested in, the MAXROWS clause is very important. Of course one can argue that using MDX the same can be achieved, but then it is a matter of preference in the end.&lt;/p&gt;
&lt;p&gt;BTW, Chris Webb also shares his perspectives on this at &lt;a title="http://cwebbbi.wordpress.com/2009/06/16/implementing-analysis-services-drillthrough-in-reporting-services/" href="http://cwebbbi.wordpress.com/2009/06/16/implementing-analysis-services-drillthrough-in-reporting-services/"&gt;http://cwebbbi.wordpress.com/2009/06/16/implementing-analysis-services-drillthrough-in-reporting-services/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you liked this posting, please rate it! In any case please do take a minute and leave comments, questions etc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10285005" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/arvindsh/archive/tags/Analysis+Services/">Analysis Services</category><category domain="http://blogs.msdn.com/b/arvindsh/archive/tags/MSPFE/">MSPFE</category><category domain="http://blogs.msdn.com/b/arvindsh/archive/tags/SSAS/">SSAS</category></item><item><title>.NET Debugging Quick Start</title><link>http://blogs.msdn.com/b/arvindsh/archive/2012/03/14/net-debugging-quick-start.aspx</link><pubDate>Wed, 14 Mar 2012 16:12:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10282980</guid><dc:creator>Arvindsh</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/arvindsh/rsscomments.aspx?WeblogPostID=10282980</wfw:commentRss><comments>http://blogs.msdn.com/b/arvindsh/archive/2012/03/14/net-debugging-quick-start.aspx#comments</comments><description>&lt;p&gt;Many a time I am asked how to get a head start with debugging .NET issues – hangs / crashes and most commonly, memory issues. So I assembled this list of resources which helps you get started. In addition, if you are a Premier Support subscriber, you can avail of our most excellent &lt;a href="http://download.microsoft.com/download/f/b/1/fb1a3679-3526-4451-b941-eebc12dfc661/Advanced_NET_Debugging.pdf"&gt;.NET Debugging&lt;/a&gt; WorkshopPLUS conducted by my team (&lt;a href="http://www.linkedin.com/groups/Microsoft-Premier-Field-Engineering-PFE-3761475?gid=3761475"&gt;Premier Field Engineering&lt;/a&gt;).&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;The Production Debugging for .NET Framework Applications guide (&lt;a href="http://msdn.microsoft.com/en-us/library/ee817663.aspx"&gt;http://msdn.microsoft.com/en-us/library/ee817663.aspx&lt;/a&gt;)&lt;/li&gt;    &lt;li&gt;Maoni Stephens blog (covers GC and managed heap) &lt;a href="http://blogs.msdn.com/b/maoni/"&gt;http://blogs.msdn.com/b/maoni/&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;Sample chapter from Advanced .NET Debugging book: &lt;a href="http://advanceddotnetdebugging.com/chapter.htm"&gt;http://advanceddotnetdebugging.com/chapter.htm&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;.NET Framework Libraries source code (&lt;a href="http://referencesource.microsoft.com/netframework.aspx"&gt;http://referencesource.microsoft.com/netframework.aspx&lt;/a&gt;)&lt;/li&gt;    &lt;li&gt;Debugging tools for Windows: &lt;a href="http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx"&gt;http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;DebugDiag 1.2: &lt;a href="http://www.microsoft.com/download/en/details.aspx?id=26798"&gt;http://www.microsoft.com/download/en/details.aspx?id=26798&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;KB article for DebugDiag 1.2: &lt;a href="http://support.microsoft.com/kb/2580960"&gt;http://support.microsoft.com/kb/2580960&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;DebugDiag 1.1 white paper: &lt;a href="http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=23521"&gt;http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=23521&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;DebugDiag 1.1: &lt;a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=28bd5941-c458-46f1-b24d-f60151d875a3&amp;amp;displaylang=en"&gt;http://www.microsoft.com/downloads/en/details.aspx?FamilyID=28bd5941-c458-46f1-b24d-f60151d875a3&amp;amp;displaylang=en&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;PSSCOR2 debugger extension: &lt;a href="http://www.microsoft.com/download/en/details.aspx?displayLang=en&amp;amp;id=1073"&gt;http://www.microsoft.com/download/en/details.aspx?displayLang=en&amp;amp;id=1073&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;PSSCOR4 debugger extension: &lt;a href="http://www.microsoft.com/download/en/details.aspx?id=21255"&gt;http://www.microsoft.com/download/en/details.aspx?id=21255&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;SOSEx debugger extension: &lt;a href="http://www.stevestechspot.com/"&gt;http://www.stevestechspot.com/&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;Public Labs from Tess Fernandez: &lt;a href="http://blogs.msdn.com/b/tess/archive/2008/02/04/net-debugging-demos-information-and-setup-instructions.aspx"&gt;http://blogs.msdn.com/b/tess/archive/2008/02/04/net-debugging-demos-information-and-setup-instructions.aspx&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;Tess Fernandez at Oredev conference (video): &lt;a href="http://oredev.org/prod/oredev/site.nsf/docsbycodename/session?opendocument&amp;amp;sid=12201594012B3B23C125759200289A81&amp;amp;track=5EA1ADD99261C8A5C12575A500494952&amp;amp;day=3"&gt;http://oredev.org/prod/oredev/site.nsf/docsbycodename/session?opendocument&amp;amp;sid=12201594012B3B23C125759200289A81&amp;amp;track=5EA1ADD99261C8A5C12575A500494952&amp;amp;day=3&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;Visual Studio 2010 IntelliTrace: &lt;a href="https://channel9.msdn.com/tags/intellitrace/"&gt;https://channel9.msdn.com/tags/intellitrace/&lt;/a&gt; and &lt;a href="http://ecn.channel9.msdn.com/o9/pdc09/ppt/FT16.pptx"&gt;http://ecn.channel9.msdn.com/o9/pdc09/ppt/FT16.pptx&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;I hope you find the links useful and if you do I would appreciate some comments and / or you rating this post!&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;/li&gt; &lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10282980" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/arvindsh/archive/tags/Production+debugging/">Production debugging</category></item><item><title>Failover cluster (group) maximum failures limit</title><link>http://blogs.msdn.com/b/arvindsh/archive/2012/03/09/failover-cluster-group-maximum-failures-limit.aspx</link><pubDate>Fri, 09 Mar 2012 13:13:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10280401</guid><dc:creator>Arvindsh</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/arvindsh/rsscomments.aspx?WeblogPostID=10280401</wfw:commentRss><comments>http://blogs.msdn.com/b/arvindsh/archive/2012/03/09/failover-cluster-group-maximum-failures-limit.aspx#comments</comments><description>&lt;p&gt;My colleague reported that during testing forced failover for a SQL database engine instance, it just &amp;lsquo;failed&amp;rsquo; and refused to fail over to the other node in a 2-node cluster. The failure in this case was initiated by shutting down the local service for the clustered instance &amp;ndash; which is tantamount to failing the clustered instance itself.&lt;/p&gt;
&lt;p&gt;This behavior was slightly unexpected. After some research, we traced it to the &amp;lsquo;Maximum failures in the specified period&amp;rsquo; setting at the cluster group (service application) level:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-64-64-metablogapi/1768.image_5F00_4B6B635A.png"&gt;&lt;img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" border="0" alt="image" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-64-64-metablogapi/8371.image_5F00_thumb_5F00_7088ADC6.png" width="373" height="443" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It turns out that the testing activity involved some failures already due to which the above limit was already reached. Subsequently, when the SQL service level failure was initiated, the cluster service did not fail it over to the other node and left it in the failed state.&lt;/p&gt;
&lt;p&gt;During this investigation I found some articles which are very useful in this:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a title="http://support.microsoft.com/kb/947712" href="http://support.microsoft.com/kb/947712"&gt;http://support.microsoft.com/kb/947712&lt;/a&gt; &amp;ndash; this is the primary article which describes the failure limit and the associated failover logic&lt;/li&gt;
&lt;li&gt;&lt;a title="http://support.microsoft.com/kb/950804" href="http://support.microsoft.com/kb/950804"&gt;http://support.microsoft.com/kb/950804&lt;/a&gt; &amp;ndash; this article explains an UI issue in Win2008 cluster where the above maximum failure limit is displayed incorrectly (n-1)&lt;/li&gt;
&lt;li&gt;&lt;a title="http://support.microsoft.com/kb/228923" href="http://support.microsoft.com/kb/228923"&gt;http://support.microsoft.com/kb/228923&lt;/a&gt; &amp;ndash; this advanced article explains the RetryPeriodOnFailure property which changed from Windows 2003 (where it was &amp;lsquo;disabled&amp;rsquo;) to 60 minutes in Windows 2008+.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Moral of the story: When performing failover drills or testing, it may be appropriate to increase this value to a higher number, such as 5 or 10 for the duration of the testing. Subsequently the value may be reset back to 1 or 2.&lt;/p&gt;
&lt;p&gt;FYI when you look at the cluster log, this is the message which is recorded when the limit has been reached (and is therefore disallowing restarts):&lt;/p&gt;
&lt;p&gt;0000088c.00001038::2012/03/07-06:09:09.834 WARN&amp;nbsp; [RCM] Not failing over group &amp;lt;groupname&amp;gt;, failoverCount 8, failover threshold 4294967295, nodeAvailCount 1.&lt;/p&gt;
&lt;p&gt;Hope this helps!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10280401" width="1" height="1"&gt;</description></item><item><title>MDX Studio Quick Tips</title><link>http://blogs.msdn.com/b/arvindsh/archive/2011/11/24/mdx-studio-quick-tips.aspx</link><pubDate>Thu, 24 Nov 2011 11:26:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10241264</guid><dc:creator>Arvindsh</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/arvindsh/rsscomments.aspx?WeblogPostID=10241264</wfw:commentRss><comments>http://blogs.msdn.com/b/arvindsh/archive/2011/11/24/mdx-studio-quick-tips.aspx#comments</comments><description>&lt;p&gt;Recently I had to use MDX Studio for some MDX query tuning. 2 quick tips:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Latest download link for MDX Studio can be obtained from the support forum at &lt;a title="http://ssas-info.com/forum/3-mdx-studio/" href="http://ssas-info.com/forum/3-mdx-studio/"&gt;http://ssas-info.com/forum/3-mdx-studio/&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;The earlier versions of MDX Studio are referenced from Mosha’s website at &lt;a title="http://www.mosha.com/msolap/mdxstudio.htm" href="http://www.mosha.com/msolap/mdxstudio.htm"&gt;http://www.mosha.com/msolap/mdxstudio.htm&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Also very quickly, if you are finding that the Perfmon section in MDX Studio shows 0 for most values such as ‘Cells calculated’ then try running the MDXStudio.exe with the ‘Run as Administrator’ option.&lt;/p&gt;  &lt;p&gt;Also take a look at Ashwani Roy’s SQL Bits session ‘Supercharge MDX performance using MDX Studio’ which is available from &lt;a title="https://www.sqlbits.com/Sessions/Event6/supercharge_mdx_performance_using_mdx_studio" href="https://www.sqlbits.com/Sessions/Event6/supercharge_mdx_performance_using_mdx_studio"&gt;https://www.sqlbits.com/Sessions/Event6/supercharge_mdx_performance_using_mdx_studio&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10241264" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/arvindsh/archive/tags/Analysis+Services/">Analysis Services</category></item><item><title>TEMENOS T24 Core Banking Optimized on Microsoft SQL Server Database Platform</title><link>http://blogs.msdn.com/b/arvindsh/archive/2011/11/02/temenos-t24-core-banking-optimized-on-microsoft-sql-server-database-platform.aspx</link><pubDate>Wed, 02 Nov 2011 16:25:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10232539</guid><dc:creator>Arvindsh</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/arvindsh/rsscomments.aspx?WeblogPostID=10232539</wfw:commentRss><comments>http://blogs.msdn.com/b/arvindsh/archive/2011/11/02/temenos-t24-core-banking-optimized-on-microsoft-sql-server-database-platform.aspx#comments</comments><description>&lt;p&gt;I found these links today in response to a customer question around 'real world' benchmarks for financial applications running on SQL Server. These benchmarks describe the TEMENOS T24 Core Banking system, which is probably as 'real world' as it gets.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-00-85-48-Files/4617.Benchmark-Results-for-Temenos-T24--with-SQL-Server-2008-R2-on-Intel_2D00_based-NEC-Servers.pdf"&gt;http://blogs.technet.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-00-85-48-Files/4617.Benchmark-Results-for-Temenos-T24--with-SQL-Server-2008-R2-on-Intel_2D00_based-NEC-Servers.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://download.microsoft.com/download/B/2/3/B23E0B02-AA00-4921-8A76-B4384B6197DD/sql-temenos-t24.pdf"&gt;http://download.microsoft.com/download/B/2/3/B23E0B02-AA00-4921-8A76-B4384B6197DD/sql-temenos-t24.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10232539" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/arvindsh/archive/tags/SQL+Performance/">SQL Performance</category></item><item><title>Parallel Data Warehouse resources</title><link>http://blogs.msdn.com/b/arvindsh/archive/2011/04/28/parallel-data-warehouse-resources.aspx</link><pubDate>Thu, 28 Apr 2011 06:23:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10158957</guid><dc:creator>Arvindsh</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/arvindsh/rsscomments.aspx?WeblogPostID=10158957</wfw:commentRss><comments>http://blogs.msdn.com/b/arvindsh/archive/2011/04/28/parallel-data-warehouse-resources.aspx#comments</comments><description>&lt;p&gt;I’ve recently started learning about SQL Server Parallel Data Warehouse (PDW) appliance. In the course of learning, I came across some links and resources in connection with this appliance, which I will share in this blog post. I will keep it updated as much as possible.&lt;/p&gt;  &lt;p&gt;Learning resources:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Start your learning by looking at the collateral from &lt;a title="http://www.microsoft.com/sqlserver/en/us/solutions-technologies/data-warehousing/pdw.aspx" href="http://www.microsoft.com/sqlserver/en/us/solutions-technologies/data-warehousing/pdw.aspx"&gt;http://www.microsoft.com/sqlserver/en/us/solutions-technologies/data-warehousing/pdw.aspx&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;Free e-Learning clinic ‘Clinic 10333: Introduction to Microsoft SQL Server 2008 R2 Parallel Data Warehouse’: &lt;a title="https://www.microsoftelearning.com/eLearning/courseDetail.aspx?courseId=187496&amp;amp;tab=overview" href="https://www.microsoftelearning.com/eLearning/courseDetail.aspx?courseId=187496&amp;amp;tab=overview"&gt;https://www.microsoftelearning.com/eLearning/courseDetail.aspx?courseId=187496&amp;amp;tab=overview&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;SQL PDW blog from our Microsoft PFEs working on PDW: &lt;a title="http://www.sqlpdw.com/" href="http://www.sqlpdw.com/"&gt;http://www.sqlpdw.com/&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;Matt Peebles’ excellent deep-dive talk about PDW at TechEd: &lt;a title="http://www.msteched.com/2010/NorthAmerica/BIE309" href="http://www.msteched.com/2010/NorthAmerica/BIE309"&gt;http://www.msteched.com/2010/NorthAmerica/BIE309&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;Jeff Spiller on PDW and FastTrack best practices: &lt;a title="http://www.msteched.com/2010/NorthAmerica/BIE306" href="http://www.msteched.com/2010/NorthAmerica/BIE306"&gt;http://www.msteched.com/2010/NorthAmerica/BIE306&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;Microsoft IT sharing their experience about a 90TB PDW implementation: &lt;a title="http://technet.microsoft.com/en-us/library/gg447063.aspx" href="http://technet.microsoft.com/en-us/library/gg447063.aspx"&gt;http://technet.microsoft.com/en-us/library/gg447063.aspx&lt;/a&gt; and &lt;a title="http://technet.microsoft.com/en-us/edge/deploying-sql-server-2008-r2-parallel-data-warehouse-at-microsoft.aspx" href="http://technet.microsoft.com/en-us/edge/deploying-sql-server-2008-r2-parallel-data-warehouse-at-microsoft.aspx"&gt;http://technet.microsoft.com/en-us/edge/deploying-sql-server-2008-r2-parallel-data-warehouse-at-microsoft.aspx&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;Fairly detailed spec on what constitutes HP’s PDW implementation: &lt;a title="http://h18004.www1.hp.com/products/quickspecs/13830_na/13830_na.pdf" href="http://h18004.www1.hp.com/products/quickspecs/13830_na/13830_na.pdf"&gt;http://h18004.www1.hp.com/products/quickspecs/13830_na/13830_na.pdf&lt;/a&gt; and &lt;a title="http://h18004.www1.hp.com/products/quickspecs/13830_na/13830_na.html" href="http://h18004.www1.hp.com/products/quickspecs/13830_na/13830_na.html"&gt;http://h18004.www1.hp.com/products/quickspecs/13830_na/13830_na.html&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Community blog posts:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;My friend Shailendra has blogged about the positioning of PDW and FastTrack: &lt;a title="http://www.abhyast.com/abhyastcom/post/SQL-Server-Fast-Track-vs-Parallel-Data-Warehouse-(PDW).aspx" href="http://www.abhyast.com/abhyastcom/post/SQL-Server-Fast-Track-vs-Parallel-Data-Warehouse-(PDW).aspx"&gt;http://www.abhyast.com/abhyastcom/post/SQL-Server-Fast-Track-vs-Parallel-Data-Warehouse-(PDW).aspx&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;Adam Jorgensen’s post: &lt;a title="http://adamjorgensen.wordpress.com/2010/07/29/in-depth-parallel-data-warehousing-pdw/" href="http://adamjorgensen.wordpress.com/2010/07/29/in-depth-parallel-data-warehousing-pdw/"&gt;http://adamjorgensen.wordpress.com/2010/07/29/in-depth-parallel-data-warehousing-pdw/&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;Richard Waymire’s blog is useful: &lt;a title="http://www.richardwaymire.com/wordpress/" href="http://www.richardwaymire.com/wordpress/"&gt;http://www.richardwaymire.com/wordpress/&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;Joe Chang has a fairly detailed post: &lt;a title="http://sqlblog.com/blogs/joe_chang/archive/2011/03/10/parallel-data-warehouse.aspx" href="http://sqlblog.com/blogs/joe_chang/archive/2011/03/10/parallel-data-warehouse.aspx"&gt;http://sqlblog.com/blogs/joe_chang/archive/2011/03/10/parallel-data-warehouse.aspx&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;I will continue to gather links and post them here as I come across them. In the meantime, I hope the above help you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10158957" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/arvindsh/archive/tags/PDW/">PDW</category></item><item><title>SQLDiag Configuration Tool released</title><link>http://blogs.msdn.com/b/arvindsh/archive/2011/04/28/sqldiag-configuration-tool-released.aspx</link><pubDate>Thu, 28 Apr 2011 04:27:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10158936</guid><dc:creator>Arvindsh</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/arvindsh/rsscomments.aspx?WeblogPostID=10158936</wfw:commentRss><comments>http://blogs.msdn.com/b/arvindsh/archive/2011/04/28/sqldiag-configuration-tool-released.aspx#comments</comments><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;My colleague and friend, boB Taylor (the spelling is not a typo – please visit &lt;a href="http://www.opsvault.com/meet-our-contributors"&gt;http://www.opsvault.com/meet-our-contributors&lt;/a&gt; and see why) has recently released a GUI tool which allows you to configure the XML files required for SQLDiag to capture specific types of events, counters etc.) &lt;/p&gt;  &lt;p&gt;Download it from &lt;a href="http://sdct.codeplex.com"&gt;http://sdct.codeplex.com&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Please review, test, blog about it and provide feedback as you see fit.&lt;/p&gt;  &lt;p&gt;bOB blogs at OpsVault. His posts can be easily retrieved from &lt;a href="http://www.opsvault.com/author/bobtay/"&gt;http://www.opsvault.com/author/bobtay/&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10158936" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/arvindsh/archive/tags/SQL+Performance/">SQL Performance</category></item><item><title>OPTION(RECOMPILE) redux (a.k.a. Parameter Embedding Optimization not working)</title><link>http://blogs.msdn.com/b/arvindsh/archive/2011/02/15/option-recompile-redux-a-k-a-parameter-embedding-optimization-not-working.aspx</link><pubDate>Tue, 15 Feb 2011 09:21:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10129453</guid><dc:creator>Arvindsh</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/arvindsh/rsscomments.aspx?WeblogPostID=10129453</wfw:commentRss><comments>http://blogs.msdn.com/b/arvindsh/archive/2011/02/15/option-recompile-redux-a-k-a-parameter-embedding-optimization-not-working.aspx#comments</comments><description>&lt;p&gt;A long time ago, I had &lt;a href="http://blogs.msdn.com/b/arvindsh/archive/2008/12/19/t-sql-anti-pattern-of-the-day-all-in-one-queries.aspx"&gt;blogged about the perils&lt;/a&gt; of ‘wildcard’ query patterns. As a response to one of the comments in that post, I learnt about a new optimization introduced in SQL 2008 wherein the OPTION (RECOMPILE) hint would help in these kind of cases. Ever since then, I had used this in some customers; but recently, I found that on SQL 2008 R2 and even in SQL 2008 SP1, the behavior was not working correctly.&lt;/p&gt;  &lt;p&gt;Recently, I found the reason for this issue from some other sites, and I also found the official name for this enhancement: Parameter Embedding Optimization. It turns out that, based on some bug reports, this optimization was disabled starting in SQL 2008 CU4 (and also disabled in SQL 2008 R2 RTM). The fixes for the issue are in SQL 2008 SP1 CU5 and SQL 2008 R2 CU5 respectively.&lt;/p&gt;  &lt;p&gt;Here are the links which cover the details, and I hope they help you!&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href="http://blogs.msdn.com/b/grahamk/archive/2009/11/18/changed-behaviour-of-option-recompile-syntax-in-sql-server-2008-sp1-cumulative-update-5.aspx"&gt;http://blogs.msdn.com/b/grahamk/archive/2009/11/18/changed-behaviour-of-option-recompile-syntax-in-sql-server-2008-sp1-cumulative-update-5.aspx&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href="http://support.microsoft.com/kb/976603/"&gt;http://support.microsoft.com/kb/976603/&lt;/a&gt; (FIX: Different results may be returned when you concurrently run the same query with the RECOMPILE option in SQL Server 2008)&lt;/li&gt;    &lt;li&gt;&lt;a href="http://www.sommarskog.se/dyn-search-2005.html"&gt;http://www.sommarskog.se/dyn-search-2005.html&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10129453" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/arvindsh/archive/tags/SQL+Performance/">SQL Performance</category></item><item><title>window.open without address bar</title><link>http://blogs.msdn.com/b/arvindsh/archive/2011/02/09/window-open-without-address-bar.aspx</link><pubDate>Wed, 09 Feb 2011 06:36:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10126613</guid><dc:creator>Arvindsh</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/arvindsh/rsscomments.aspx?WeblogPostID=10126613</wfw:commentRss><comments>http://blogs.msdn.com/b/arvindsh/archive/2011/02/09/window-open-without-address-bar.aspx#comments</comments><description>&lt;p&gt;Recently we were struggling with trying to figure out how to suppress the address bar for a popup window opened using JavaScript’s window.open method. Normally, there is an option there which allows you to specify ‘location=no’ and the address bar is expected to be hidden. However, no matter what we tried, this did not work for us.&lt;/p&gt;  &lt;p&gt;Later on I chanced upon an Internet Explorer setting which actually controls the final display. There is a security setting ‘Allow websites to open windows without address or status bar’:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-00-64-64-metablogapi/2555.image_5F00_72738B03.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; margin: ; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-00-64-64-metablogapi/8400.image_5F00_thumb_5F00_2B7A4239.png" width="244" height="220" /&gt;&lt;/a&gt;&lt;/p&gt;    &lt;p&gt;This setting needs to be set to ‘Enable’ for the respective zone (such as Trusted sites etc.) for the address bar display to be suppressed.&lt;/p&gt;  &lt;p&gt;Hope this hint helps!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10126613" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/arvindsh/archive/tags/Miscellaneous/">Miscellaneous</category></item><item><title>LinkedIn Group for Premier Field Engineering India</title><link>http://blogs.msdn.com/b/arvindsh/archive/2011/02/01/linkedin-group-for-premier-field-engineering-india.aspx</link><pubDate>Tue, 01 Feb 2011 04:15:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10122925</guid><dc:creator>Arvindsh</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/arvindsh/rsscomments.aspx?WeblogPostID=10122925</wfw:commentRss><comments>http://blogs.msdn.com/b/arvindsh/archive/2011/02/01/linkedin-group-for-premier-field-engineering-india.aspx#comments</comments><description>&lt;p&gt;My team, Premier Field Engineering (India) recently created a group on LinkedIn (&lt;a title="http://www.linkedin.com/groups?gid=3761475&amp;amp;trk=hb_side_g" href="http://www.linkedin.com/groups?gid=3761475&amp;amp;trk=hb_side_g"&gt;http://www.linkedin.com/groups?gid=3761475&amp;amp;trk=hb_side_g&lt;/a&gt;) which we will use to share our experiences, upcoming offerings, career opportunities and more. Membership is open to all, so I welcome you to take this opportunity to connect with us!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10122925" width="1" height="1"&gt;</description></item><item><title>DB Mirroring Tips</title><link>http://blogs.msdn.com/b/arvindsh/archive/2010/12/22/db-mirroring-tips.aspx</link><pubDate>Wed, 22 Dec 2010 04:45:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10107964</guid><dc:creator>Arvindsh</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/arvindsh/rsscomments.aspx?WeblogPostID=10107964</wfw:commentRss><comments>http://blogs.msdn.com/b/arvindsh/archive/2010/12/22/db-mirroring-tips.aspx#comments</comments><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Here are some essential things to consider when trying to tune a DB mirroring setup. They revolve round the following concepts:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;The effect of Virtual Log Files (VLFs) on recovery and therefore failover times&lt;/li&gt;    &lt;li&gt;The interplay (or lack thereof) between mirroring and some other SQL Server engine features&lt;/li&gt;    &lt;li&gt;Network speed and issues&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Be on the latest available Service Pack and Cumulative Update for SQL 2005 or 2008. There are many issues related to mirroring which are fixed in these updates. Some of the key ones which I have seen are given below.&lt;/li&gt;    &lt;/ol&gt;&lt;ul&gt;     &lt;li&gt;&lt;a title="http://support.microsoft.com/kb/947462/" href="http://support.microsoft.com/kb/947462/"&gt;http://support.microsoft.com/kb/947462/&lt;/a&gt; (FIX: Error message when you start a database mirroring session in SQL Server 2005: &amp;quot;Communications to the remote server instance 'TCP://&amp;lt;ComputerName&amp;gt;:&amp;lt;PortNumber&amp;gt;' failed before database mirroring was fully started&amp;quot;)&lt;/li&gt;      &lt;li&gt;&lt;a title="http://support.microsoft.com/kb/979042" href="http://support.microsoft.com/kb/979042"&gt;http://support.microsoft.com/kb/979042&lt;/a&gt; (FIX: The principal database is not recovered if the database has a large number of virtual log files in SQL Server 2005 or in SQL Server 2008)&lt;/li&gt;      &lt;li&gt;&lt;a href="http://support.microsoft.com/kb/978791"&gt;http://support.microsoft.com/kb/978791&lt;/a&gt; (FIX: Data loss may occur if the database mirroring thread stops responding for a long time during an automatic failover process in SQL Server 2005 or in SQL Server 2008)&lt;/li&gt;      &lt;li&gt;&lt;a href="http://support.microsoft.com/kb/982933"&gt;http://support.microsoft.com/kb/982933&lt;/a&gt; (Error message when you shrink data files on principal in a Database Mirroring for two SQL Server 2005 servers&lt;/li&gt;      &lt;li&gt;&lt;a href="http://support.microsoft.com/kb/983500/"&gt;http://support.microsoft.com/kb/983500&lt;/a&gt; (FIX: The role switch is delayed when a mirroring automatic failover occurs in SQL Server 2005)        &lt;br /&gt;        &lt;br /&gt;&lt;/li&gt;   &lt;/ul&gt;    &lt;ul&gt;&lt;li&gt;The remedial steps for this set of problems revolves round fixing the Virtual Log File Fragmentation issues, such as what is described by Kimberly Tripp. The relevant blog posts are:&lt;/li&gt;    &lt;/ul&gt;&lt;ul&gt;     &lt;li&gt;&lt;a title="http://www.sqlskills.com/blogs/kimberly/post/8-Steps-to-better-Transaction-Log-throughput.aspx" href="http://www.sqlskills.com/blogs/kimberly/post/8-Steps-to-better-Transaction-Log-throughput.aspx"&gt;http://www.sqlskills.com/blogs/kimberly/post/8-Steps-to-better-Transaction-Log-throughput.aspx&lt;/a&gt;&lt;/li&gt;      &lt;li&gt;&lt;a title="http://www.sqlskills.com/BLOGS/PAUL/post/Bug-log-file-growth-broken-for-multiples-of-4GB.aspx" href="http://www.sqlskills.com/BLOGS/PAUL/post/Bug-log-file-growth-broken-for-multiples-of-4GB.aspx"&gt;http://www.sqlskills.com/BLOGS/PAUL/post/Bug-log-file-growth-broken-for-multiples-of-4GB.aspx&lt;/a&gt;&lt;/li&gt;      &lt;li&gt;&lt;a title="http://www.sqlskills.com/BLOGS/KIMBERLY/post/Transaction-Log-VLFs-too-many-or-too-few.aspx" href="http://www.sqlskills.com/BLOGS/KIMBERLY/post/Transaction-Log-VLFs-too-many-or-too-few.aspx"&gt;http://www.sqlskills.com/BLOGS/KIMBERLY/post/Transaction-Log-VLFs-too-many-or-too-few.aspx&lt;/a&gt;        &lt;br /&gt;&lt;/li&gt;   &lt;/ul&gt;    &lt;ul&gt;&lt;li&gt;You should also be aware of the article in &lt;a title="http://support.microsoft.com/kb/937531" href="http://support.microsoft.com/kb/937531"&gt;http://support.microsoft.com/kb/937531&lt;/a&gt; (The shrink operation is not duplicated on the mirror database when you use database mirroring in SQL Server 2005)      &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;If you are using MSDTC transactions with a database which is mirrored, please consider fact that it is not officially supported, as the below articles.&lt;/li&gt;    &lt;/ul&gt;&lt;ul&gt;     &lt;li&gt;&lt;a title="http://support.microsoft.com/kb/926150" href="http://support.microsoft.com/kb/926150"&gt;http://support.microsoft.com/kb/926150&lt;/a&gt; (Using database mirroring for cross-database transactions or distributed transactions is not supported in SQL Server)&lt;/li&gt;      &lt;li&gt;&lt;a title="http://support.microsoft.com/kb/977350" href="http://support.microsoft.com/kb/977350"&gt;http://support.microsoft.com/kb/977350&lt;/a&gt; (FIX: Assertion failures occur in SQL Server 2005 when a Distributed Transaction Coordinator (DTC) transaction is rolled back while that transaction is being commited by the DTC)&lt;/li&gt;   &lt;/ul&gt;    &lt;ul&gt;&lt;li&gt;For the networking side, the key things to consider are given below.&lt;/li&gt;    &lt;/ul&gt;&lt;ul&gt;     &lt;li&gt;Review the effect of network latency on mirroring throughput. This is described in the white paper at &lt;a title="http://technet.microsoft.com/en-us/library/cc917680.aspx" href="http://technet.microsoft.com/en-us/library/cc917680.aspx"&gt;http://technet.microsoft.com/en-us/library/cc917680.aspx&lt;/a&gt;&lt;/li&gt;      &lt;li&gt;If you are facing issues with mirroring being disconnected very frequently, especially under load, check if your NIC card device driver needs updating.&lt;/li&gt;      &lt;li&gt;In addition, review and if required, disable, the TCP Chimney feature in Windows 2003 SP2. More details can be found at &lt;a title="http://blogs.msdn.com/b/psssql/archive/2008/10/01/windows-scalable-networking-pack-possible-performance-and-concurrency-impacts-to-sql-server-workloads.aspx" href="http://blogs.msdn.com/b/psssql/archive/2008/10/01/windows-scalable-networking-pack-possible-performance-and-concurrency-impacts-to-sql-server-workloads.aspx"&gt;http://blogs.msdn.com/b/psssql/archive/2008/10/01/windows-scalable-networking-pack-possible-performance-and-concurrency-impacts-to-sql-server-workloads.aspx&lt;/a&gt;&lt;/li&gt;   &lt;/ul&gt;   &lt;p&gt;I will keep adding to this post as I receive additional information. In the meantime, I hope you stay informed and therefore hopefully avoid known issues with mirroring.&lt;/p&gt;  &lt;p&gt;If you like this post, please take a few seconds to leave a comment and do rate the post!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10107964" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/arvindsh/archive/tags/SQL+High+Availability/">SQL High Availability</category></item><item><title>Licensing changes in SQL Server 2008 R2</title><link>http://blogs.msdn.com/b/arvindsh/archive/2010/09/07/licensing-changes-in-sql-server-2008-r2.aspx</link><pubDate>Tue, 07 Sep 2010 06:01:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10058716</guid><dc:creator>Arvindsh</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/arvindsh/rsscomments.aspx?WeblogPostID=10058716</wfw:commentRss><comments>http://blogs.msdn.com/b/arvindsh/archive/2010/09/07/licensing-changes-in-sql-server-2008-r2.aspx#comments</comments><description>&lt;p&gt;In case you are not aware, there have been some significant licensing changes in the SQL 2008 R2 release, especially with the introduction of the DataCenter edition as the top-of-line edition. SQL Books Online documents the facts, as always, but sometimes it’s convenient to just understand what are the deltas. Towards this, I was made aware of the following article from Directions on Microsoft:&lt;/p&gt;  &lt;p&gt;&lt;a title="http://www.directionsonmicrosoft.com/samples/Licensing_SQL_Server_2008.pdf" href="http://www.directionsonmicrosoft.com/samples/Licensing_SQL_Server_2008.pdf"&gt;http://www.directionsonmicrosoft.com/samples/Licensing_SQL_Server_2008.pdf&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;This article contains a nice tabular summary of the facts. I found it useful, and I hope you do as well!&lt;/p&gt;  &lt;p&gt;Many thanks to the folks at &lt;a href="http://www.directionsonmicrosoft.com/" target="_blank"&gt;Directions on Microsoft&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10058716" width="1" height="1"&gt;</description></item><item><title>Be Aware: Training Resource</title><link>http://blogs.msdn.com/b/arvindsh/archive/2010/09/01/be-aware-training-resource.aspx</link><pubDate>Wed, 01 Sep 2010 08:58:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10056712</guid><dc:creator>Arvindsh</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/arvindsh/rsscomments.aspx?WeblogPostID=10056712</wfw:commentRss><comments>http://blogs.msdn.com/b/arvindsh/archive/2010/09/01/be-aware-training-resource.aspx#comments</comments><description>&lt;p&gt;Recently, I was informed about some very useful resources (some free webcasts and information about SQL performance tuning related training) at &lt;a href="http://www.sqlworkshops.com"&gt;www.sqlworkshops.com&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;That initiative is headed by Ramesh Meyyappan, a former Microsoft employee who worked on the SQL Server Product team. I found Ramesh’s guidance insightful and refreshing. I would urge you to visit the site and decide for yourself.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10056712" width="1" height="1"&gt;</description></item><item><title>PowerGUI tip</title><link>http://blogs.msdn.com/b/arvindsh/archive/2010/08/02/powergui-tip.aspx</link><pubDate>Mon, 02 Aug 2010 08:13:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10044814</guid><dc:creator>Arvindsh</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/arvindsh/rsscomments.aspx?WeblogPostID=10044814</wfw:commentRss><comments>http://blogs.msdn.com/b/arvindsh/archive/2010/08/02/powergui-tip.aspx#comments</comments><description>&lt;p&gt;I recently faced a situation where the free space on my laptop disk was suddenly depleted. After some searching, I found that PowerGUI keeps its scripteditor logs at “C:\Users\&amp;lt;username&amp;gt;\AppData\Local\Quest Software\PowerGUI\Logs”. If you use PowerGUI a lot, you might experience a slow but steady exhaustion of disk space due to seemingly orphaned log files in that folder.&lt;/p&gt;  &lt;p&gt;If you are like me, you may want to keep cleaning out this folder to keep space available.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10044814" width="1" height="1"&gt;</description></item><item><title>Reconstructing the SQL Server Best Practices Toolbox</title><link>http://blogs.msdn.com/b/arvindsh/archive/2010/06/26/reconstructing-the-sql-server-best-practices-toolbox.aspx</link><pubDate>Sat, 26 Jun 2010 17:55:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10031054</guid><dc:creator>Arvindsh</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/arvindsh/rsscomments.aspx?WeblogPostID=10031054</wfw:commentRss><comments>http://blogs.msdn.com/b/arvindsh/archive/2010/06/26/reconstructing-the-sql-server-best-practices-toolbox.aspx#comments</comments><description>&lt;p&gt;Till some time ago, I used to direct my customers to &lt;a title="http://msdn.microsoft.com/en-us/sqlserver/bb671432.aspx" href="http://msdn.microsoft.com/en-us/sqlserver/bb671432.aspx"&gt;http://msdn.microsoft.com/en-us/sqlserver/bb671432.aspx&lt;/a&gt; for obtaining scripts which use the DMVs in SQL 2005/2008 to retrieve very commonly used performance troubleshooting related information. Those scripts were contributed by Microsoft’s &lt;a href="http://sqlcat.com/Default.aspx" target="_blank"&gt;SQL CAT team&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;Unfortunately that link no longer works correctly. Luckily though the scripts are still available at different places on Script Center, and here is quick compilation of those while the original link is fixed.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;SQLOS / Execution Model&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="List SQLOS Execution Model Information" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/b09304be-8337-41c3-9deb-6b6943e3bbcd"&gt;List SQLOS Execution Model Information&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="List Runnable Queues" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/b8532ebf-23e6-4763-b15b-5d83198e7019"&gt;List Runnable Queues&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="List Scheduler Wait List Information" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/87ec2560-d7dc-4a24-83dc-826fd0148453"&gt;List Scheduler Wait List Information&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Wait Statistics&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="List Top Wait Types for a Workload" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/86886b7f-8f75-4052-99d1-ef8ebd910a88"&gt;List Top Wait Types for a Workload&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="Retrieve Waitstat Snapshots" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/8c90bd2e-9def-4f44-bce4-e5dae4d86f71"&gt;Retrieve Waitstat Snapshots&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="Compare Signal Waits and Resource Waits" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/dbb09e5b-c031-4a61-bbe5-6a17fa2a767e"&gt;Compare Signal Waits and Resource Waits&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="List Statements from a Specified Waiter List" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/94836d5d-a79d-46a0-815a-ac4e87140338"&gt;List Statements from a Specified Waiter List&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Query Compilation&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="Determine CPU Resources Required for Optimization" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/2218d0bd-d577-4be4-bdca-0df7e42bf002"&gt;Determine CPU Resources Required for Optimization&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="List Recompiled Statements" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/9456cd4d-85bb-44b7-97d3-455e1a5343bb"&gt;List Recompiled Statements&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="Compare Single-Use and Re-Used Plans" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/c27cc874-ed3a-4020-927e-73d22ef11c34"&gt;Compare Single-Use and Re-Used Plans&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Query Statistics&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="Retrieve Statements with the Highest Plan Re-Use Counts" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/1d344de4-6128-48c6-900f-7729fd025b18"&gt;Retrieve Statements with the Highest Plan Re-Use Counts&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="Retrieve Statements with the Lowest Plan Re-Use Counts" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/40fb29cb-2bd7-430b-867c-87613a227273"&gt;Retrieve Statements with the Lowest Plan Re-Use Counts&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="List Statements with the Highest Execution Counts" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/58440d03-ce97-4a4d-8563-b24ec2498df9"&gt;List Statements with the Highest Execution Counts&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/f3a4dd6d-c521-4fc6-b047-bfad68f59556"&gt;List Statements By Input/Output Usage&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="List Statements With the Highest Average CPU Time" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/7a29856b-747d-44aa-b639-3f15310de69d"&gt;List Statements With the Highest Average CPU Time&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Query Execution&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="Retrieve a SQL Statement with a Specified .SQL_Handle" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/4df31ad5-227c-495d-9c6c-d91d047e89ee"&gt;Retrieve a SQL Statement with a Specified .SQL_Handle&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="Retrieve SQL Text and XML Plans" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/7f8ecf25-5da7-4748-b655-3f680cca08ab"&gt;Retrieve SQL Text and XML Plans&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="List Currently-Executing Statements" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/733fcb15-228d-4fea-a015-711116e8318e"&gt;List Currently-Executing Statements&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="List Real Time Tempdb Task Usage" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/300762d1-86d4-4242-9843-fc868686f4f8"&gt;List Real Time Tempdb Task Usage&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="List Real-Time Tempdb Statements" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/8c7e0ce4-8399-4422-85fe-7da6c2432a6d"&gt;List Real-Time Tempdb Statements&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="List Currently-Executing Parallel Plans" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/a5c905ec-a857-4918-8f9f-75f0ff59eb76"&gt;List Currently-Executing Parallel Plans&lt;/a&gt; (the script at this link is actually the script for the next item :-))&lt;/p&gt;  &lt;p&gt;&lt;a title="List Cached Plans Where Worker Time Exceeds Elapsed Time" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/374616c7-f608-44f9-88bc-4120a37444a8"&gt;List Cached Plans Where Worker Time Exceeds Elapsed Time&lt;/a&gt; (the script at this link is actually the script for the previous item :-))&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;I/O and Buffer cache&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="Calculate Average Stalls" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/04f3b143-7a84-462e-bb5d-8373c5bde88e"&gt;Calculate Average Stalls&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="Retrieve Buffer Counts by Object and Index" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/d6800e08-40c1-4b6b-8b1a-ea52fe028902"&gt;Retrieve Buffer Counts by Object and Index&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Indexes&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="List Indexes With the Most Contention" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/e909e469-3f9c-4dc5-92db-3d10bd4373d8"&gt;List Indexes With the Most Contention&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="Retrieve Tables, Indexes, Files, and File Groups Information" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/c973df58-d975-4f4c-aae0-07b31ed7d832"&gt;Retrieve Tables, Indexes, Files, and File Groups Information&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="Determine Index Cost Benefits" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/3fd9c233-3792-41aa-91b9-6102c6da9f35"&gt;Determine Index Cost Benefits&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="Retrieve Object and Index Fragmentation Information" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/e99eb562-3c7f-40a6-8d87-6953d297b785"&gt;Retrieve Object and Index Fragmentation Information&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="Analyze Index Statistics" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/0c5a83a8-6824-4e96-a9a2-9485d3d7e534"&gt;Analyze Index Statistics&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="Identify Missing Indexes" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/abf03365-3605-407f-a0ac-8e4e219947bf"&gt;Identify Missing Indexes&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="Retrieve Index Usage Statistics" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/c95fa3b0-c707-4074-9ecc-bd8f755b1999"&gt;Retrieve Index Usage Statistics&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="Retrieve Indexes Not Used Since the Last Recycle Time" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/a924ff38-adf0-4287-a22a-bb4e6c5618db"&gt;Retrieve Indexes Not Used Since the Last Recycle Time&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="List Rarely-Used Indexes" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/72369ef6-38e7-4ead-a774-4a970f13ad45"&gt;List Rarely-Used Indexes&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Locking and Blocking&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="Report Blocker and Waiter SQL Statements" href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/62e9f21f-8da5-4701-920a-08016271a048"&gt;Report Blocker and Waiter SQL Statements&lt;/a&gt;&lt;strong&gt;&amp;#160;&lt;/strong&gt;(sp_block_info)&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;I hope this compilation is useful to you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10031054" width="1" height="1"&gt;</description></item><item><title>Performance Dashboard Reports in SQL Server 2008</title><link>http://blogs.msdn.com/b/arvindsh/archive/2010/06/25/performance-dashboard-reports-in-sql-server-2008.aspx</link><pubDate>Fri, 25 Jun 2010 07:33:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10030023</guid><dc:creator>Arvindsh</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/arvindsh/rsscomments.aspx?WeblogPostID=10030023</wfw:commentRss><comments>http://blogs.msdn.com/b/arvindsh/archive/2010/06/25/performance-dashboard-reports-in-sql-server-2008.aspx#comments</comments><description>&lt;p&gt;While Activity Monitor in SQL 2008 does a good job depicting waiting tasks, top N queries etc.; many DBAs are simply too familiar with the erstwhile SQL Server 2005 Performance Dashboard Reports. While officially Microsoft does not support the usage of these reports with SQL 2008, I found two links of interest which will help you get these reports up and running in 2008. But please keep in mind: this is AS-IS!&lt;/p&gt;
&lt;p&gt;Link 1: &lt;a href="http://blogs.msdn.com/b/vascov/archive/2008/09/30/using-performance-dashboard-with-sql-server-2008.aspx" title="http://blogs.msdn.com/b/vascov/archive/2008/09/30/using-performance-dashboard-with-sql-server-2008.aspx"&gt;http://blogs.msdn.com/b/vascov/archive/2008/09/30/using-performance-dashboard-with-sql-server-2008.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Link 2: &lt;a href="http://blogs.msdn.com/sqlrem/archive/2007/03/07/Performance-Dashboard-Reports-Now-Available.aspx"&gt;http://blogs.msdn.com/sqlrem/archive/2007/03/07/Performance-Dashboard-Reports-Now-Available.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You have to perform BOTH the fixes to get the reports working. In Link #2, the specific place to look for is a comment which says &amp;lsquo;line number 3271&amp;rsquo;. &lt;/p&gt;
&lt;p&gt;DO make a BACKUP of your recent_cpu.rdl file before you attempt the fix in Link #2.&lt;/p&gt;
&lt;p&gt;[Update 26 Jun 2010] In addition, if you get an error related to an "overflow at runtime" then refer to the other fix in Link #2 above, the comment says 'Because DATEDIFF returns and int once'. Look for the fix from David.&lt;/p&gt;
&lt;p&gt;Hope this is useful to some folks out there! If you liked the post, please do leave a comment and / or rate the post.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10030023" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/arvindsh/archive/tags/SQL+Performance/">SQL Performance</category></item><item><title>Windows Mobile Device Center: missing Icons</title><link>http://blogs.msdn.com/b/arvindsh/archive/2010/06/24/windows-mobile-device-center-activate-information-rights-management.aspx</link><pubDate>Thu, 24 Jun 2010 09:14:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10029489</guid><dc:creator>Arvindsh</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/arvindsh/rsscomments.aspx?WeblogPostID=10029489</wfw:commentRss><comments>http://blogs.msdn.com/b/arvindsh/archive/2010/06/24/windows-mobile-device-center-activate-information-rights-management.aspx#comments</comments><description>&lt;p&gt;I recently acquired a new Windows Mobile phone and was using the Windows Mobile Device Center to set up the partnership with my laptop. In the process, I came to a stage where I had to activate IRM as per the steps in &lt;a title="Activate Information Rights Management by using ActiveSync" href="http://www.microsoft.com/windowsmobile/en-us/help/v6-0/activate-information-rights-management-using-activesync-touch.aspx"&gt;Activate Information Rights Management by using ActiveSync&lt;/a&gt;. &lt;/p&gt;  &lt;p&gt;I entered my domain credentials and then pressed the button, but what I got back was a rather cryptic error exception with the message: “The operation completed successfully”. Successfully?&lt;/p&gt;  &lt;p&gt;Luckily this is was a .NET exception wrapping up the underlying Win32 exception, and the .NET runtime displayed the stack trace:&lt;/p&gt;  &lt;p&gt;System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&amp;gt; System.ComponentModel.Win32Exception: The operation completed successfully&lt;/p&gt;  &lt;p&gt;at Microsoft.WindowsMobile.ImageUtils.LoadIcon(String fileName, IconSize iconSize)&lt;/p&gt;  &lt;p&gt;at Microsoft.WindowsMobile.DeviceManager.Partnership.GetImage(IconSize iconSize)&lt;/p&gt;  &lt;p&gt;at Microsoft.WindowsMobile.DeviceCenter.ProgressControl.set_WorkType(Work value)&lt;/p&gt;  &lt;p&gt;at Microsoft.WindowsMobile.DeviceCenter.ProgressControl..ctor(String titleText, String descriptionText, Work workType, OkCancelControl okCancelControl)&lt;/p&gt;  &lt;p&gt;at Microsoft.WindowsMobile.DeviceCenter.Six.IrmActivationControl.SaveContentSettings(MainHost mainHost, AnimatedControl outgoingControl, String errorTitle, Boolean removeControl)&lt;/p&gt;  &lt;p&gt;at Microsoft.WindowsMobile.DeviceCenter.Six.IrmActivationControl.OnOk(Object sender, OkClickedEventArgs e)&lt;/p&gt;  &lt;p&gt;at Microsoft.WindowsMobile.DeviceCenter.OkCancelControl.ClickSave(Object sender, EventArgs e)&lt;/p&gt;  &lt;p&gt;at Microsoft.WindowsMobile.DeviceCenter.OkCancelControlButton.button_Click(Object sender, EventArgs e)&lt;/p&gt;  &lt;p&gt;at System.Windows.Forms.Control.OnClick(EventArgs e)&lt;/p&gt;  &lt;p&gt;at System.Windows.Forms.Button.PerformClick()&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;After some debugging with WinDbg, I found that my “sync.ico” file under C:\Users\arvindsh\AppData\Roaming\Microsoft\ActiveSync\Profiles\&amp;lt;XYZPQR&amp;gt; was in some way “corrupt” or “not good”, causing the icon loading to fail and eventually the above exception. So I went ahead and put in a “good” sync.ico file in the above folder, restarted the sync process and then I was able to proceed with IRM activation. It turns out that this icon is used in the animated screen which displays when IRM is being activated, and that was the reason why the un-readable icon was so critical and caused the above exception.&lt;/p&gt;  &lt;p&gt;I hope this esoteric tip is useful to someone out there! If you like it, please leave a comment and / or rate this post, please!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10029489" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/arvindsh/archive/tags/Windows+Mobile/">Windows Mobile</category></item><item><title>Web installer for obtaining / installing debugging tools (WinDbg)</title><link>http://blogs.msdn.com/b/arvindsh/archive/2010/05/28/web-installer-for-obtaining-installing-debugging-tools-windbg.aspx</link><pubDate>Fri, 28 May 2010 13:16:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10016871</guid><dc:creator>Arvindsh</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/arvindsh/rsscomments.aspx?WeblogPostID=10016871</wfw:commentRss><comments>http://blogs.msdn.com/b/arvindsh/archive/2010/05/28/web-installer-for-obtaining-installing-debugging-tools-windbg.aspx#comments</comments><description>&lt;p&gt;Recently there has been a change to the way you obtain downloads of the WinDbg family of Debugging Tools for Windows. The classic link for the direct download of these installers was &lt;a title="http://www.microsoft.com/whdc/devtools/debugging/default.mspx. " href="http://www.microsoft.com/whdc/devtools/debugging/default.mspx. "&gt;http://www.microsoft.com/whdc/devtools/debugging/default.mspx. &lt;/a&gt;Unfortunately, that link only directly makes available the older versions of the debugger (circa March 2009.) For the latest debugger it recommends you download the Windows Development Kit, which is around 700MB in size.&lt;/p&gt;  &lt;p&gt;Relief is at hand, though: there is a Web installer for the WinSDK which allows you to just select those items of choice, such as the Debugging Tools for Windows. The link for the SDK is at &lt;a title="http://msdn.microsoft.com/en-us/windows/bb980924.aspx" href="http://msdn.microsoft.com/en-us/windows/bb980924.aspx"&gt;http://msdn.microsoft.com/en-us/windows/bb980924.aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Do note that, this will INSTALL the debugging tools (which is not a bad thing, you can later XCOPY it to your target server) to the default location such as “C:\Program Files\Debugging Tools for Windows (x64)” (in my case this is the path, as I’m using x64 OS.) But it does help save some download time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10016871" width="1" height="1"&gt;</description></item><item><title>Programmatically Getting version of loaded assembly</title><link>http://blogs.msdn.com/b/arvindsh/archive/2010/05/12/programmatically-getting-version-of-loaded-assembly.aspx</link><pubDate>Wed, 12 May 2010 05:31:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10011410</guid><dc:creator>Arvindsh</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/arvindsh/rsscomments.aspx?WeblogPostID=10011410</wfw:commentRss><comments>http://blogs.msdn.com/b/arvindsh/archive/2010/05/12/programmatically-getting-version-of-loaded-assembly.aspx#comments</comments><description>&lt;p&gt;I recently had to determine at runtime the version of the assembly containing a particular type. After some searching I hit upon this:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;System.Reflection.Assembly.GetAssembly(typeof(MyNamespace.MyType)).GetName().Version.ToString()&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Do note that this will only work if the assembly containing the referenced type is already loaded.&lt;/p&gt;  &lt;p&gt;Updated based on a comment, this also does the job equally well:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;typeof(MyNamespace.MyType).Assembly.GetName().Version.ToString()&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Thank you!&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10011410" width="1" height="1"&gt;</description></item><item><title>Reportviewer and drillthrough</title><link>http://blogs.msdn.com/b/arvindsh/archive/2010/05/12/reportviewer-and-drillthrough.aspx</link><pubDate>Wed, 12 May 2010 05:08:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10011404</guid><dc:creator>Arvindsh</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/arvindsh/rsscomments.aspx?WeblogPostID=10011404</wfw:commentRss><comments>http://blogs.msdn.com/b/arvindsh/archive/2010/05/12/reportviewer-and-drillthrough.aspx#comments</comments><description>&lt;p&gt;I was doing some testing the other day with a ReportViewer control hosted in a WinForms application to do local mode report processing. As some of my reports had a drillthrough / navigation option set, I had setup a set of DrillthroughEventHandler to ensure that the right datasources are bound to the report when the drillthrough reports are invoked.&lt;/p&gt;  &lt;p&gt;The problem in my case was that on specific reports being invoked, the drillthrough would cause an exception inside ReportViewer and it would display: &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;An error occurred during rendering of the report.      &lt;br /&gt;Object reference not set to an instance of an object.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;If this issue was random I would have suspected issues like the one in &lt;a title="http://support.microsoft.com/kb/959595" href="http://support.microsoft.com/kb/959595"&gt;http://support.microsoft.com/kb/959595&lt;/a&gt; but I was able to get this error consistently. On later troubleshooting it was clear that:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;I had two DrillthroughEventHandler setup, but only one for each report should have been ‘active’.&lt;/li&gt;    &lt;li&gt;Unfortunately the way you setup these handlers is you use the following construct:&lt;/li&gt; &lt;/ul&gt;  &lt;blockquote&gt;   &lt;p&gt;reportViewer1.Drillthrough += new DrillthroughEventHandler(CorrectDrillthroughEventHandler)&lt;/p&gt; &lt;/blockquote&gt;  &lt;ul&gt;   &lt;li&gt;Due to the way my code was structured, it turned out I would add the 2nd DrillthroughEventHandler to a report which never really needed it. So I ended up making sure that the unwanted handlers were registered first, just before the call to the registration of the correct one.&lt;/li&gt; &lt;/ul&gt;  &lt;blockquote&gt;   &lt;p&gt;reportViewer1.Drillthrough -= new DrillthroughEventHandler(UnwantedDrillthroughEventHandler);&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Doing this got rid of the exception and things worked fine for me. Of course, be sure that this is not the ONLY reason for the above exception. This was a specific case and I hope it might prove useful for someone who is using Drillthrough and multiple DrillthroughEventHandler.&lt;/p&gt;  &lt;p&gt;If you found this useful, please do leave a comment! And if you are logged in, please do rate the post as well.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10011404" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/arvindsh/archive/tags/ReportViewer/">ReportViewer</category></item><item><title>Replication and Linked Servers</title><link>http://blogs.msdn.com/b/arvindsh/archive/2010/05/10/replication-and-linked-servers.aspx</link><pubDate>Mon, 10 May 2010 06:21:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10010033</guid><dc:creator>Arvindsh</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/arvindsh/rsscomments.aspx?WeblogPostID=10010033</wfw:commentRss><comments>http://blogs.msdn.com/b/arvindsh/archive/2010/05/10/replication-and-linked-servers.aspx#comments</comments><description>&lt;p&gt;&lt;strong&gt;Problem&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;I recently hit upon an issue with trying to setup a linked server to an instance which was already a subscriber to a publication. When replication is setup, it actually creates a remote server for the subscriber. However that ‘remote server’ is not configured for data access. So if you try to use that server, you would end up with:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;Msg 7411, Level 16, State 1, Line 1     &lt;br /&gt;Server 'foosub' is not configured for DATA ACCESS.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Also, any attempt to add a similarly named linked server would fail with the error message below:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;EXEC master.dbo.sp_addlinkedserver @server = N'foosub', @srvproduct=N'SQL Server'&lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;Msg 15028, Level 16, State 1, Procedure sp_addlinkedserver, Line 82     &lt;br /&gt;The server 'foosub' already exists.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;strong&gt;Troubleshooting&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Next, I tried to add a linked server (using the SQL Native Client) but with a different name (MYSRV) but pointing to the right server (foosub). My initial attempt yielded the following error:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;The linked server has been created but failed a connection test. Do you want to keep the linked server? &lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;------------------------------     &lt;br /&gt;ADDITIONAL INFORMATION: &lt;/p&gt;    &lt;p&gt;An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo) &lt;/p&gt;    &lt;p&gt;------------------------------ &lt;/p&gt;    &lt;p&gt;Named Pipes Provider: Could not open a connection to SQL Server [53].      &lt;br /&gt;OLE DB provider &amp;quot;SQLNCLI10&amp;quot; for linked server &amp;quot;MYSVR&amp;quot; returned message &amp;quot;Login timeout expired&amp;quot;.      &lt;br /&gt;OLE DB provider &amp;quot;SQLNCLI10&amp;quot; for linked server &amp;quot;MYSVR&amp;quot; returned message &amp;quot;A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.&amp;quot;. (Microsoft SQL Server, Error: 53) &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;strong&gt;Solution&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;The problem turned out that I had not used the right ‘provider’ string. Here is the script which finally worked for me:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;EXEC master.dbo.sp_addlinkedserver @server = N'MYSVR', @srvproduct=N'foosub', @provider=N'SQLNCLI10', @provstr=N'Server=foosub;Database=master;Trusted_Connection=yes' &lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname = N'MYSVR', @locallogin = NULL , @useself = N'True'     &lt;br /&gt;GO&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Or if you are more comfortable using the SQLOLEDB provider, here’s a sample:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;EXEC master.dbo.sp_addlinkedserver @server = N'MYSRV', @srvproduct=N'SQLOLEDB', @provider=N'SQLOLEDB', @datasrc=N'foosub', @provstr=N'Data Source=foosub;Initial Catalog=master', @catalog=N'master' &lt;/p&gt;    &lt;p&gt;EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname = N'MYSRV', @locallogin = NULL , @useself = N'True'     &lt;br /&gt;GO &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;You can also do this from the SSMS GUI by using '‘SQLNCI10’ or ‘SQLOLEDB’ as the Provider. &lt;/p&gt;  &lt;p&gt;With this, I can subsequently access remote tables as such:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;SELECT * FROM MYSVR.master.sys.tables&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Hope this is useful! Please leave a comment if you find it useful.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10010033" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/arvindsh/archive/tags/SQL+Replication/">SQL Replication</category><category domain="http://blogs.msdn.com/b/arvindsh/archive/tags/SQL+General/">SQL General</category></item><item><title>My Favorite SQL Server Blogs</title><link>http://blogs.msdn.com/b/arvindsh/archive/2010/05/10/my-favorite-sql-server-blogs.aspx</link><pubDate>Mon, 10 May 2010 05:04:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10010019</guid><dc:creator>Arvindsh</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/arvindsh/rsscomments.aspx?WeblogPostID=10010019</wfw:commentRss><comments>http://blogs.msdn.com/b/arvindsh/archive/2010/05/10/my-favorite-sql-server-blogs.aspx#comments</comments><description>&lt;p&gt;At our workshops and during other customer interactions, we are usually asked for links to good blogs and reading materials. Here is a list of my favorite SQL-related blogs, arranged in no specific order.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/craigfr"&gt;http://blogs.msdn.com/craigfr&lt;/a&gt;: Craig Freedman on Query Processing (QP)&lt;/p&gt;  &lt;p&gt;&lt;a title="http://blogs.msdn.com/sqlprogrammability" href="http://blogs.msdn.com/sqlprogrammability"&gt;http://blogs.msdn.com/sqlprogrammability&lt;/a&gt;: Plan cache, parameterization etc.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/sqlserverstorageengine"&gt;http://blogs.msdn.com/sqlserverstorageengine&lt;/a&gt;: Storage Engine&lt;/p&gt;  &lt;p&gt;&lt;a title="http://blogs.msdn.com/repltalk" href="http://blogs.msdn.com/repltalk"&gt;http://blogs.msdn.com/repltalk&lt;/a&gt;: Replication support team&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/psssql"&gt;http://blogs.msdn.com/psssql&lt;/a&gt;: CSS SQL Support team&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.sqlskills.com/blogs/PAUL"&gt;http://www.sqlskills.com/blogs/PAUL&lt;/a&gt;: Paul Randal with lots of tips&lt;/p&gt;  &lt;p&gt;&lt;a title="http://blogs.msdn.com/sqlqueryprocessing/default.aspx" href="http://blogs.msdn.com/sqlqueryprocessing/default.aspx"&gt;http://blogs.msdn.com/sqlqueryprocessing/default.aspx&lt;/a&gt;: Query Processing again&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/sqlserverfaq"&gt;http://blogs.msdn.com/sqlserverfaq&lt;/a&gt;: Other CSS SQL Support team members&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/davidlean"&gt;http://blogs.msdn.com/davidlean&lt;/a&gt;: Good series of posts on SQL Spatial features&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/sql_pfe_blog"&gt;http://blogs.msdn.com/sql_pfe_blog&lt;/a&gt;: Our global SQL PFE team blog&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/robertbruckner"&gt;http://blogs.msdn.com/robertbruckner&lt;/a&gt;: Good information on SSRS&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.sqlcat.com"&gt;http://www.sqlcat.com&lt;/a&gt;: The SQL Server Customer Advisory Team (SQLCAT)&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/sqlreleaseservices"&gt;http://blogs.msdn.com/sqlreleaseservices&lt;/a&gt;: Learn about the latest releases (Service Pack / Cumulative Update) from SQL product team&lt;/p&gt;  &lt;p&gt;I will be updating this list as and when I remember / discover other useful blogs. I hope this is useful for the community!&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10010019" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/arvindsh/archive/tags/SQL+General/">SQL General</category></item><item><title>Hack of the day: Shrink all log files in the instance</title><link>http://blogs.msdn.com/b/arvindsh/archive/2010/02/14/hack-of-the-day-shrink-all-log-files-in-the-instance.aspx</link><pubDate>Sun, 14 Feb 2010 06:03:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9963227</guid><dc:creator>Arvindsh</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/arvindsh/rsscomments.aspx?WeblogPostID=9963227</wfw:commentRss><comments>http://blogs.msdn.com/b/arvindsh/archive/2010/02/14/hack-of-the-day-shrink-all-log-files-in-the-instance.aspx#comments</comments><description>&lt;p&gt;Before I proceed, I will add two disclaimers:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;This script is provided as-is for knowledge purposes. It is not a recommendation, or in any way intended for production usage. No warranty or guarantee is made about the correctness of the script. Use it at your own risk.&lt;/li&gt;    &lt;li&gt;We do not recommend using SHRINK operations on any production databases. This script is provided for demonstration purposes only and that too for test or development servers. For more details, please refer to the series of posts by Paul Randal at &lt;a title="http://www.sqlskills.com/BLOGS/PAUL/category/Shrink.aspx" href="http://www.sqlskills.com/BLOGS/PAUL/category/Shrink.aspx"&gt;http://www.sqlskills.com/BLOGS/PAUL/category/Shrink.aspx&lt;/a&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;With that behind us, here’s what I would like to share. On my laptop I keep running large queries and many times those will grow the log file. Though my database is in simple recovery mode, a single long running transaction can cause this kind of growth.&lt;/p&gt;  &lt;p&gt;So I would sometimes like to reclaim disk space (oh so precious on a laptop!) periodically. I would however not like to shrink the data file, just the log file. (Shrinking data files can cause fragmentation issues to occur.)&lt;/p&gt;  &lt;p&gt;The problem is I normally operate on like 5-6 databases on my laptop. I would not want to use the GUI nor script this manually each time. So here is a simple script-generator, which will generate the necessary DBCC SHRINKFILE commands, which you can then execute as per your requirement.&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;drop table #f     &lt;br /&gt;go      &lt;br /&gt;create table #f (name sysname, fileid int, filename sysname, filegroup sysname null,       &lt;br /&gt;size sysname, maxsize sysname, growth sysname, usage sysname)      &lt;br /&gt;go      &lt;br /&gt;exec sp_MSforeachdb 'declare @s varchar(8000); use ?;       &lt;br /&gt;truncate table #f; INSERT #f (name, fileid, filename, filegroup, size, maxsize, growth, usage )       &lt;br /&gt; exec sp_helpfile       &lt;br /&gt; select @s = ''use ?; DBCC SHRINKFILE ('' + name + '' )'' from #f where usage = ''log only''      &lt;br /&gt; print @s '&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Really crude script, but it does save me some time once in a while.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9963227" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/arvindsh/archive/tags/SQL+General/">SQL General</category></item><item><title>Priority boost details – and why it’s not recommended</title><link>http://blogs.msdn.com/b/arvindsh/archive/2010/01/27/priority-boost-details-and-why-it-s-not-recommended.aspx</link><pubDate>Wed, 27 Jan 2010 07:04:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9953913</guid><dc:creator>Arvindsh</dc:creator><slash:comments>5</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/arvindsh/rsscomments.aspx?WeblogPostID=9953913</wfw:commentRss><comments>http://blogs.msdn.com/b/arvindsh/archive/2010/01/27/priority-boost-details-and-why-it-s-not-recommended.aspx#comments</comments><description>&lt;p&gt;Some times, we see customer has (accidentally or otherwise) enabled the option ‘boost priority’ for SQL Server worker threads. In general Microsoft does not recommend that you set this option. Why?&lt;/p&gt;  &lt;p&gt;First a bit of background. When we set the ‘priority boost’ option using sp_configure what is happening is that after restart the SQL engine will call Win32 API SetPriorityClass() and passes in HIGH_PRIORITY_CLASS (if you are debugger savvy, you can set breakpoints on these APIs and check what is happening – that’s what I did, no source code is required to verify this). From MSDN:&lt;/p&gt;  &lt;p&gt;   &lt;table border="1" cellpadding="0"&gt;&lt;tbody&gt;       &lt;tr&gt;         &lt;td valign="top"&gt;           &lt;p&gt;HIGH_PRIORITY_CLASS&lt;/p&gt;            &lt;p&gt;0x00000080&lt;/p&gt;         &lt;/td&gt;          &lt;td valign="top"&gt;           &lt;p&gt;Process that performs time-critical tasks that must be executed immediately. The threads of the process preempt the threads of normal or idle priority class processes. An example is the Task List, which must respond quickly when called by the user, regardless of the load on the operating system. Use extreme care when using the high-priority class, because a high-priority class application can use nearly all available CPU time.&lt;/p&gt;         &lt;/td&gt;       &lt;/tr&gt;     &lt;/tbody&gt;&lt;/table&gt; &lt;/p&gt;  &lt;p&gt;It then proceeds to call SetThreadPriority() with priority as THREAD_PRIORITY_HIGHEST. For this combination of Process Priority Class and Thread Priority Level, the base priority level of these worker threads is 15. The only ones higher than this in the hierarchy of the OS are any threads which have process priority class set to REALTIME_PRIORITY_CLASS (which should be a very rare case for any application.) this means that many SQL worker threads are running at a priority level which is close to the highest on the system. Hence, they will tend to be selected frequently by kernel dispatcher to execute on the CPU.&lt;/p&gt;  &lt;p&gt;&lt;u&gt;So what is the effect?&lt;/u&gt;&lt;/p&gt;  &lt;p&gt;There is clear precedent in the support teams of priority boost causing unresponsive servers. Sluggish UI / mouse / keyboard movements are other common symptoms if this setting is interfering with the capability of the OS to give (non-SQL) threads their desired quantum on the CPU. On a cluster, having priority boosted SQL threads can cause other critical threads such as the resource monitor’s IsAlive poll thread to timeout, thereby causing unwanted failover. Therefore we do not recommend to set priority boost to 1, &lt;a href="http://support.microsoft.com/kb/319942"&gt;especially in clustered instances&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;&lt;u&gt;Reference links:&lt;/u&gt;&lt;/p&gt;  &lt;p&gt;SetPriorityClass: &lt;a href="http://msdn.microsoft.com/en-us/library/ms686219(VS.85).aspx"&gt;http://msdn.microsoft.com/en-us/library/ms686219(VS.85).aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;SetThreadPriority: &lt;a href="http://msdn.microsoft.com/en-us/library/ms686277(VS.85).aspx"&gt;http://msdn.microsoft.com/en-us/library/ms686277(VS.85).aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Effective Base Priority: &lt;a href="http://msdn.microsoft.com/en-us/library/ms685100(VS.85).aspx"&gt;http://msdn.microsoft.com/en-us/library/ms685100(VS.85).aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Windows Priority levels: &lt;a href="http://www.microsoft.com/mspress/books/sampchap/4354c.aspx"&gt;http://www.microsoft.com/mspress/books/sampchap/4354c.aspx&lt;/a&gt; and &lt;a href="http://www.microsoft.com/mspress/books/sampchap/4354d.aspx"&gt;http://www.microsoft.com/mspress/books/sampchap/4354d.aspx&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9953913" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/arvindsh/archive/tags/SQL+Architecture/">SQL Architecture</category></item></channel></rss>
