<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblog.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>Search results matching tags 'denali', 'DMVs', and 'TempDB'</title><link>http://sqlblog.com/search/SearchResults.aspx?o=DateDescending&amp;tag=denali,DMVs,TempDB&amp;orTags=0</link><description>Search results matching tags 'denali', 'DMVs', and 'TempDB'</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Connect Digest : 2011-05-09</title><link>http://sqlblog.com/blogs/aaron_bertrand/archive/2011/05/09/connect-digest-2011-05-09.aspx</link><pubDate>Mon, 09 May 2011 11:27:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:35253</guid><dc:creator>AaronBertrand</dc:creator><description>&lt;p&gt;This week we're going to look at some issues involving tempdb...&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;b&gt;Provide a tempdb per database&lt;/b&gt; &lt;br&gt;
&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href="http://connect.microsoft.com/SQLServer/feedback/details/281202" title="http://connect.microsoft.com/SQLServer/feedback/details/281202" target="_blank"&gt;#176241 : Eliminating TempDb By Adding Temp Filegroup to Each Database&lt;br&gt;#281202 : multiple tempdb&lt;/a&gt;&lt;/p&gt;&lt;p&gt;For these two requests, I am hoping that the Contained Databases feature (&lt;a href="http://sqlblog.com/blogs/aaron_bertrand/archive/tags/Contained+databases/default.aspx" title="http://sqlblog.com/blogs/aaron_bertrand/archive/tags/Contained+databases/default.aspx" target="_blank"&gt;which I've talked about multiple times&lt;/a&gt;)
 will get to this capability in the version that follows Denali. They've
 taken care of the collation issue, but it would be nice to be able to 
set up different tempdb file / filegroup structures for databases that 
have different demands, and be able to move those files easily - along 
with the user database - without disrupting the rest of the system, or 
requiring a "one size fits all" mentality for tempdb. &lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br&gt;&lt;b&gt;Tempdb on local disk for clusters&lt;/b&gt; &lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href="http://connect.microsoft.com/SQLServer/feedback/details/532759" title="http://connect.microsoft.com/SQLServer/feedback/details/532759" target="_blank"&gt;#488725 : Creating TempDB On Local drives for clusters&lt;br&gt;#532759 : Support local disk location for TempDB in failover cluster installation&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I found it curious that one of these items is marked as "fixed" and the other is marked as "won't fix" - both with no comment. The capability is in Denali CTP1, but as a disclaimer, that doesn't mean it will pass all testing and make it into the final Denali release. If it is (or is not) intended to be in the Denali release, it would be great to get both of these items closed out properly with an official comment from Microsoft.&lt;br&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br&gt;&lt;b&gt;Place version store elsewhere&lt;/b&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="http://connect.microsoft.com/SQLServer/feedback/details/648100" title="http://connect.microsoft.com/SQLServer/feedback/details/648100" target="_blank"&gt;#648100 : ability to put the row version store somewhere other than in tempdb&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Chris Adkin (&lt;a href="http://twitter.com/ChrisAdkin8" title="http://twitter.com/ChrisAdkin8" target="_blank"&gt;twitter&lt;/a&gt;)
 asks for the ability to place version store data into a dedicated 
filegroup for a user database, instead of putting the version store for 
all databases into tempdb.&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br&gt;&lt;b&gt;Allow tempdb to bypass model inheritance&lt;/b&gt; &lt;br&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href="http://connect.microsoft.com/SQLServer/feedback/details/415343" title="http://connect.microsoft.com/SQLServer/feedback/details/415343" target="_blank"&gt;#415343 : Enhancements to model database&lt;/a&gt; &lt;br&gt;&lt;/p&gt;&lt;p&gt;This was a suggestion for a few enhancements to the model database, but one specific item was: "Allow tempdb to bypass inheriting objects and data from model.  I use model as a template for new databases and in some cases tempdb inherits a lot of schema and data that will never be used ... this can affect startup time on a reboot or failover."&amp;nbsp; I'm not sure if I should file a separate Connect item for this suggestion alone. Thoughts anyone? &lt;br&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br&gt;&lt;b&gt;Do not track temp table creation in default trace&lt;/b&gt;&lt;br&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href="http://connect.microsoft.com/SQLServer/feedback/details/542102" title="http://connect.microsoft.com/SQLServer/feedback/details/542102" target="_blank"&gt;#542102 : The default trace should not include creation of temp tables&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Erland Sommarskog described a trace on one of his systems that was very heavily weighted toward the creation of #temp tables. I agree with him that there should be a way to configure the default trace to not bother logging certain types of operations. That said, any suggestions about tracing in any form will likely be routed to the "use XEvents instead" department.&lt;br&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br&gt;&lt;b&gt;Fix bad suggestions about tempdb log files&lt;/b&gt; &lt;br&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href="http://connect.microsoft.com/SQLServer/feedback/details/643742" title="http://connect.microsoft.com/SQLServer/feedback/details/643742" target="_blank"&gt;#643742 : Remove the recommendation of creating multiple log files for tempdb to improve performance&lt;/a&gt; &lt;/p&gt;&lt;p&gt;Sankar Reddy (&lt;a href="http://sankarreddy.com/" title="http://sankarreddy.com/" target="_blank"&gt;blog&lt;/a&gt; | &lt;a href="http://twitter.com/SannkarReddy13" title="http://twitter.com/SannkarReddy13" target="_blank"&gt;twitter&lt;/a&gt;) noted that in &lt;a href="http://msdn.microsoft.com/en-us/library/ms345118.aspx" title="http://msdn.microsoft.com/en-us/library/ms345118.aspx" target="_blank"&gt;this MSDN topic&lt;/a&gt; (admittedly, written for SQL Server 2005), it has a sample with a really bad idea: "This example creates two additional data files for tempdb, each with an initial size of 8 MB, and two log files with an initial size of 1 MB." In addition to scoffing at the recommendation to add log files to improve performance, I'd like to add that creating two additional data log files at only 8 MB (and presumably leaving the autogrowth rate at 10%) has very little chance of having a positive impact on performance. In many cases the results will be even worse - three tiny data files for tempdb? and three even tinier log files? really? Clearly the example was written by someone who assumed that I/O works differently on data files and log files. The only upside to this is that I couldn't find an equivalent document for SQL Server 2008, 2008 R2 or Denali, so they aren't continuing to recommend this bad practice - but this article is still out there for people to "learn" from. Kevin Kline (&lt;a href="http://sqlblog.com/blogs/kevin_kline/default.aspx" title="http://sqlblog.com/blogs/kevin_kline/default.aspx" target="_blank"&gt;blog&lt;/a&gt; | &lt;a href="http://twitter.com/kekline" title="http://twitter.com/kekline" target="_blank"&gt;twitter&lt;/a&gt;) also &lt;a href="http://sqlblog.com/blogs/kevin_kline/archive/2009/06/23/old-performance-tuning-recommendations-die-hard.aspx" title="http://sqlblog.com/blogs/kevin_kline/archive/2009/06/23/old-performance-tuning-recommendations-die-hard.aspx" target="_blank"&gt;commented on this issue in a blog post in 2009&lt;/a&gt;. I find it funny that they fixed his observation about calling SQL Server 2005 "SQL Server 9.0" but didn't bother fixing the code sample.&lt;br&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br&gt;&lt;b&gt;Stop defaulting all data/log files to C:\&lt;/b&gt;&lt;br&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;a href="http://connect.microsoft.com/SQLServer/feedback/details/338763" title="http://connect.microsoft.com/SQLServer/feedback/details/338763" target="_blank"&gt;#338763 : Setup : Encourage better practice for db/log locations&lt;/a&gt;&lt;p&gt;I filed this issue because I found it alarming that, even on a system with gobs and gobs of disks on other drives, all system and user data and log file locations (including tempdb) were pre-populated with C:\Program Files\... If C:\ is the only drive letter found (e.g. on a virtual machine or a workstation), I think the default is fine; however, if other drive letters are found, I think it makes more sense to either prompt for a more obvious choice or to leave the values blank. The time it takes during installation to choose these locations by putting some actual thought into it is much preferred over the time it will take later to correct those choices during a production emergency.&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>