<?xml version="1.0" encoding="iso-8859-1"?><!-- generator="b2evolution/4.1.7" -->
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Torsten Schuessler - Category: SQL Server</title>
		<link>http://www.insidesql.org/blogs/tosc/</link>
		<atom:link rel="self" type="application/rss+xml" href="http://www.insidesql.org/blogs/tosc/?tempskin=_rss2" />
		<description>Torsten Schuessler's SQL-Blog aka tosc</description>
		<language>en-EU</language>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<admin:generatorAgent rdf:resource="http://b2evolution.net/?v=4.1.7"/>
		<ttl>60</ttl>
				<item>
			<title>New Version of SQL Server Maintenance Solution by Ola Hallengren Now Available</title>
			<link>http://www.insidesql.org/blogs/tosc/2013/06/04/new-version-of-sql-server-maintenance-solution</link>
			<pubDate>Tue, 04 Jun 2013 09:41:00 +0000</pubDate>			<dc:creator>Torsten Schuessler</dc:creator>
			<category domain="main">SQL Server</category>			<guid isPermaLink="false">3498@http://www.insidesql.org/blogs/</guid>
						<description>&lt;p&gt;&lt;a href=&quot;http://ola.hallengren.com/&quot; target=&quot;_blank&quot;&gt;Ola Hallengren&lt;/a&gt; and his ongoing work of his &lt;a href=&quot;http://ola.hallengren.com/&quot; target=&quot;_blank&quot;&gt;SQL Server Maintenance Solution - SQL Server Backup, Integrity Check, and Index and Statistics Maintenance&lt;/a&gt;.The solution is based on stored procedures, functions, the sqlcmd utility, and SQL Server Agent jobs.&lt;/p&gt;
&lt;p&gt;Numerous SQL Server community experts recommend the SQL Server Maintenance Solution, which has been a Gold and Silver winner in the &lt;a title=&quot;Awards&quot; href=&quot;http://www.sqlmag.com/content1/topic/2011-sql-server-magazine-editors-community-choice-awards-140830/catpath/awards/showprivate/1/page/9&quot; target=&quot;_blank&quot;&gt;2011&lt;/a&gt; and &lt;a title=&quot;Awards&quot; href=&quot;http://www.sqlmag.com/content1/topic/2010-sql-server-magazine-editors-best-and-community-choice-awards/catpath/sql-server/page/4&quot; target=&quot;_blank&quot;&gt;2010&lt;/a&gt; SQL Server Magazine Awards. I love this tool to perform index maintenance on instances with VLDBs - and the best it&#039;s &lt;span style=&quot;color: #ff0000;&quot;&gt;&lt;strong&gt;&lt;a title=&quot;SQL Server Backup, Integrity Check, and Index and Statistics Maintenance&quot; href=&quot;http://ola.hallengren.com/&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;free&lt;/span&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/span&gt;!&lt;/p&gt;
&lt;p&gt;The new version supports:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;lock timeout settings in DatabaseIntegrityCheck and IndexOptimize&lt;/li&gt;
&lt;li&gt;support for indexes and statistics on objects that are created by internal SQL Server components&lt;/li&gt;
&lt;li&gt;... and so on :-)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It can be uses like this:&lt;/p&gt;
&lt;pre&gt;&lt;code style=&quot;font-size: 12px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;EXECUTE &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;dbo.IndexOptimize &lt;/span&gt;&lt;span style=&quot;color: #434343;&quot;&gt;@Databases &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;AdventureWorks&#039;&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #434343;&quot;&gt;@LockTimeout &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;600&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The new version has some performance optimizations and minor bug fixes&lt;/p&gt;
&lt;p&gt;Download: &lt;a title=&quot;SQL Server Maintenance Solution&quot; href=&quot;http://ola.hallengren.com/scripts/MaintenanceSolution.sql&quot; target=&quot;_blank&quot;&gt;http://ola.hallengren.com/scripts/MaintenanceSolution.sql&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Please feel free to &lt;a href=&quot;http://ola.hallengren.com/contact.html&quot; target=&quot;_blank&quot;&gt;contact&lt;/a&gt; him if you have any questions. And I tell you, Ola will consider it!!!&lt;/p&gt;
&lt;p&gt;I wish you a nice&amp;#160; day,&lt;br /&gt;&lt;a href=&quot;http://feeds2.feedburner.com/TorstenSchuessler&quot; target=&quot;_blank&quot;&gt;tosc&lt;/a&gt;&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;br /&gt;&lt;p&gt;&lt;em&gt;&quot;Try not to become a man of success but rather to become a man of value.&quot;&lt;/em&gt;&lt;br /&gt;Albert Einstein&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p><a href="http://ola.hallengren.com/" target="_blank">Ola Hallengren</a> and his ongoing work of his <a href="http://ola.hallengren.com/" target="_blank">SQL Server Maintenance Solution - SQL Server Backup, Integrity Check, and Index and Statistics Maintenance</a>.The solution is based on stored procedures, functions, the sqlcmd utility, and SQL Server Agent jobs.</p>
<p>Numerous SQL Server community experts recommend the SQL Server Maintenance Solution, which has been a Gold and Silver winner in the <a title="Awards" href="http://www.sqlmag.com/content1/topic/2011-sql-server-magazine-editors-community-choice-awards-140830/catpath/awards/showprivate/1/page/9" target="_blank">2011</a> and <a title="Awards" href="http://www.sqlmag.com/content1/topic/2010-sql-server-magazine-editors-best-and-community-choice-awards/catpath/sql-server/page/4" target="_blank">2010</a> SQL Server Magazine Awards. I love this tool to perform index maintenance on instances with VLDBs - and the best it's <span style="color: #ff0000;"><strong><a title="SQL Server Backup, Integrity Check, and Index and Statistics Maintenance" href="http://ola.hallengren.com/" target="_blank"><span style="color: #ff0000;">free</span></a></strong></span>!</p>
<p>The new version supports:</p>
<ul>
<li>lock timeout settings in DatabaseIntegrityCheck and IndexOptimize</li>
<li>support for indexes and statistics on objects that are created by internal SQL Server components</li>
<li>... and so on :-)</li>
</ul>
<p>It can be uses like this:</p>
<pre><code style="font-size: 12px;"><span style="color: blue;">EXECUTE </span><span style="color: black;">dbo.IndexOptimize </span><span style="color: #434343;">@Databases </span><span style="color: blue;">= </span><span style="color: red;">'AdventureWorks'</span><span style="color: gray;">, </span><span style="color: #434343;">@LockTimeout </span><span style="color: blue;">= </span><span style="color: black;">600</span></code></pre>
<p>The new version has some performance optimizations and minor bug fixes</p>
<p>Download: <a title="SQL Server Maintenance Solution" href="http://ola.hallengren.com/scripts/MaintenanceSolution.sql" target="_blank">http://ola.hallengren.com/scripts/MaintenanceSolution.sql</a></p>
<p>Please feel free to <a href="http://ola.hallengren.com/contact.html" target="_blank">contact</a> him if you have any questions. And I tell you, Ola will consider it!!!</p>
<p>I wish you a nice&#160; day,<br /><a href="http://feeds2.feedburner.com/TorstenSchuessler" target="_blank">tosc</a></p><div class="item_footer"><br /><p><em>"Try not to become a man of success but rather to become a man of value."</em><br />Albert Einstein</p></div>]]></content:encoded>
								<comments>http://www.insidesql.org/blogs/tosc/2013/06/04/new-version-of-sql-server-maintenance-solution#comments</comments>
			<wfw:commentRss>http://www.insidesql.org/blogs/tosc/?tempskin=_rss2&#38;disp=comments&#38;p=3498</wfw:commentRss>
		</item>
				<item>
			<title>Discrepancy by estimated TEMPDB space for CHECKDB and CHECKALLOC - WITH ESTIMATEONlY</title>
			<link>http://www.insidesql.org/blogs/tosc/2013/05/17/discrepancy-by-estimated-tempdb-space-for-checkdb-and-checkalloc-with-estimateonly</link>
			<pubDate>Fri, 17 May 2013 09:39:00 +0000</pubDate>			<dc:creator>Torsten Schuessler</dc:creator>
			<category domain="main">SQL Server</category>
<category domain="alt">Community &amp; PASS</category>			<guid isPermaLink="false">3487@http://www.insidesql.org/blogs/</guid>
						<description>&lt;p&gt;I came around this problem (depends on SQL Server 2008 R2 jutst to SQL Server 2012) by reading &lt;a href=&quot;http://www.sqlskills.com/blogs/paul&quot; target=&quot;_blank&quot;&gt;Paul S.&amp;#160;Randal&#039;s&lt;/a&gt; and &lt;a href=&quot;https://amihalj.wordpress.com/&quot; target=&quot;_blank&quot;&gt;Ana&#039;s&lt;/a&gt; blog posts:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.sqlskills.com/blogs/paul/how-does-dbcc-checkdb-with-estimateonly-work/&quot; target=&quot;_blank&quot;&gt;How does DBCC CHECKDB WITH ESTIMATEONLY work &lt;/a&gt;(Paul)&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://amihalj.wordpress.com/2011/11/11/dbcc-checkdb-with-estimateonly-do-you-trust-it/&quot; target=&quot;_blank&quot;&gt;DBCC CHECKDB WITH ESTIMATEONLY: Do you trust it?&lt;/a&gt; (Ana)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href=&quot;http://technet.microsoft.com/en-us/library/ms176064.aspx&quot; target=&quot;_blank&quot;&gt;DBCC CHECKDB&lt;/a&gt; runs &lt;a href=&quot;http://technet.microsoft.com/en-us/library/ms188422.aspx&quot; target=&quot;_blank&quot;&gt;CHECKALLOC&lt;/a&gt;, &lt;a href=&quot;http://technet.microsoft.com/en-us/library/ms174338.aspx&quot; target=&quot;_blank&quot;&gt;CHECKTABLE&lt;/a&gt;, &lt;a href=&quot;http://technet.microsoft.com/en-us/library/ms186720.aspx&quot; target=&quot;_blank&quot;&gt;CHECKCATALOG&lt;/a&gt;&amp;#160;etc. against database, tables, views and so on. And I have learnded, however CHECKDB is executed against &lt;a href=&quot;http://technet.microsoft.com/en-us/library/ms187837.aspx&quot; target=&quot;_blank&quot;&gt;master database&lt;/a&gt;, a second CHECKDB is also running internally on the &lt;a href=&quot;http://technet.microsoft.com/en-us/library/ms190940.aspx&quot; target=&quot;_blank&quot;&gt;mssqlsystemressource&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;So in my way, I want only&amp;#160;make consistency check of disk space allocation&amp;#160;by DBCC CHECKALLOC WITH ESTIMATEONLY against a ~ 200GB database, to know the estimated amount of &lt;a href=&quot;http://technet.microsoft.com/en-us/library/ms190768.aspx&quot; target=&quot;_blank&quot;&gt;tempdb&lt;/a&gt; space.&lt;/p&gt;
&lt;p&gt;I run following DBCC command on SQL Server 2012 Enterprise Edition:&lt;/p&gt;
&lt;pre&gt;&lt;code style=&quot;font-size: 12px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;DBCC &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;CHECKALLOC &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;() &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;WITH &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;ESTIMATEONLY&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;TABLERESULTS&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;GO&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And I get this result&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Estimated TEMPDB space (in KB) needed for CHECKALLOC on database XXX = 35383596.&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;OK, nothing special - but I thought about the posts of Ana and Paul, and a blog entry of &lt;a href=&quot;http://blogs.msdn.com/b/saponsqlserver/&quot; target=&quot;_blank&quot;&gt;Running SQP on SQL Server Blog&lt;/a&gt; - &lt;a href=&quot;http://blogs.msdn.com/b/saponsqlserver/archive/2011/12/22/faster-dbcc-checkdb-released-in-sql-2008-r2-sp1-traceflag-2562-amp-2549.aspx&quot; target=&quot;_blank&quot;&gt;Faster DBCC CHECKDB Released in SQL 2008 R2 SP1 CU4 : Traceflag 2562 &amp;amp; 2549&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So next shot comparing CHECKDB and CHECKALLOC:&lt;/p&gt;
&lt;pre&gt;&lt;code style=&quot;font-size: 12px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;DBCC &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;CHECKDB &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;WITH &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;ESTIMATEONLY&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;TABLERESULTS&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;; &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;GO&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;DBCC &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;CHECKALLOC &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;WITH &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;ESTIMATEONLY&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;TABLERESULTS&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;GO&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And the results are diffrent!&lt;br /&gt;For CHECKDB:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Estimated TEMPDB space (in KB) needed for CHECKDB on database XXX = &lt;strong&gt;27165&lt;/strong&gt;.&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And for CHECKALLOC:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Estimated TEMPDB space (in KB) needed for CHECKALLOC on database XXX = &lt;strong&gt;35383596&lt;/strong&gt;.&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This isn&#039;t an expected result - what a &lt;strong&gt;discrepancy&lt;/strong&gt;!&lt;/p&gt;
&lt;p&gt;By the way I have made a &lt;a href=&quot;http://connect.microsoft.com/&quot; target=&quot;_blank&quot;&gt;Microsoft Connect&lt;/a&gt; entry:&lt;a href=&quot;https://connect.microsoft.com/SQLServer/feedback/details/787049/discrepancy-by-estimated-tempdb-space-for-checkdb-and-checkalloc-with-estimateonly&quot; target=&quot;_blank&quot;&gt; http://connect.microsoft.com/SQLServer/feedback/details/787049/discrepancy-by-estimated-tempdb-space-for-checkdb-and-checkalloc-with-estimateonly&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So feel free to vote.&lt;/p&gt;
&lt;p&gt;I wish you a nice day,&lt;br /&gt;&lt;a href=&quot;http://feeds2.feedburner.com/TorstenSchuessler&quot; target=&quot;_blank&quot;&gt;tosc&lt;/a&gt;&lt;/p&gt;
&lt;div class=&quot;image_block&quot;&gt;&lt;a href=&quot;http://feeds.feedburner.com/~r/TorstenSchuessler/~6/1&quot; target=&quot;_blank&quot;&gt;&lt;img style=&quot;border: 0;&quot; src=&quot;http://feeds.feedburner.com/TorstenSchuessler.1.gif&quot; alt=&quot;Torsten Schuessler&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;br /&gt;&lt;p&gt;&lt;em&gt;&quot;Try not to become a man of success but rather to become a man of value.&quot;&lt;/em&gt;&lt;br /&gt;Albert Einstein&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>I came around this problem (depends on SQL Server 2008 R2 jutst to SQL Server 2012) by reading <a href="http://www.sqlskills.com/blogs/paul" target="_blank">Paul S.&#160;Randal's</a> and <a href="https://amihalj.wordpress.com/" target="_blank">Ana's</a> blog posts:</p>
<ul>
<li><a href="http://www.sqlskills.com/blogs/paul/how-does-dbcc-checkdb-with-estimateonly-work/" target="_blank">How does DBCC CHECKDB WITH ESTIMATEONLY work </a>(Paul)</li>
<li><a href="https://amihalj.wordpress.com/2011/11/11/dbcc-checkdb-with-estimateonly-do-you-trust-it/" target="_blank">DBCC CHECKDB WITH ESTIMATEONLY: Do you trust it?</a> (Ana)</li>
</ul>
<p><a href="http://technet.microsoft.com/en-us/library/ms176064.aspx" target="_blank">DBCC CHECKDB</a> runs <a href="http://technet.microsoft.com/en-us/library/ms188422.aspx" target="_blank">CHECKALLOC</a>, <a href="http://technet.microsoft.com/en-us/library/ms174338.aspx" target="_blank">CHECKTABLE</a>, <a href="http://technet.microsoft.com/en-us/library/ms186720.aspx" target="_blank">CHECKCATALOG</a>&#160;etc. against database, tables, views and so on. And I have learnded, however CHECKDB is executed against <a href="http://technet.microsoft.com/en-us/library/ms187837.aspx" target="_blank">master database</a>, a second CHECKDB is also running internally on the <a href="http://technet.microsoft.com/en-us/library/ms190940.aspx" target="_blank">mssqlsystemressource</a>.</p>
<p>So in my way, I want only&#160;make consistency check of disk space allocation&#160;by DBCC CHECKALLOC WITH ESTIMATEONLY against a ~ 200GB database, to know the estimated amount of <a href="http://technet.microsoft.com/en-us/library/ms190768.aspx" target="_blank">tempdb</a> space.</p>
<p>I run following DBCC command on SQL Server 2012 Enterprise Edition:</p>
<pre><code style="font-size: 12px;"><span style="color: blue;">DBCC </span><span style="color: black;">CHECKALLOC </span><span style="color: gray;">() </span><span style="color: blue;">WITH </span><span style="color: black;">ESTIMATEONLY</span><span style="color: gray;">, </span><span style="color: black;">TABLERESULTS</span><span style="color: gray;">;<br /></span><span style="color: black;">GO</span></code></pre>
<p>And I get this result</p>
<pre><code>Estimated TEMPDB space (in KB) needed for CHECKALLOC on database XXX = 35383596.</code></pre>
<p>OK, nothing special - but I thought about the posts of Ana and Paul, and a blog entry of <a href="http://blogs.msdn.com/b/saponsqlserver/" target="_blank">Running SQP on SQL Server Blog</a> - <a href="http://blogs.msdn.com/b/saponsqlserver/archive/2011/12/22/faster-dbcc-checkdb-released-in-sql-2008-r2-sp1-traceflag-2562-amp-2549.aspx" target="_blank">Faster DBCC CHECKDB Released in SQL 2008 R2 SP1 CU4 : Traceflag 2562 &amp; 2549</a></p>
<p>So next shot comparing CHECKDB and CHECKALLOC:</p>
<pre><code style="font-size: 12px;"><span style="color: blue;">DBCC </span><span style="color: black;">CHECKDB </span><span style="color: blue;">WITH </span><span style="color: black;">ESTIMATEONLY</span><span style="color: gray;">, </span><span style="color: black;">TABLERESULTS</span><span style="color: gray;">; <br /></span><span style="color: black;">GO<br /><br /></span><span style="color: blue;">DBCC </span><span style="color: black;">CHECKALLOC </span><span style="color: blue;">WITH </span><span style="color: black;">ESTIMATEONLY</span><span style="color: gray;">, </span><span style="color: black;">TABLERESULTS</span><span style="color: gray;">;<br /></span><span style="color: black;">GO<br /></span></code></pre>
<p>And the results are diffrent!<br />For CHECKDB:</p>
<pre><code>Estimated TEMPDB space (in KB) needed for CHECKDB on database XXX = <strong>27165</strong>.</code></pre>
<p>And for CHECKALLOC:</p>
<pre><code>Estimated TEMPDB space (in KB) needed for CHECKALLOC on database XXX = <strong>35383596</strong>.</code></pre>
<p>This isn't an expected result - what a <strong>discrepancy</strong>!</p>
<p>By the way I have made a <a href="http://connect.microsoft.com/" target="_blank">Microsoft Connect</a> entry:<a href="https://connect.microsoft.com/SQLServer/feedback/details/787049/discrepancy-by-estimated-tempdb-space-for-checkdb-and-checkalloc-with-estimateonly" target="_blank"> http://connect.microsoft.com/SQLServer/feedback/details/787049/discrepancy-by-estimated-tempdb-space-for-checkdb-and-checkalloc-with-estimateonly</a></p>
<p>So feel free to vote.</p>
<p>I wish you a nice day,<br /><a href="http://feeds2.feedburner.com/TorstenSchuessler" target="_blank">tosc</a></p>
<div class="image_block"><a href="http://feeds.feedburner.com/~r/TorstenSchuessler/~6/1" target="_blank"><img style="border: 0;" src="http://feeds.feedburner.com/TorstenSchuessler.1.gif" alt="Torsten Schuessler" /></a></div><div class="item_footer"><br /><p><em>"Try not to become a man of success but rather to become a man of value."</em><br />Albert Einstein</p></div>]]></content:encoded>
								<comments>http://www.insidesql.org/blogs/tosc/2013/05/17/discrepancy-by-estimated-tempdb-space-for-checkdb-and-checkalloc-with-estimateonly#comments</comments>
			<wfw:commentRss>http://www.insidesql.org/blogs/tosc/?tempskin=_rss2&#38;disp=comments&#38;p=3487</wfw:commentRss>
		</item>
				<item>
			<title>SQL Server 2012 Tempdb File Size Change tracked with Extended Events</title>
			<link>http://www.insidesql.org/blogs/tosc/2013/05/02/sql-server-tempdb-file-size-change-tracked-with-extended-events</link>
			<pubDate>Thu, 02 May 2013 11:51:00 +0000</pubDate>			<dc:creator>Torsten Schuessler</dc:creator>
			<category domain="main">SQL Server</category>			<guid isPermaLink="false">3479@http://www.insidesql.org/blogs/</guid>
						<description>&lt;p&gt;We are using SQL Server 2012 and the tempdb is growing so fast. How do I effectively find what&amp;#8217;s causing my tempdb growing. Can I monitor the file size change with Extended Events to find out the ...&lt;/p&gt;&lt;p&gt;The tempdb system database is a global resource that is available to all users connected to the instance of SQL Server. tempdb is re-created every time is started so that the system always starts with a clean copy of the database. The database engine uses tempdb for:&lt;/p&gt;
&lt;ul&gt;
&lt;ul&gt;
&lt;li&gt;Temporary user objects (temp tables, table variables ...)&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Internal objects (work tables/work files/ intermediate results ...)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Version store for data modification transactions (Online indexes, After trigges, Snapshot, MARS ...)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Service Broker, database mail ...&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;p&gt;But this is another deep dive topic of tempdb latch contention on allocation pages... :-)&lt;br /&gt;For now I only want to know&lt;/p&gt;
&lt;h3&gt;What&#039;s causing that my tempdb is growing so fast?&lt;/h3&gt;
&lt;p&gt;I usually look first to the tempdb file size and autogrow settings, you know something like this:&lt;/p&gt;
&lt;pre align=&quot;left&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;--&amp;gt; SQL Server tempdb file size and autogrow information &amp;lt;--&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SET NOCOUNT ON&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;GO&amp;#160;&amp;#160;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;USE &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[master]&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;GO&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;-- Check for trace flag 1117/1118 or any other trace flag&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;DBCC &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;TRACESTATUS &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1117&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;WITH &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;NO_INFOMSGS&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;-- Grows all data files at once, else it goes in turns.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;DBCC &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;TRACESTATUS &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1118&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;WITH &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;NO_INFOMSGS&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;-- Switches allocations in tempDB from 1pg at a time (for first 8 pages) to one extent&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;DBCC &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;TRACESTATUS &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;() &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;WITH &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;NO_INFOMSGS&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT&lt;br /&gt;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;old.physical_name &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;FileName&#039;&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;br /&gt;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;old.name &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;LogicalName&#039;&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;br /&gt;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;old.size &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;* &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;8.0 &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;/ &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1024.0 &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;OriginalSizeInMB&#039;&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;br /&gt;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;new.size &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;* &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;8.0 &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;/ &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1024.0 &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;CurrentSizeInMB&#039;&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;br /&gt;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;GrowthType&#039; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;= &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: #ff00ff;&quot;&gt;CASE&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;WHEN &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;new.growth &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0 &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;THEN &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;File is fixed size and will not grow.&#039;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;WHEN &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;new.growth &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0 &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;AND &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;new.is_percent_growth &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0 &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;THEN &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;Growth increment is in units of 8-KB pages, rounded to the nearest 64 KB&#039;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;ELSE &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;Growth increment is expressed as a whole number percentage.&#039;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;br /&gt;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;GrowthIncrement&#039; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: #ff00ff;&quot;&gt;CASE&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;WHEN &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;new.is_percent_growth &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0 &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;THEN &lt;/span&gt;&lt;span style=&quot;color: #ff00ff;&quot;&gt;CAST&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;((&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;new.growth &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;* &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;8 &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;/ &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1024&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS NVARCHAR&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;30&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;)) + &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;MB&#039; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;ELSE &lt;/span&gt;&lt;span style=&quot;color: #ff00ff;&quot;&gt;CAST &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;new.growth &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS NVARCHAR&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;30&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;)) + &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;%&#039;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;br /&gt;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;MaximumFileSize&#039; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: #ff00ff;&quot;&gt;CASE &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;new.max_size &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;-- file size, in 8-KB pages&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;WHEN &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0 &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;THEN &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;No growth is allowed.&#039;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;WHEN &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1 &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;THEN &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;File will grow until the disk is full.&#039;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;-- !Databases that are upgraded with an unlimited log file size will report -1 for the maximum size of the log file!&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;WHEN &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;268435456 &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;THEN &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;Log file will grow to a maximum size of 2 TB.&#039; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;ELSE &lt;/span&gt;&lt;span style=&quot;color: #ff00ff;&quot;&gt;CAST &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;new.max_size &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;* &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;8.0 &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;/ &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1024.0 &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS NVARCHAR&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;30&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;)) + &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;MB&#039;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;END&lt;br /&gt;FROM&lt;br /&gt;&amp;#160;&amp;#160; MASTER&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.sys.master_files old &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;INNER JOIN &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;tempdb.sys.database_files new &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;ON&lt;br /&gt;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;old.&lt;/span&gt;&lt;span style=&quot;color: #ff00ff;&quot;&gt;FILE_ID &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;new.&lt;/span&gt;&lt;span style=&quot;color: #ff00ff;&quot;&gt;FILE_ID&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;WHERE&lt;br /&gt;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;database_id &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #ff00ff;&quot;&gt;DB_ID&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;tempdb&#039;&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;)&lt;br /&gt;&amp;#160;&amp;#160; AND &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;old.size &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;&amp;lt;&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;new.size&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;In fact, this is a good starting point to presize tempdb, for peak periods or set autogrow to be rare but &quot;big enough&quot;, but I want to know what&#039;s causing my tempdb to grow so fast.&lt;/p&gt;
&lt;p&gt;So I came out on &lt;a title=&quot;Extended Events&quot; href=&quot;http://msdn.microsoft.com/en-us/library/bb630282.aspx&quot; target=&quot;_blank&quot;&gt;Extended Events&lt;/a&gt;. Extended Events are a new mechanism introduced in SQL Server 2008 to capture SQL Server performance data with low overhead compared to SQL Server profiler, server side tracing, DBCC commands and other utilities. The scope of Extended Events is far beyond this tip and please refer to the articles below for better understanding of this feature. Extended Events allow more granular level tracking that was impossible in prior SQL Server versions. Extended Events in SQL Server 2012, XE in short, allows you capturing performance monitoring data at individual database level or per session level and for this post I will track information at the database level for tempdb.&lt;/p&gt;
&lt;p&gt;The code snippet below creates the session to track tempdb file size changed and some informations of client application, session id, client hostname and so on.&lt;/p&gt;
&lt;pre align=&quot;left&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;--Drop the event if it already exists&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;IF &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;EXISTS(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;* &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;FROM &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;sys.server_event_sessions &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;WHERE &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;name &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;tempdb_file_size_changed&#039;&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;)&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;DROP &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;EVENT SESSION [tempdb_file_size_changed] &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;ON &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;SERVER&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;GO&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;-- Create event&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CREATE &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;EVENT SESSION [tempdb_file_size_changed] &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;ON &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;SERVER &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;ADD &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;EVENT sqlserver.database_file_size_change&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SET &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;collect_database_name&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;)&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;ACTION&lt;br /&gt;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;sqlserver.client_app_name&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;sqlserver.client_hostname&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;sqlserver.database_id&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;sqlserver.session_id&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;br /&gt;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;sqlserver.session_nt_username&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;sqlserver.username&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;WHERE &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[database_id]&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;))) &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;ADD &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;TARGET package0.event_file&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SET &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;filename&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;N&#039;C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Log\tempdb_file_size_changed.xel&#039;&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;WITH &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;MAX_DISPATCH_LATENCY&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1 SECONDS&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;GO&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;Once the script is completed and started I can wait for my tempdb rumbling.&lt;/p&gt;
&lt;p&gt;To summarize the file size change, I ran these following queries:&lt;/p&gt;
&lt;pre align=&quot;left&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;SET NOCOUNT ON&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;GO&amp;#160;&amp;#160;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;USE &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[master]&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;GO&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;database_name &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;DatabaseName&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;file_type &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;FileType&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #ff00ff;&quot;&gt;SUM &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;size_change_kb&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Total_Size_Change_KB&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #ff00ff;&quot;&gt;SUM &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;duration&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Total_Duration&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;client_app_name &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Client_Application&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;session_id &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;SessionID&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;FROM &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;n.value &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;(data[@name=&quot;size_change_kb&quot;]/value)[1]&#039;&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;int&#039;&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;size_change_kb&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;n.value &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;(data[@name=&quot;database_name&quot;]/value)[1]&#039;&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;nvarchar(50)&#039;&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;database_name&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;n.value &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;(data[@name=&quot;duration&quot;]/value)[1]&#039;&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;int&#039;&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;duration&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;n.value &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;(data[@name=&quot;file_type&quot;]/text)[1]&#039;&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;nvarchar(50)&#039;&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;file_type&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;n.value &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;(action[@name=&quot;client_app_name&quot;]/value)[1]&#039;&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;nvarchar(50)&#039;&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;client_app_name&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;n.value &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;(action[@name=&quot;session_id&quot;]/value)[1]&#039;&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;nvarchar(50)&#039;&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;session_id&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;FROM &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT &lt;/span&gt;&lt;span style=&quot;color: #ff00ff;&quot;&gt;CAST&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;event_data &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS XML&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;event_data&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;FROM &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;sys.&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;fn_xe_file_target_read_file&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;N&#039;C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Log\tempdb_file_size_changed*.xel&#039;&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; NULL,&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; NULL,&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; NULL)&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ) &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;tab&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;CROSS &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;APPLY event_data.nodes&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;event&#039;&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;q&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;n&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;)) &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;xyz&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;GROUP BY &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;client_app_name&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;database_name&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;file_type&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;session_id&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;ORDER BY &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;client_app_name&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;div class=&quot;image_block&quot;&gt;&lt;a href=&quot;http://www.insidesql.org/blogs/media/blogs/tosc/tempdb_file_size_changed.png?mtime=1367327315&quot;&gt;&lt;img src=&quot;http://www.insidesql.org/blogs/media/blogs/tosc/tempdb_file_size_changed.png?mtime=1367327315&quot; alt=&quot;&quot; width=&quot;736&quot; height=&quot;85&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;And what was causing my tempdb, it was me by Microsoft SQL Server Management Studio :-( - only for this blog entry.&lt;/p&gt;
&lt;p&gt;Feel free to download these scripts:&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.insidesql.org/blogs/media/blogs/tosc/autogrow_settings_tempdb.sql?mtime=1367329101&quot;&gt;autogrow_settings_tempdb.sql&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.insidesql.org/blogs/media/blogs/tosc/tempdb_file_size_extended_events.sql?mtime=1367329420&quot;&gt;tempdb_file_size_extended_events.sql&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.insidesql.org/blogs/media/blogs/tosc/tempdb_xml_event_data.sql?mtime=1367329420&quot;&gt;tempdb_xml_event_data.sql&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/p&gt;
&lt;p&gt;I wish you a nice&amp;#160; day,&lt;br /&gt;&lt;a href=&quot;http://feeds2.feedburner.com/TorstenSchuessler&quot; target=&quot;_blank&quot;&gt;tosc&lt;/a&gt;&lt;/p&gt;
&lt;div class=&quot;image_block&quot;&gt;&lt;a href=&quot;http://feeds.feedburner.com/~r/TorstenSchuessler/~6/1&quot; target=&quot;_blank&quot;&gt;&lt;img style=&quot;border: 0;&quot; src=&quot;http://feeds.feedburner.com/TorstenSchuessler.1.gif&quot; alt=&quot;Torsten Schuessler&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;br /&gt;&lt;p&gt;&lt;em&gt;&quot;Try not to become a man of success but rather to become a man of value.&quot;&lt;/em&gt;&lt;br /&gt;Albert Einstein&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>We are using SQL Server 2012 and the tempdb is growing so fast. How do I effectively find what&#8217;s causing my tempdb growing. Can I monitor the file size change with Extended Events to find out the ...</p><p>The tempdb system database is a global resource that is available to all users connected to the instance of SQL Server. tempdb is re-created every time is started so that the system always starts with a clean copy of the database. The database engine uses tempdb for:</p>
<ul>
<ul>
<li>Temporary user objects (temp tables, table variables ...)</li>
<li><span>Internal objects (work tables/work files/ intermediate results ...)</span></li>
<li><span>Version store for data modification transactions (Online indexes, After trigges, Snapshot, MARS ...)</span></li>
<li><span>Service Broker, database mail ...</span></li>
</ul>
</ul>
<p>But this is another deep dive topic of tempdb latch contention on allocation pages... :-)<br />For now I only want to know</p>
<h3>What's causing that my tempdb is growing so fast?</h3>
<p>I usually look first to the tempdb file size and autogrow settings, you know something like this:</p>
<pre align="left"><span style="color: green;">--&gt; SQL Server tempdb file size and autogrow information &lt;--<br /></span><span style="color: blue;">SET NOCOUNT ON</span><span style="color: gray;">;<br /></span><span style="color: black;">GO&#160;&#160;<br /></span><span style="color: blue;">USE </span><span style="color: black;">[master]</span><span style="color: gray;">;<br /></span><span style="color: black;">GO<br /></span><span style="color: green;">-- Check for trace flag 1117/1118 or any other trace flag<br /></span><span style="color: blue;">DBCC </span><span style="color: black;">TRACESTATUS </span><span style="color: gray;">(</span><span style="color: black;">1117</span><span style="color: gray;">) </span><span style="color: blue;">WITH </span><span style="color: black;">NO_INFOMSGS</span><span style="color: gray;">; </span><span style="color: green;">-- Grows all data files at once, else it goes in turns.<br /></span><span style="color: blue;">DBCC </span><span style="color: black;">TRACESTATUS </span><span style="color: gray;">(</span><span style="color: black;">1118</span><span style="color: gray;">) </span><span style="color: blue;">WITH </span><span style="color: black;">NO_INFOMSGS</span><span style="color: gray;">; </span><span style="color: green;">-- Switches allocations in tempDB from 1pg at a time (for first 8 pages) to one extent<br /></span><span style="color: blue;">DBCC </span><span style="color: black;">TRACESTATUS </span><span style="color: gray;">() </span><span style="color: blue;">WITH </span><span style="color: black;">NO_INFOMSGS</span><span style="color: gray;">;<br /><br /></span><span style="color: blue;">SELECT<br />&#160;&#160; </span><span style="color: black;">old.physical_name </span><span style="color: blue;">AS </span><span style="color: red;">'FileName'</span><span style="color: gray;">,<br />&#160;&#160; </span><span style="color: black;">old.name </span><span style="color: blue;">AS </span><span style="color: red;">'LogicalName'</span><span style="color: gray;">,<br />&#160;&#160; </span><span style="color: black;">old.size </span><span style="color: gray;">* </span><span style="color: black;">8.0 </span><span style="color: gray;">/ </span><span style="color: black;">1024.0 </span><span style="color: blue;">AS </span><span style="color: red;">'OriginalSizeInMB'</span><span style="color: gray;">,<br />&#160;&#160; </span><span style="color: black;">new.size </span><span style="color: gray;">* </span><span style="color: black;">8.0 </span><span style="color: gray;">/ </span><span style="color: black;">1024.0 </span><span style="color: blue;">AS </span><span style="color: red;">'CurrentSizeInMB'</span><span style="color: gray;">,<br />&#160;&#160; </span><span style="color: red;">'GrowthType' </span><span style="color: blue;">= <br />&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: #ff00ff;">CASE<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue;">WHEN </span><span style="color: black;">new.growth </span><span style="color: blue;">= </span><span style="color: black;">0 </span><span style="color: blue;">THEN </span><span style="color: red;">'File is fixed size and will not grow.'<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue;">WHEN </span><span style="color: black;">new.growth </span><span style="color: gray;">&gt; </span><span style="color: black;">0 </span><span style="color: gray;">AND </span><span style="color: black;">new.is_percent_growth </span><span style="color: blue;">= </span><span style="color: black;">0 <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue;">THEN </span><span style="color: red;">'Growth increment is in units of 8-KB pages, rounded to the nearest 64 KB'<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue;">ELSE </span><span style="color: red;">'Growth increment is expressed as a whole number percentage.'<br />&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue;">END</span><span style="color: gray;">,<br />&#160;&#160; </span><span style="color: red;">'GrowthIncrement' </span><span style="color: blue;">=<br />&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: #ff00ff;">CASE<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue;">WHEN </span><span style="color: black;">new.is_percent_growth </span><span style="color: blue;">= </span><span style="color: black;">0 </span><span style="color: blue;">THEN </span><span style="color: #ff00ff;">CAST</span><span style="color: gray;">((</span><span style="color: black;">new.growth </span><span style="color: gray;">* </span><span style="color: black;">8 </span><span style="color: gray;">/ </span><span style="color: black;">1024</span><span style="color: gray;">) </span><span style="color: blue;">AS NVARCHAR</span><span style="color: gray;">(</span><span style="color: black;">30</span><span style="color: gray;">)) + </span><span style="color: red;">'MB' <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue;">ELSE </span><span style="color: #ff00ff;">CAST </span><span style="color: gray;">(</span><span style="color: black;">new.growth </span><span style="color: blue;">AS NVARCHAR</span><span style="color: gray;">(</span><span style="color: black;">30</span><span style="color: gray;">)) + </span><span style="color: red;">'%'<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue;">END</span><span style="color: gray;">, <br />&#160;&#160; </span><span style="color: red;">'MaximumFileSize' </span><span style="color: blue;">=<br />&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: #ff00ff;">CASE </span><span style="color: black;">new.max_size </span><span style="color: green;">-- file size, in 8-KB pages<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue;">WHEN </span><span style="color: black;">0 </span><span style="color: blue;">THEN </span><span style="color: red;">'No growth is allowed.'<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue;">WHEN </span><span style="color: gray;">-</span><span style="color: black;">1 </span><span style="color: blue;">THEN </span><span style="color: red;">'File will grow until the disk is full.'<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: green;">-- !Databases that are upgraded with an unlimited log file size will report -1 for the maximum size of the log file!<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue;">WHEN </span><span style="color: black;">268435456 </span><span style="color: blue;">THEN </span><span style="color: red;">'Log file will grow to a maximum size of 2 TB.' <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue;">ELSE </span><span style="color: #ff00ff;">CAST </span><span style="color: gray;">(</span><span style="color: black;">new.max_size </span><span style="color: gray;">* </span><span style="color: black;">8.0 </span><span style="color: gray;">/ </span><span style="color: black;">1024.0 </span><span style="color: blue;">AS NVARCHAR</span><span style="color: gray;">(</span><span style="color: black;">30</span><span style="color: gray;">)) + </span><span style="color: red;">'MB'<br />&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue;">END<br />FROM<br />&#160;&#160; MASTER</span><span style="color: black;">.sys.master_files old </span><span style="color: blue;">INNER JOIN </span><span style="color: black;">tempdb.sys.database_files new </span><span style="color: blue;">ON<br />&#160;&#160; </span><span style="color: black;">old.</span><span style="color: #ff00ff;">FILE_ID </span><span style="color: blue;">= </span><span style="color: black;">new.</span><span style="color: #ff00ff;">FILE_ID<br /></span><span style="color: blue;">WHERE<br />&#160;&#160; </span><span style="color: black;">database_id </span><span style="color: blue;">= </span><span style="color: #ff00ff;">DB_ID</span><span style="color: gray;">(</span><span style="color: red;">'tempdb'</span><span style="color: gray;">)<br />&#160;&#160; AND </span><span style="color: black;">old.size </span><span style="color: gray;">&lt;&gt; </span><span style="color: black;">new.size</span></pre>
<p>In fact, this is a good starting point to presize tempdb, for peak periods or set autogrow to be rare but "big enough", but I want to know what's causing my tempdb to grow so fast.</p>
<p>So I came out on <a title="Extended Events" href="http://msdn.microsoft.com/en-us/library/bb630282.aspx" target="_blank">Extended Events</a>. Extended Events are a new mechanism introduced in SQL Server 2008 to capture SQL Server performance data with low overhead compared to SQL Server profiler, server side tracing, DBCC commands and other utilities. The scope of Extended Events is far beyond this tip and please refer to the articles below for better understanding of this feature. Extended Events allow more granular level tracking that was impossible in prior SQL Server versions. Extended Events in SQL Server 2012, XE in short, allows you capturing performance monitoring data at individual database level or per session level and for this post I will track information at the database level for tempdb.</p>
<p>The code snippet below creates the session to track tempdb file size changed and some informations of client application, session id, client hostname and so on.</p>
<pre align="left"><span style="color: green;">--Drop the event if it already exists<br /></span><span style="color: blue;">IF </span><span style="color: gray;">EXISTS(</span><span style="color: blue;">SELECT </span><span style="color: gray;">* </span><span style="color: blue;">FROM </span><span style="color: black;">sys.server_event_sessions </span><span style="color: blue;">WHERE </span><span style="color: black;">name </span><span style="color: blue;">= </span><span style="color: red;">'tempdb_file_size_changed'</span><span style="color: gray;">)<br />&#160;&#160;&#160;&#160;</span><span style="color: blue;">DROP </span><span style="color: black;">EVENT SESSION [tempdb_file_size_changed] </span><span style="color: blue;">ON </span><span style="color: black;">SERVER</span><span style="color: gray;">;<br /></span><span style="color: black;">GO<br /><br /></span><span style="color: green;">-- Create event<br /></span><span style="color: blue;">CREATE </span><span style="color: black;">EVENT SESSION [tempdb_file_size_changed] </span><span style="color: blue;">ON </span><span style="color: black;">SERVER <br /></span><span style="color: blue;">ADD </span><span style="color: black;">EVENT sqlserver.database_file_size_change</span><span style="color: gray;">(</span><span style="color: blue;">SET </span><span style="color: black;">collect_database_name</span><span style="color: blue;">=</span><span style="color: gray;">(</span><span style="color: black;">1</span><span style="color: gray;">)<br />&#160;&#160;&#160;&#160;</span><span style="color: black;">ACTION<br />&#160;&#160; </span><span style="color: gray;">(</span><span style="color: black;">sqlserver.client_app_name</span><span style="color: gray;">,</span><span style="color: black;">sqlserver.client_hostname</span><span style="color: gray;">, </span><span style="color: black;">sqlserver.database_id</span><span style="color: gray;">,</span><span style="color: black;">sqlserver.session_id</span><span style="color: gray;">,<br />&#160;&#160; </span><span style="color: black;">sqlserver.session_nt_username</span><span style="color: gray;">,</span><span style="color: black;">sqlserver.username</span><span style="color: gray;">) </span><span style="color: blue;">WHERE </span><span style="color: gray;">(</span><span style="color: black;">[database_id]</span><span style="color: blue;">=</span><span style="color: gray;">(</span><span style="color: black;">2</span><span style="color: gray;">))) <br /></span><span style="color: blue;">ADD </span><span style="color: black;">TARGET package0.event_file<br /></span><span style="color: gray;">(</span><span style="color: blue;">SET </span><span style="color: black;">filename</span><span style="color: blue;">=</span><span style="color: red;">N'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Log\tempdb_file_size_changed.xel'</span><span style="color: gray;">)<br /></span><span style="color: blue;">WITH </span><span style="color: gray;">(</span><span style="color: black;">MAX_DISPATCH_LATENCY</span><span style="color: blue;">=</span><span style="color: black;">1 SECONDS</span><span style="color: gray;">)<br /></span><span style="color: black;">GO</span></pre>
<p>Once the script is completed and started I can wait for my tempdb rumbling.</p>
<p>To summarize the file size change, I ran these following queries:</p>
<pre align="left"><span style="color: blue;">SET NOCOUNT ON</span><span style="color: gray;">;<br /></span><span style="color: black;">GO&#160;&#160;<br /></span><span style="color: blue;">USE </span><span style="color: black;">[master]</span><span style="color: gray;">;<br /></span><span style="color: black;">GO<br /></span><span style="color: blue;">SELECT<br />&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: black;">database_name </span><span style="color: blue;">AS </span><span style="color: black;">DatabaseName<br />&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: gray;">, </span><span style="color: black;">file_type </span><span style="color: blue;">AS </span><span style="color: black;">FileType<br />&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: gray;">, </span><span style="color: #ff00ff;">SUM </span><span style="color: gray;">(</span><span style="color: black;">size_change_kb</span><span style="color: gray;">) </span><span style="color: blue;">AS </span><span style="color: black;">Total_Size_Change_KB<br />&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: gray;">, </span><span style="color: #ff00ff;">SUM </span><span style="color: gray;">(</span><span style="color: black;">duration</span><span style="color: gray;">) </span><span style="color: blue;">AS </span><span style="color: black;">Total_Duration<br />&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: gray;">, </span><span style="color: black;">client_app_name </span><span style="color: blue;">AS </span><span style="color: black;">Client_Application<br />&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: gray;">, </span><span style="color: black;">session_id </span><span style="color: blue;">AS </span><span style="color: black;">SessionID<br />&#160;&#160;&#160;&#160;&#160;&#160; <br /></span><span style="color: blue;">FROM </span><span style="color: gray;">(<br />&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue;">SELECT<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: black;">n.value </span><span style="color: gray;">(</span><span style="color: red;">'(data[@name="size_change_kb"]/value)[1]'</span><span style="color: gray;">, </span><span style="color: red;">'int'</span><span style="color: gray;">) </span><span style="color: blue;">AS </span><span style="color: black;">size_change_kb<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: gray;">, </span><span style="color: black;">n.value </span><span style="color: gray;">(</span><span style="color: red;">'(data[@name="database_name"]/value)[1]'</span><span style="color: gray;">, </span><span style="color: red;">'nvarchar(50)'</span><span style="color: gray;">) </span><span style="color: blue;">AS </span><span style="color: black;">database_name<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: gray;">, </span><span style="color: black;">n.value </span><span style="color: gray;">(</span><span style="color: red;">'(data[@name="duration"]/value)[1]'</span><span style="color: gray;">, </span><span style="color: red;">'int'</span><span style="color: gray;">) </span><span style="color: blue;">AS </span><span style="color: black;">duration<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: gray;">, </span><span style="color: black;">n.value </span><span style="color: gray;">(</span><span style="color: red;">'(data[@name="file_type"]/text)[1]'</span><span style="color: gray;">,</span><span style="color: red;">'nvarchar(50)'</span><span style="color: gray;">) </span><span style="color: blue;">AS </span><span style="color: black;">file_type<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: gray;">, </span><span style="color: black;">n.value </span><span style="color: gray;">(</span><span style="color: red;">'(action[@name="client_app_name"]/value)[1]'</span><span style="color: gray;">,</span><span style="color: red;">'nvarchar(50)'</span><span style="color: gray;">) </span><span style="color: blue;">AS </span><span style="color: black;">client_app_name<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: gray;">, </span><span style="color: black;">n.value </span><span style="color: gray;">(</span><span style="color: red;">'(action[@name="session_id"]/value)[1]'</span><span style="color: gray;">,</span><span style="color: red;">'nvarchar(50)'</span><span style="color: gray;">) </span><span style="color: blue;">AS </span><span style="color: black;">session_id<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue;">FROM <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: gray;">(&#160;&#160; </span><span style="color: blue;">SELECT </span><span style="color: #ff00ff;">CAST</span><span style="color: gray;">(</span><span style="color: black;">event_data </span><span style="color: blue;">AS XML</span><span style="color: gray;">) </span><span style="color: blue;">AS </span><span style="color: black;">event_data<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue;">FROM </span><span style="color: black;">sys.</span><span style="color: #8b0000;">fn_xe_file_target_read_file</span><span style="color: gray;">(<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: red;">N'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Log\tempdb_file_size_changed*.xel'</span><span style="color: gray;">,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; NULL,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; NULL,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; NULL)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ) </span><span style="color: blue;">AS </span><span style="color: black;">tab<br /></span><span style="color: gray;">CROSS </span><span style="color: black;">APPLY event_data.nodes</span><span style="color: gray;">(</span><span style="color: red;">'event'</span><span style="color: gray;">) </span><span style="color: blue;">AS </span><span style="color: black;">q</span><span style="color: gray;">(</span><span style="color: black;">n</span><span style="color: gray;">)) </span><span style="color: black;">xyz<br /></span><span style="color: blue;">GROUP BY </span><span style="color: black;">client_app_name</span><span style="color: gray;">, </span><span style="color: black;">database_name</span><span style="color: gray;">, </span><span style="color: black;">file_type</span><span style="color: gray;">, </span><span style="color: black;">session_id<br /></span><span style="color: blue;">ORDER BY </span><span style="color: black;">client_app_name</span></pre>
<p>&#160;</p>
<div class="image_block"><a href="http://www.insidesql.org/blogs/media/blogs/tosc/tempdb_file_size_changed.png?mtime=1367327315"><img src="http://www.insidesql.org/blogs/media/blogs/tosc/tempdb_file_size_changed.png?mtime=1367327315" alt="" width="736" height="85" /></a></div>
<p>And what was causing my tempdb, it was me by Microsoft SQL Server Management Studio :-( - only for this blog entry.</p>
<p>Feel free to download these scripts:<ul>
<li><a href="http://www.insidesql.org/blogs/media/blogs/tosc/autogrow_settings_tempdb.sql?mtime=1367329101">autogrow_settings_tempdb.sql</a></li><li><a href="http://www.insidesql.org/blogs/media/blogs/tosc/tempdb_file_size_extended_events.sql?mtime=1367329420">tempdb_file_size_extended_events.sql</a></li>
<li><a href="http://www.insidesql.org/blogs/media/blogs/tosc/tempdb_xml_event_data.sql?mtime=1367329420">tempdb_xml_event_data.sql</a></li>
</ul></p>
<p>I wish you a nice&#160; day,<br /><a href="http://feeds2.feedburner.com/TorstenSchuessler" target="_blank">tosc</a></p>
<div class="image_block"><a href="http://feeds.feedburner.com/~r/TorstenSchuessler/~6/1" target="_blank"><img style="border: 0;" src="http://feeds.feedburner.com/TorstenSchuessler.1.gif" alt="Torsten Schuessler" /></a></div><div class="item_footer"><br /><p><em>"Try not to become a man of success but rather to become a man of value."</em><br />Albert Einstein</p></div>]]></content:encoded>
								<comments>http://www.insidesql.org/blogs/tosc/2013/05/02/sql-server-tempdb-file-size-change-tracked-with-extended-events#comments</comments>
			<wfw:commentRss>http://www.insidesql.org/blogs/tosc/?tempskin=_rss2&#38;disp=comments&#38;p=3479</wfw:commentRss>
		</item>
				<item>
			<title>SQL Server Information</title>
			<link>http://www.insidesql.org/blogs/tosc/2013/02/20/sql-server-information</link>
			<pubDate>Wed, 20 Feb 2013 13:13:00 +0000</pubDate>			<dc:creator>Torsten Schuessler</dc:creator>
			<category domain="main">SQL Server</category>			<guid isPermaLink="false">3413@http://www.insidesql.org/blogs/</guid>
						<description>&lt;p&gt;Only a short script to get informations about your SQL Server enviroment, like machine name, instance name, edition, version, level, cluster security, user mode, collation and login. I use it as a piece on my whole admin scripts.&lt;/p&gt;
&lt;div&gt;&lt;span style=&quot;font-family: Courier New; font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: green;&quot;&gt;&lt;em&gt;--&amp;gt;&amp;#160;SQL&amp;#160;Server&amp;#160;Information&amp;#160;&amp;lt;--&lt;/em&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;SET&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: maroon;&quot;&gt;nocount&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;ON&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;go&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;USE&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: maroon;&quot;&gt;[master]&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;go&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: fuchsia;&quot;&gt;&lt;em&gt;CONVERT&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;em&gt;CHAR&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;,&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: fuchsia;&quot;&gt;&lt;em&gt;Serverproperty&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;MachineName&#039;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: red;&quot;&gt;&#039;MACHINE&amp;#160;NAME&#039;&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;,&lt;/span&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: fuchsia;&quot;&gt;&lt;em&gt;CONVERT&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;em&gt;CHAR&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;,&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: fuchsia;&quot;&gt;&lt;em&gt;Serverproperty&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;ServerName&#039;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: red;&quot;&gt;&#039;SQL&amp;#160;SERVER&amp;#160;NAME&#039;&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;,&lt;/span&gt; &lt;br /&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CASE&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;WHEN&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: fuchsia;&quot;&gt;&lt;em&gt;CONVERT&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;em&gt;CHAR&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;,&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: fuchsia;&quot;&gt;&lt;em&gt;Serverproperty&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;InstanceName&#039;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;IS&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;NULL&lt;/span&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;THEN&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: red;&quot;&gt;&#039;Default&amp;#160;Instance&#039;&lt;/span&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;ELSE&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: fuchsia;&quot;&gt;&lt;em&gt;CONVERT&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;em&gt;CHAR&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;,&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: fuchsia;&quot;&gt;&lt;em&gt;Serverproperty&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;InstanceName&#039;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: red;&quot;&gt;&#039;INSTANCE&amp;#160;NAME&#039;&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;,&lt;/span&gt; &lt;br /&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: fuchsia;&quot;&gt;&lt;em&gt;CONVERT&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;em&gt;CHAR&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;30&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;,&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: fuchsia;&quot;&gt;&lt;em&gt;Serverproperty&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;EDITION&#039;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: maroon;&quot;&gt;EDITION&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;,&lt;/span&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: fuchsia;&quot;&gt;&lt;em&gt;CONVERT&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;em&gt;CHAR&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;30&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;,&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: fuchsia;&quot;&gt;&lt;em&gt;Serverproperty&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;ProductVersion&#039;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: red;&quot;&gt;&#039;PRODUCT&amp;#160;VERSION&#039;&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;,&lt;/span&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: fuchsia;&quot;&gt;&lt;em&gt;CONVERT&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;em&gt;CHAR&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;30&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;,&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: fuchsia;&quot;&gt;&lt;em&gt;Serverproperty&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;ProductLevel&#039;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: red;&quot;&gt;&#039;PRODUCT&amp;#160;LEVEL&#039;&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;,&lt;/span&gt; &lt;br /&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CASE&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;WHEN&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: fuchsia;&quot;&gt;&lt;em&gt;CONVERT&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;em&gt;CHAR&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;30&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;,&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: fuchsia;&quot;&gt;&lt;em&gt;Serverproperty&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;ISClustered&#039;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: silver;&quot;&gt;=&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;THEN&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: red;&quot;&gt;&#039;Clustered&#039;&lt;/span&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;WHEN&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: fuchsia;&quot;&gt;&lt;em&gt;CONVERT&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;em&gt;CHAR&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;30&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;,&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: fuchsia;&quot;&gt;&lt;em&gt;Serverproperty&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;ISClustered&#039;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: silver;&quot;&gt;=&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;THEN&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: red;&quot;&gt;&#039;NOT&amp;#160;Clustered&#039;&lt;/span&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;ELSE&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: red;&quot;&gt;&#039;INVALID&amp;#160;INPUT/ERROR&#039;&lt;/span&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: red;&quot;&gt;&#039;FAILOVER&amp;#160;CLUSTERED&#039;&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;,&lt;/span&gt; &lt;br /&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CASE&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;WHEN&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: fuchsia;&quot;&gt;&lt;em&gt;CONVERT&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;em&gt;CHAR&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;30&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;,&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: fuchsia;&quot;&gt;&lt;em&gt;Serverproperty&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;ISIntegratedSecurityOnly&#039;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: silver;&quot;&gt;=&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;THEN&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: red;&quot;&gt;&#039;Integrated&amp;#160;Security&amp;#160;&#039;&lt;/span&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;WHEN&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: fuchsia;&quot;&gt;&lt;em&gt;CONVERT&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;em&gt;CHAR&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;30&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;,&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: fuchsia;&quot;&gt;&lt;em&gt;Serverproperty&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;ISIntegratedSecurityOnly&#039;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: silver;&quot;&gt;=&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;THEN&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: red;&quot;&gt;&#039;SQL&amp;#160;Server&amp;#160;Security&amp;#160;&#039;&lt;/span&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;ELSE&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: red;&quot;&gt;&#039;INVALID&amp;#160;INPUT/ERROR&#039;&lt;/span&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: red;&quot;&gt;&#039;SECURITY&#039;&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;,&lt;/span&gt; &lt;br /&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CASE&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;WHEN&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: fuchsia;&quot;&gt;&lt;em&gt;CONVERT&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;em&gt;CHAR&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;30&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;,&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: fuchsia;&quot;&gt;&lt;em&gt;Serverproperty&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;ISSingleUser&#039;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: silver;&quot;&gt;=&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;THEN&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: red;&quot;&gt;&#039;Single&amp;#160;User&#039;&lt;/span&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;WHEN&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: fuchsia;&quot;&gt;&lt;em&gt;CONVERT&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;em&gt;CHAR&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;30&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;,&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: fuchsia;&quot;&gt;&lt;em&gt;Serverproperty&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;ISSingleUser&#039;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: silver;&quot;&gt;=&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;THEN&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: red;&quot;&gt;&#039;Multi&amp;#160;User&#039;&lt;/span&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;ELSE&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: red;&quot;&gt;&#039;INVALID&amp;#160;INPUT/ERROR&#039;&lt;/span&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: red;&quot;&gt;&#039;USER&amp;#160;MODE&#039;&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;,&lt;/span&gt; &lt;br /&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: fuchsia;&quot;&gt;&lt;em&gt;CONVERT&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;em&gt;CHAR&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;30&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;,&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: fuchsia;&quot;&gt;&lt;em&gt;Serverproperty&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#039;COLLATION&#039;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: maroon;&quot;&gt;COLLATION&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;,&lt;/span&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: fuchsia;&quot;&gt;&lt;em&gt;Getdate&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;)&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: maroon;&quot;&gt;RunTime&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;,&lt;/span&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: #8000ff;&quot;&gt;@@SPID&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: red;&quot;&gt;&#039;ID&#039;&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;,&lt;/span&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;SYSTEM_USER&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: red;&quot;&gt;&#039;Login&amp;#160;Name?&#039;&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;,&lt;/span&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;USER&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: red;&quot;&gt;&#039;User&amp;#160;Name&#039;&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;go&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;color: green;&quot;&gt;&lt;em&gt;--&amp;#160;END&amp;#160;SQL&amp;#160;Server&amp;#160;Information&amp;#160;--&lt;/em&gt;&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href=&quot;http://www.insidesql.org/blogs/media/blogs/tosc/sql_server_informations.sql?mtime=1361375299&quot;&gt;sql_server_informations.sql&lt;/a&gt;&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;br /&gt;&lt;p&gt;&lt;em&gt;&quot;Try not to become a man of success but rather to become a man of value.&quot;&lt;/em&gt;&lt;br /&gt;Albert Einstein&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>Only a short script to get informations about your SQL Server enviroment, like machine name, instance name, edition, version, level, cluster security, user mode, collation and login. I use it as a piece on my whole admin scripts.</p>
<div><span style="font-family: Courier New; font-size: 10pt;"> <span style="color: green;"><em>--&gt;&#160;SQL&#160;Server&#160;Information&#160;&lt;--</em></span> <br /><span style="color: blue;">SET</span>&#160;<span style="color: maroon;">nocount</span>&#160;<span style="color: blue;">ON</span><span style="color: silver;">;</span><span style="color: maroon;">go</span><span style="color: blue;">USE</span>&#160;<span style="color: maroon;">[master]</span><span style="color: silver;">;</span><span style="color: maroon;">go</span><span style="color: blue;">SELECT</span> <br />&#160;&#160;&#160;&#160;<span style="color: fuchsia;"><em>CONVERT</em></span><span style="color: maroon;">(</span><span style="color: black;"><em>CHAR</em></span><span style="color: maroon;">(</span><span style="color: black;">100</span><span style="color: maroon;">)</span><span style="color: silver;">,</span>&#160;<span style="color: fuchsia;"><em>Serverproperty</em></span><span style="color: maroon;">(</span><span style="color: red;">'MachineName'</span><span style="color: maroon;">)</span><span style="color: maroon;">)</span>&#160;<span style="color: blue;">AS</span>&#160;<span style="color: red;">'MACHINE&#160;NAME'</span><span style="color: silver;">,</span> <br />&#160;&#160;&#160;&#160;<span style="color: fuchsia;"><em>CONVERT</em></span><span style="color: maroon;">(</span><span style="color: black;"><em>CHAR</em></span><span style="color: maroon;">(</span><span style="color: black;">50</span><span style="color: maroon;">)</span><span style="color: silver;">,</span>&#160;<span style="color: fuchsia;"><em>Serverproperty</em></span><span style="color: maroon;">(</span><span style="color: red;">'ServerName'</span><span style="color: maroon;">)</span><span style="color: maroon;">)</span>&#160;<span style="color: blue;">AS</span>&#160;<span style="color: red;">'SQL&#160;SERVER&#160;NAME'</span><span style="color: silver;">,</span> <br /> <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: maroon;">(</span><span style="color: blue;">CASE</span>&#160;<span style="color: blue;">WHEN</span>&#160;<span style="color: fuchsia;"><em>CONVERT</em></span><span style="color: maroon;">(</span><span style="color: black;"><em>CHAR</em></span><span style="color: maroon;">(</span><span style="color: black;">50</span><span style="color: maroon;">)</span><span style="color: silver;">,</span>&#160;<span style="color: fuchsia;"><em>Serverproperty</em></span><span style="color: maroon;">(</span><span style="color: red;">'InstanceName'</span><span style="color: maroon;">)</span><span style="color: maroon;">)</span>&#160;<span style="color: blue;">IS</span>&#160;<span style="color: blue;">NULL</span> <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: blue;">THEN</span>&#160;<span style="color: red;">'Default&#160;Instance'</span> <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: blue;">ELSE</span>&#160;<span style="color: fuchsia;"><em>CONVERT</em></span><span style="color: maroon;">(</span><span style="color: black;"><em>CHAR</em></span><span style="color: maroon;">(</span><span style="color: black;">50</span><span style="color: maroon;">)</span><span style="color: silver;">,</span>&#160;<span style="color: fuchsia;"><em>Serverproperty</em></span><span style="color: maroon;">(</span><span style="color: red;">'InstanceName'</span><span style="color: maroon;">)</span><span style="color: maroon;">)</span> <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: blue;">END</span><span style="color: maroon;">)</span>&#160;<span style="color: blue;">AS</span>&#160;<span style="color: red;">'INSTANCE&#160;NAME'</span><span style="color: silver;">,</span> <br /> <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: fuchsia;"><em>CONVERT</em></span><span style="color: maroon;">(</span><span style="color: black;"><em>CHAR</em></span><span style="color: maroon;">(</span><span style="color: black;">30</span><span style="color: maroon;">)</span><span style="color: silver;">,</span>&#160;<span style="color: fuchsia;"><em>Serverproperty</em></span><span style="color: maroon;">(</span><span style="color: red;">'EDITION'</span><span style="color: maroon;">)</span><span style="color: maroon;">)</span>&#160;<span style="color: blue;">AS</span>&#160;<span style="color: maroon;">EDITION</span><span style="color: silver;">,</span> <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: fuchsia;"><em>CONVERT</em></span><span style="color: maroon;">(</span><span style="color: black;"><em>CHAR</em></span><span style="color: maroon;">(</span><span style="color: black;">30</span><span style="color: maroon;">)</span><span style="color: silver;">,</span>&#160;<span style="color: fuchsia;"><em>Serverproperty</em></span><span style="color: maroon;">(</span><span style="color: red;">'ProductVersion'</span><span style="color: maroon;">)</span><span style="color: maroon;">)</span>&#160;<span style="color: blue;">AS</span>&#160;<span style="color: red;">'PRODUCT&#160;VERSION'</span><span style="color: silver;">,</span> <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: fuchsia;"><em>CONVERT</em></span><span style="color: maroon;">(</span><span style="color: black;"><em>CHAR</em></span><span style="color: maroon;">(</span><span style="color: black;">30</span><span style="color: maroon;">)</span><span style="color: silver;">,</span>&#160;<span style="color: fuchsia;"><em>Serverproperty</em></span><span style="color: maroon;">(</span><span style="color: red;">'ProductLevel'</span><span style="color: maroon;">)</span><span style="color: maroon;">)</span>&#160;<span style="color: blue;">AS</span>&#160;<span style="color: red;">'PRODUCT&#160;LEVEL'</span><span style="color: silver;">,</span> <br /> <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: maroon;">(</span><span style="color: blue;">CASE</span>&#160;<span style="color: blue;">WHEN</span>&#160;<span style="color: fuchsia;"><em>CONVERT</em></span><span style="color: maroon;">(</span><span style="color: black;"><em>CHAR</em></span><span style="color: maroon;">(</span><span style="color: black;">30</span><span style="color: maroon;">)</span><span style="color: silver;">,</span>&#160;<span style="color: fuchsia;"><em>Serverproperty</em></span><span style="color: maroon;">(</span><span style="color: red;">'ISClustered'</span><span style="color: maroon;">)</span><span style="color: maroon;">)</span>&#160;<span style="color: silver;">=</span>&#160;<span style="color: black;">1</span> <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: blue;">THEN</span>&#160;<span style="color: red;">'Clustered'</span> <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: blue;">WHEN</span>&#160;<span style="color: fuchsia;"><em>CONVERT</em></span><span style="color: maroon;">(</span><span style="color: black;"><em>CHAR</em></span><span style="color: maroon;">(</span><span style="color: black;">30</span><span style="color: maroon;">)</span><span style="color: silver;">,</span>&#160;<span style="color: fuchsia;"><em>Serverproperty</em></span><span style="color: maroon;">(</span><span style="color: red;">'ISClustered'</span><span style="color: maroon;">)</span><span style="color: maroon;">)</span>&#160;<span style="color: silver;">=</span>&#160;<span style="color: black;">0</span> <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: blue;">THEN</span>&#160;<span style="color: red;">'NOT&#160;Clustered'</span> <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: blue;">ELSE</span>&#160;<span style="color: red;">'INVALID&#160;INPUT/ERROR'</span> <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: blue;">END</span><span style="color: maroon;">)</span>&#160;<span style="color: blue;">AS</span>&#160;<span style="color: red;">'FAILOVER&#160;CLUSTERED'</span><span style="color: silver;">,</span> <br /> <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: maroon;">(</span><span style="color: blue;">CASE</span>&#160;<span style="color: blue;">WHEN</span>&#160;<span style="color: fuchsia;"><em>CONVERT</em></span><span style="color: maroon;">(</span><span style="color: black;"><em>CHAR</em></span><span style="color: maroon;">(</span><span style="color: black;">30</span><span style="color: maroon;">)</span><span style="color: silver;">,</span>&#160;<span style="color: fuchsia;"><em>Serverproperty</em></span><span style="color: maroon;">(</span><span style="color: red;">'ISIntegratedSecurityOnly'</span><span style="color: maroon;">)</span><span style="color: maroon;">)</span>&#160;<span style="color: silver;">=</span>&#160;<span style="color: black;">1</span> <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: blue;">THEN</span>&#160;<span style="color: red;">'Integrated&#160;Security&#160;'</span> <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: blue;">WHEN</span>&#160;<span style="color: fuchsia;"><em>CONVERT</em></span><span style="color: maroon;">(</span><span style="color: black;"><em>CHAR</em></span><span style="color: maroon;">(</span><span style="color: black;">30</span><span style="color: maroon;">)</span><span style="color: silver;">,</span>&#160;<span style="color: fuchsia;"><em>Serverproperty</em></span><span style="color: maroon;">(</span><span style="color: red;">'ISIntegratedSecurityOnly'</span><span style="color: maroon;">)</span><span style="color: maroon;">)</span>&#160;<span style="color: silver;">=</span>&#160;<span style="color: black;">0</span> <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: blue;">THEN</span>&#160;<span style="color: red;">'SQL&#160;Server&#160;Security&#160;'</span> <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: blue;">ELSE</span>&#160;<span style="color: red;">'INVALID&#160;INPUT/ERROR'</span> <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: blue;">END</span><span style="color: maroon;">)</span>&#160;<span style="color: blue;">AS</span>&#160;<span style="color: red;">'SECURITY'</span><span style="color: silver;">,</span> <br /> <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: maroon;">(</span><span style="color: blue;">CASE</span>&#160;<span style="color: blue;">WHEN</span>&#160;<span style="color: fuchsia;"><em>CONVERT</em></span><span style="color: maroon;">(</span><span style="color: black;"><em>CHAR</em></span><span style="color: maroon;">(</span><span style="color: black;">30</span><span style="color: maroon;">)</span><span style="color: silver;">,</span>&#160;<span style="color: fuchsia;"><em>Serverproperty</em></span><span style="color: maroon;">(</span><span style="color: red;">'ISSingleUser'</span><span style="color: maroon;">)</span><span style="color: maroon;">)</span>&#160;<span style="color: silver;">=</span>&#160;<span style="color: black;">1</span> <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: blue;">THEN</span>&#160;<span style="color: red;">'Single&#160;User'</span> <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: blue;">WHEN</span>&#160;<span style="color: fuchsia;"><em>CONVERT</em></span><span style="color: maroon;">(</span><span style="color: black;"><em>CHAR</em></span><span style="color: maroon;">(</span><span style="color: black;">30</span><span style="color: maroon;">)</span><span style="color: silver;">,</span>&#160;<span style="color: fuchsia;"><em>Serverproperty</em></span><span style="color: maroon;">(</span><span style="color: red;">'ISSingleUser'</span><span style="color: maroon;">)</span><span style="color: maroon;">)</span>&#160;<span style="color: silver;">=</span>&#160;<span style="color: black;">0</span> <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: blue;">THEN</span>&#160;<span style="color: red;">'Multi&#160;User'</span> <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: blue;">ELSE</span>&#160;<span style="color: red;">'INVALID&#160;INPUT/ERROR'</span> <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: blue;">END</span><span style="color: maroon;">)</span>&#160;<span style="color: blue;">AS</span>&#160;<span style="color: red;">'USER&#160;MODE'</span><span style="color: silver;">,</span> <br /> <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: fuchsia;"><em>CONVERT</em></span><span style="color: maroon;">(</span><span style="color: black;"><em>CHAR</em></span><span style="color: maroon;">(</span><span style="color: black;">30</span><span style="color: maroon;">)</span><span style="color: silver;">,</span>&#160;<span style="color: fuchsia;"><em>Serverproperty</em></span><span style="color: maroon;">(</span><span style="color: red;">'COLLATION'</span><span style="color: maroon;">)</span><span style="color: maroon;">)</span>&#160;<span style="color: blue;">AS</span>&#160;<span style="color: maroon;">COLLATION</span><span style="color: silver;">,</span> <br />&#160;&#160;&#160;&#160;<span style="color: fuchsia;"><em>Getdate</em></span><span style="color: maroon;">(</span><span style="color: maroon;">)</span>&#160;<span style="color: blue;">AS</span>&#160;<span style="color: maroon;">RunTime</span><span style="color: silver;">,</span> <br />&#160;&#160;&#160;&#160;<span style="color: #8000ff;">@@SPID</span>&#160;<span style="color: blue;">AS</span>&#160;<span style="color: red;">'ID'</span><span style="color: silver;">,</span> <br />&#160;&#160;&#160;&#160;<span style="color: blue;">SYSTEM_USER</span>&#160;<span style="color: blue;">AS</span>&#160;<span style="color: red;">'Login&#160;Name?'</span><span style="color: silver;">,</span> <br />&#160;&#160;&#160;&#160;<span style="color: blue;">USER</span>&#160;<span style="color: blue;">AS</span>&#160;<span style="color: red;">'User&#160;Name'</span><span style="color: silver;">;</span><span style="color: maroon;">go</span> <br /><span style="color: green;"><em>--&#160;END&#160;SQL&#160;Server&#160;Information&#160;--</em></span> </span></div>
<p><a href="http://www.insidesql.org/blogs/media/blogs/tosc/sql_server_informations.sql?mtime=1361375299">sql_server_informations.sql</a></p><div class="item_footer"><br /><p><em>"Try not to become a man of success but rather to become a man of value."</em><br />Albert Einstein</p></div>]]></content:encoded>
								<comments>http://www.insidesql.org/blogs/tosc/2013/02/20/sql-server-information#comments</comments>
			<wfw:commentRss>http://www.insidesql.org/blogs/tosc/?tempskin=_rss2&#38;disp=comments&#38;p=3413</wfw:commentRss>
		</item>
				<item>
			<title>SQL Server 2012 Service Pack 1(SP1) Customer Technology Preview 4 (CTP4) Available</title>
			<link>http://www.insidesql.org/blogs/tosc/2012/09/21/sql-server-2012-sp1-ctp4-available</link>
			<pubDate>Fri, 21 Sep 2012 05:58:00 +0000</pubDate>			<dc:creator>Torsten Schuessler</dc:creator>
			<category domain="main">SQL Server</category>			<guid isPermaLink="false">3330@http://www.insidesql.org/blogs/</guid>
						<description>&lt;p&gt;MICROSOFT&amp;#174; SQL SERVER&amp;#174; 2012 SERVICE PACK 1 (SP1), COMMUNITY TECHNOLOGY PREVIEW 4 (CTP4)&lt;/p&gt;
&lt;p&gt;Download:&lt;br /&gt; &lt;a href=&quot;http://go.microsoft.com/fwlink/?LinkID=257796&quot; target=&quot;_blank&quot;&gt;SQL Server 2012 SP1 CTP4&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://go.microsoft.com/fwlink/?LinkID=257783&amp;amp;&quot; target=&quot;_blank&quot;&gt;SQL Server 2012 SP1 CTP4 Express&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://go.microsoft.com/fwlink/?LinkID=263965&amp;amp;&quot; target=&quot;_blank&quot;&gt;SQL Server 2012 SP1 CTP4 Feature Pack&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The SQL Server 2012 builds that were released after SQL Server 2012 was released:&lt;br /&gt; Download: &lt;a href=&quot;http://support.microsoft.com/kb/2692828/&quot; target=&quot;_blank&quot;&gt;http://support.microsoft.com/kb/2692828/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;a href=&quot;http://www.insidesql.org/blogs/tosc/2012/09/21/sql-server-2012-sp1-ctp4-available#more3330&quot;&gt;Full story &amp;raquo;&lt;/a&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;br /&gt;&lt;p&gt;&lt;em&gt;&quot;Try not to become a man of success but rather to become a man of value.&quot;&lt;/em&gt;&lt;br /&gt;Albert Einstein&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>MICROSOFT&#174; SQL SERVER&#174; 2012 SERVICE PACK 1 (SP1), COMMUNITY TECHNOLOGY PREVIEW 4 (CTP4)</p>
<p>Download:<br /> <a href="http://go.microsoft.com/fwlink/?LinkID=257796" target="_blank">SQL Server 2012 SP1 CTP4</a><br /><a href="http://go.microsoft.com/fwlink/?LinkID=257783&amp;" target="_blank">SQL Server 2012 SP1 CTP4 Express</a><br /><a href="http://go.microsoft.com/fwlink/?LinkID=263965&amp;" target="_blank">SQL Server 2012 SP1 CTP4 Feature Pack</a></p>
<p>The SQL Server 2012 builds that were released after SQL Server 2012 was released:<br /> Download: <a href="http://support.microsoft.com/kb/2692828/" target="_blank">http://support.microsoft.com/kb/2692828/</a></p>
<p></p><a href="http://www.insidesql.org/blogs/tosc/2012/09/21/sql-server-2012-sp1-ctp4-available#more3330">Full story &raquo;</a><div class="item_footer"><br /><p><em>"Try not to become a man of success but rather to become a man of value."</em><br />Albert Einstein</p></div>]]></content:encoded>
								<comments>http://www.insidesql.org/blogs/tosc/2012/09/21/sql-server-2012-sp1-ctp4-available#comments</comments>
			<wfw:commentRss>http://www.insidesql.org/blogs/tosc/?tempskin=_rss2&#38;disp=comments&#38;p=3330</wfw:commentRss>
		</item>
				<item>
			<title>Antivirus Software on SQL Server</title>
			<link>http://www.insidesql.org/blogs/tosc/2012/09/20/antivirus-software-on-sql-server</link>
			<pubDate>Thu, 20 Sep 2012 14:37:00 +0000</pubDate>			<dc:creator>Torsten Schuessler</dc:creator>
			<category domain="main">SQL Server</category>			<guid isPermaLink="false">3329@http://www.insidesql.org/blogs/</guid>
						<description>&lt;p&gt;It&amp;#8217;s an old story, but still present - &lt;strong&gt;Why or why not installing antivirus software on a database server&lt;/strong&gt;?&lt;/p&gt;
&lt;p&gt;First of all, I&amp;#8217;ve been on both sides of the debate with respect, but I can only, only partially agree to install antivirus software on a database server - e.g Microsoft SQL Server. And this only partially agreement means, first not to install antivirus software on SQL Server as many IT departments do in a standard procedure. In addition, the default settings are left untouched, so that every virtually byte is examined in real time.&lt;/p&gt;
&lt;p&gt;Have you ever examined the amount of memory, high CPU spikes or high CPU usage and last but not least your high consumer of I/O activities on your (busy) SQL Server? &lt;br /&gt;So let us take a closer look by using &lt;a title=&quot;Process Exploerer by Mark Russinovich&quot; href=&quot;http://technet.microsoft.com/de-de/sysinternals/bb896653&quot; target=&quot;_blank&quot;&gt;Process Explorer&lt;/a&gt; to identify antivirus and SQL Server tasks since start-up.&lt;/p&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;h3&gt;Identifying the SQL Server and Antivirus consumers&lt;/h3&gt;
&lt;p&gt;I prefer using Process Explorer to take a immediate first look what happens on the server, he includes many interesting counters for regarding some performance issues and more. By selecting &lt;em&gt;View&lt;/em&gt;-&lt;em&gt;Select Columns&amp;#8230;&lt;/em&gt;, we can add interesting counters such as Private Bytes, Working Set, Threads, Handles, I/O Reads, I/O Read Bytes, I/O Writes, I/O Write Bytes, CPU Time &amp;#8211; as shown in the screenshot below.&lt;/p&gt;
&lt;div class=&quot;image_block&quot;&gt;&lt;a href=&quot;http://www.insidesql.org/blogs/media/blogs/tosc/pe_reads_writes.png?mtime=1348132443&quot;&gt;&lt;img style=&quot;vertical-align: middle;&quot; src=&quot;http://www.insidesql.org/blogs/media/blogs/tosc/pe_reads_writes.png?mtime=1348132443&quot; alt=&quot;Process Explorer Private Bytes, Working Set, Threads, Handles, I/O Reads, I/O Read Bytes, I/O Writes, I/O Write Bytes, CPU Time&quot; width=&quot;640&quot; height=&quot;108&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;The screenshot above shows that while the ntrtscan.exe (Real-time Scan Service) has read 70% of the bytes of SQL Server, it has performed 27 times as much read I/O as the read activity isn&amp;#8217;t as efficient as SQL Server. And the tmlisten.exe (antivirus communication service) has only write 7% of the bytes of SQL Server, but it has performed four times as much write I/O as the write activity of SQL Server.&lt;/p&gt;
&lt;p&gt;Now I want to see the leaders of high I/O Reads on my server by filtering I/O Reads (see screenshot below).&lt;/p&gt;
&lt;div class=&quot;image_block&quot;&gt;&lt;a href=&quot;http://www.insidesql.org/blogs/media/blogs/tosc/pe_reads_leader.png?mtime=1348133098&quot;&gt;&lt;img style=&quot;vertical-align: middle;&quot; src=&quot;http://www.insidesql.org/blogs/media/blogs/tosc/pe_reads_leader.png?mtime=1348133098&quot; alt=&quot;Process Explorer - Filter high I/O Reads&quot; width=&quot;640&quot; height=&quot;66&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;The first three consumers of I/O Reads are:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Antivirus (ntrtscan) with 111.641.100 Reads&lt;/li&gt;
&lt;li&gt;SQL Server (sqlservr) with 4.622.225 Reads&lt;/li&gt;
&lt;li&gt;Antivirus (tmlisten) with 2409809 Reads&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Same doing on I/O Writes:&lt;/p&gt;
&lt;div class=&quot;image_block&quot;&gt;&lt;a href=&quot;http://www.insidesql.org/blogs/media/blogs/tosc/pe_writes_leader.png?mtime=1348133558&quot;&gt;&lt;img style=&quot;vertical-align: middle;&quot; src=&quot;http://www.insidesql.org/blogs/media/blogs/tosc/pe_writes_leader.png?mtime=1348133558&quot; alt=&quot;Process Explorer - Filter high I/O Writes&quot; width=&quot;640&quot; height=&quot;65&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;Antivirus (tmlisten) with 31.124.046 Writes&lt;/li&gt;
&lt;li&gt;SQL Server (sqlservr) with 9.785.283 Writes&lt;/li&gt;
&lt;li&gt;ReportingServices with 1.715.489 Writes&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;So, it&amp;#8217;s possible for antivirus to consume many times of I/O&amp;#8217;s of SQL Server which can really hamper performance on your (&lt;em&gt;busy&lt;/em&gt;) SQL Server. It is possible that the antivirus is consuming more than 50% of total I/O activities! (Please note the recommendations to &lt;a title=&quot;KB967576&quot; href=&quot;http://support.microsoft.com/kb/967576/&quot; target=&quot;_blank&quot;&gt;Microsoft SQL Server Database Engine Input/Output Requirements&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;h3&gt;And what does Microsoft say for antivirus on your SQL Server (&lt;a title=&quot;How to choose antivirus software to run on computers that are running SQL Server&quot; href=&quot;http://support.microsoft.com/kb/309422&quot; target=&quot;_blank&quot;&gt;KB309422&lt;/a&gt;)?&lt;/h3&gt;
&lt;blockquote&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&quot;&lt;em&gt;We strongly recommend that you &lt;span style=&quot;text-decoration: underline;&quot;&gt;individually assess the security risk&lt;/span&gt; for each computer that is running SQL Server in your environment and that you &lt;span style=&quot;text-decoration: underline;&quot;&gt;select the tools that are appropriate for the security risk level&lt;/span&gt; of each computer that is running SQL Server. Additionally, we recommend that before you roll out any virus-protection project, you &lt;span style=&quot;text-decoration: underline;&quot;&gt;test the whole system under a full load&lt;/span&gt; to measure any changes in stability and performance.&lt;br /&gt;Virus protection software requires some system resources to execute. You must perform testing before and after you install your antivirus software to &lt;span style=&quot;text-decoration: underline;&quot;&gt;determine whether there is any performance effect&lt;/span&gt; on the computer that is running SQL Server.&lt;/em&gt;&quot;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;In my opinion it is &lt;em&gt;very carefully worded&lt;/em&gt;, with a &amp;#8220;&lt;strong&gt;It depends on &amp;#8230;&lt;/strong&gt;&amp;#8221; &amp;#8211; &lt;span style=&quot;color: #ff0000;&quot;&gt;but they help us&lt;/span&gt;!&lt;/p&gt;
&lt;p&gt;Read this KB very carefully with you Antivirus Administrator, talk with him about virus risks on the server, performance effects on a (busy) SQL Server and how intrusive the antivirus is at the ratio of the security risk level. In addition read also &lt;a title=&quot;Virus scanning recommendations for Enterprise computers that are running currently supported versions of Windows&quot; href=&quot;http://support.microsoft.com/kb/822158&quot; target=&quot;_blank&quot;&gt;KB822158&lt;/a&gt;, there are further recommendations for the windows server and should be applied as well and &lt;span style=&quot;text-decoration: underline;&quot;&gt;first&lt;/span&gt;!&lt;/p&gt;
&lt;p&gt;I don&amp;#8217;t want to repeat these KBs, but here are some recommended must reads:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;dl&gt;&lt;dd&gt;&lt;img src=&quot;http://www.insidesql.org/blogs/media/blogs/tosc/downarrow.gif?mtime=1348136610&quot; alt=&quot;&quot; width=&quot;10&quot; height=&quot;10&quot; /&gt;&amp;#160;&lt;strong&gt;Turn off scanning of Windows Update or Automatic Update related files&lt;/strong&gt;&lt;/dd&gt;&lt;dd&gt;&lt;img src=&quot;http://www.insidesql.org/blogs/media/blogs/tosc/downarrow.gif?mtime=1348136610&quot; alt=&quot;&quot; width=&quot;10&quot; height=&quot;10&quot; /&gt;&amp;#160;&lt;strong&gt;Turn off scanning of Windows Security files&lt;/strong&gt;&lt;/dd&gt;&lt;dd&gt;&lt;img src=&quot;http://www.insidesql.org/blogs/media/blogs/tosc/downarrow.gif?mtime=1348136610&quot; alt=&quot;&quot; width=&quot;10&quot; height=&quot;10&quot; /&gt;&amp;#160;&lt;strong&gt;Turn off scanning of Group Policy related files&lt;/strong&gt;&lt;/dd&gt;&lt;dd&gt;&lt;img src=&quot;http://www.insidesql.org/blogs/media/blogs/tosc/downarrow.gif?mtime=1348136610&quot; alt=&quot;&quot; width=&quot;10&quot; height=&quot;10&quot; /&gt;&amp;#160;&lt;strong&gt;Directories and file-name extensions to exclude from virus scanning&lt;/strong&gt;&lt;/dd&gt;&lt;dd&gt;&lt;img src=&quot;http://www.insidesql.org/blogs/media/blogs/tosc/downarrow.gif?mtime=1348136610&quot; alt=&quot;&quot; width=&quot;10&quot; height=&quot;10&quot; /&gt;&amp;#160;&lt;strong&gt;Processes to exclude from virus scanning&lt;/strong&gt;&lt;/dd&gt;&lt;dd&gt;&lt;img src=&quot;http://www.insidesql.org/blogs/media/blogs/tosc/downarrow.gif?mtime=1348136610&quot; alt=&quot;&quot; width=&quot;10&quot; height=&quot;10&quot; /&gt;&amp;#160;&lt;strong&gt;Considerations for clustering&lt;/strong&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;AND&lt;/span&gt;&lt;/strong&gt; - consider an external virus scan against your SQL Server, which is possible in most enterprise antivirus products &amp;#8211; often you needn&amp;#8217;t a real time virus scan, it belongs to the security risk level!&lt;/p&gt;
&lt;p&gt;I wish you a nice&amp;#160; day,&lt;br /&gt;&lt;a href=&quot;http://feeds2.feedburner.com/TorstenSchuessler&quot; target=&quot;_blank&quot;&gt;tosc&lt;/a&gt;&lt;/p&gt;
&lt;div class=&quot;image_block&quot;&gt;&lt;a href=&quot;http://feeds.feedburner.com/~r/TorstenSchuessler/~6/1&quot; target=&quot;_blank&quot;&gt;&lt;img style=&quot;border: 0;&quot; src=&quot;http://feeds.feedburner.com/TorstenSchuessler.1.gif&quot; alt=&quot;Torsten Schuessler&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;br /&gt;&lt;p&gt;&lt;em&gt;&quot;Try not to become a man of success but rather to become a man of value.&quot;&lt;/em&gt;&lt;br /&gt;Albert Einstein&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>It&#8217;s an old story, but still present - <strong>Why or why not installing antivirus software on a database server</strong>?</p>
<p>First of all, I&#8217;ve been on both sides of the debate with respect, but I can only, only partially agree to install antivirus software on a database server - e.g Microsoft SQL Server. And this only partially agreement means, first not to install antivirus software on SQL Server as many IT departments do in a standard procedure. In addition, the default settings are left untouched, so that every virtually byte is examined in real time.</p>
<p>Have you ever examined the amount of memory, high CPU spikes or high CPU usage and last but not least your high consumer of I/O activities on your (busy) SQL Server? <br />So let us take a closer look by using <a title="Process Exploerer by Mark Russinovich" href="http://technet.microsoft.com/de-de/sysinternals/bb896653" target="_blank">Process Explorer</a> to identify antivirus and SQL Server tasks since start-up.</p>
<p>&#160;</p>
<h3>Identifying the SQL Server and Antivirus consumers</h3>
<p>I prefer using Process Explorer to take a immediate first look what happens on the server, he includes many interesting counters for regarding some performance issues and more. By selecting <em>View</em>-<em>Select Columns&#8230;</em>, we can add interesting counters such as Private Bytes, Working Set, Threads, Handles, I/O Reads, I/O Read Bytes, I/O Writes, I/O Write Bytes, CPU Time &#8211; as shown in the screenshot below.</p>
<div class="image_block"><a href="http://www.insidesql.org/blogs/media/blogs/tosc/pe_reads_writes.png?mtime=1348132443"><img style="vertical-align: middle;" src="http://www.insidesql.org/blogs/media/blogs/tosc/pe_reads_writes.png?mtime=1348132443" alt="Process Explorer Private Bytes, Working Set, Threads, Handles, I/O Reads, I/O Read Bytes, I/O Writes, I/O Write Bytes, CPU Time" width="640" height="108" /></a></div>
<p>The screenshot above shows that while the ntrtscan.exe (Real-time Scan Service) has read 70% of the bytes of SQL Server, it has performed 27 times as much read I/O as the read activity isn&#8217;t as efficient as SQL Server. And the tmlisten.exe (antivirus communication service) has only write 7% of the bytes of SQL Server, but it has performed four times as much write I/O as the write activity of SQL Server.</p>
<p>Now I want to see the leaders of high I/O Reads on my server by filtering I/O Reads (see screenshot below).</p>
<div class="image_block"><a href="http://www.insidesql.org/blogs/media/blogs/tosc/pe_reads_leader.png?mtime=1348133098"><img style="vertical-align: middle;" src="http://www.insidesql.org/blogs/media/blogs/tosc/pe_reads_leader.png?mtime=1348133098" alt="Process Explorer - Filter high I/O Reads" width="640" height="66" /></a></div>
<p>The first three consumers of I/O Reads are:</p>
<ol>
<li>Antivirus (ntrtscan) with 111.641.100 Reads</li>
<li>SQL Server (sqlservr) with 4.622.225 Reads</li>
<li>Antivirus (tmlisten) with 2409809 Reads</li>
</ol>
<p>Same doing on I/O Writes:</p>
<div class="image_block"><a href="http://www.insidesql.org/blogs/media/blogs/tosc/pe_writes_leader.png?mtime=1348133558"><img style="vertical-align: middle;" src="http://www.insidesql.org/blogs/media/blogs/tosc/pe_writes_leader.png?mtime=1348133558" alt="Process Explorer - Filter high I/O Writes" width="640" height="65" /></a></div>
<ol>
<li>Antivirus (tmlisten) with 31.124.046 Writes</li>
<li>SQL Server (sqlservr) with 9.785.283 Writes</li>
<li>ReportingServices with 1.715.489 Writes</li>
</ol>
<p>So, it&#8217;s possible for antivirus to consume many times of I/O&#8217;s of SQL Server which can really hamper performance on your (<em>busy</em>) SQL Server. It is possible that the antivirus is consuming more than 50% of total I/O activities! (Please note the recommendations to <a title="KB967576" href="http://support.microsoft.com/kb/967576/" target="_blank">Microsoft SQL Server Database Engine Input/Output Requirements</a>)</p>
<p>&#160;</p>
<h3>And what does Microsoft say for antivirus on your SQL Server (<a title="How to choose antivirus software to run on computers that are running SQL Server" href="http://support.microsoft.com/kb/309422" target="_blank">KB309422</a>)?</h3>
<blockquote><p> </p><p><br /><br />"<em>We strongly recommend that you <span style="text-decoration: underline;">individually assess the security risk</span> for each computer that is running SQL Server in your environment and that you <span style="text-decoration: underline;">select the tools that are appropriate for the security risk level</span> of each computer that is running SQL Server. Additionally, we recommend that before you roll out any virus-protection project, you <span style="text-decoration: underline;">test the whole system under a full load</span> to measure any changes in stability and performance.<br />Virus protection software requires some system resources to execute. You must perform testing before and after you install your antivirus software to <span style="text-decoration: underline;">determine whether there is any performance effect</span> on the computer that is running SQL Server.</em>"</p></blockquote>
<p>In my opinion it is <em>very carefully worded</em>, with a &#8220;<strong>It depends on &#8230;</strong>&#8221; &#8211; <span style="color: #ff0000;">but they help us</span>!</p>
<p>Read this KB very carefully with you Antivirus Administrator, talk with him about virus risks on the server, performance effects on a (busy) SQL Server and how intrusive the antivirus is at the ratio of the security risk level. In addition read also <a title="Virus scanning recommendations for Enterprise computers that are running currently supported versions of Windows" href="http://support.microsoft.com/kb/822158" target="_blank">KB822158</a>, there are further recommendations for the windows server and should be applied as well and <span style="text-decoration: underline;">first</span>!</p>
<p>I don&#8217;t want to repeat these KBs, but here are some recommended must reads:</p>
<blockquote>
<p>&#160;</p>
<p><br /></p><dl><dd><img src="http://www.insidesql.org/blogs/media/blogs/tosc/downarrow.gif?mtime=1348136610" alt="" width="10" height="10" />&#160;<strong>Turn off scanning of Windows Update or Automatic Update related files</strong></dd><dd><img src="http://www.insidesql.org/blogs/media/blogs/tosc/downarrow.gif?mtime=1348136610" alt="" width="10" height="10" />&#160;<strong>Turn off scanning of Windows Security files</strong></dd><dd><img src="http://www.insidesql.org/blogs/media/blogs/tosc/downarrow.gif?mtime=1348136610" alt="" width="10" height="10" />&#160;<strong>Turn off scanning of Group Policy related files</strong></dd><dd><img src="http://www.insidesql.org/blogs/media/blogs/tosc/downarrow.gif?mtime=1348136610" alt="" width="10" height="10" />&#160;<strong>Directories and file-name extensions to exclude from virus scanning</strong></dd><dd><img src="http://www.insidesql.org/blogs/media/blogs/tosc/downarrow.gif?mtime=1348136610" alt="" width="10" height="10" />&#160;<strong>Processes to exclude from virus scanning</strong></dd><dd><img src="http://www.insidesql.org/blogs/media/blogs/tosc/downarrow.gif?mtime=1348136610" alt="" width="10" height="10" />&#160;<strong>Considerations for clustering</strong></dd></dl></blockquote>
<p><strong><span style="color: #ff0000;">AND</span></strong> - consider an external virus scan against your SQL Server, which is possible in most enterprise antivirus products &#8211; often you needn&#8217;t a real time virus scan, it belongs to the security risk level!</p>
<p>I wish you a nice&#160; day,<br /><a href="http://feeds2.feedburner.com/TorstenSchuessler" target="_blank">tosc</a></p>
<div class="image_block"><a href="http://feeds.feedburner.com/~r/TorstenSchuessler/~6/1" target="_blank"><img style="border: 0;" src="http://feeds.feedburner.com/TorstenSchuessler.1.gif" alt="Torsten Schuessler" /></a></div><div class="item_footer"><br /><p><em>"Try not to become a man of success but rather to become a man of value."</em><br />Albert Einstein</p></div>]]></content:encoded>
								<comments>http://www.insidesql.org/blogs/tosc/2012/09/20/antivirus-software-on-sql-server#comments</comments>
			<wfw:commentRss>http://www.insidesql.org/blogs/tosc/?tempskin=_rss2&#38;disp=comments&#38;p=3329</wfw:commentRss>
		</item>
				<item>
			<title>SQL Server 2012 - New and Modified Dynamic Management Views and Functions - DMVs</title>
			<link>http://www.insidesql.org/blogs/tosc/2012/09/13/sql-server-2012-new-and-modified-dynamic-management-views-and-functions</link>
			<pubDate>Thu, 13 Sep 2012 13:36:00 +0000</pubDate>			<dc:creator>Torsten Schuessler</dc:creator>
			<category domain="main">SQL Server</category>			<guid isPermaLink="false">3299@http://www.insidesql.org/blogs/</guid>
						<description>&lt;div&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;p&gt;That&#039;s just about the limit. In &lt;a title=&quot;BOL&quot; href=&quot;http://msdn.microsoft.com/en-us/library/ms130214&quot; target=&quot;_blank&quot;&gt;Books Online for SQL Server 2012&lt;/a&gt; (BOL) by reading &lt;a title=&quot;Database Engine SQL Server 2012&quot; href=&quot;http://msdn.microsoft.com/en-us/library/bb510411&quot; target=&quot;_blank&quot;&gt;What&#039;s New (Database Engine)&lt;/a&gt;, I came around the topic Manageability Enhancements (Database Engine) and its paragraph New and Modified Dynamic Management Views and Functions, and I only see six added or modified &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms177862&quot; target=&quot;_blank&quot;&gt;system views&lt;/a&gt;. And I think by myself, these are the same six DMVs I had read in CTP Denali BOL - no update?&lt;/p&gt;
&lt;p&gt;But I knew that there are more new DMVs. I do not mean the AlwaysOn Availability Groups Dynamic Management Views and Functions of the AlwaysOn feature etc. ... - So, I think by myself - &lt;strong&gt;&lt;em&gt;figure out&lt;/em&gt;&lt;/strong&gt;!&lt;/p&gt;
&lt;p&gt;OK, I have a SQL Server 2008 R2 instance and a SQL Server 2012 instance (both are only for testing, &lt;em&gt;no production environment!&lt;/em&gt;). But I don&#039;t want to query each instance and copy the result for further investigations in excel - like this way:&lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;&quot; title=&quot;simple&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: Consolas; color: blue; mso-ansi-language: EN-US;&quot; lang=&quot;EN-US&quot;&gt;USE&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: Consolas; mso-ansi-language: EN-US;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: teal;&quot;&gt;[master]&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;GO&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: Consolas; color: blue; mso-ansi-language: EN-US;&quot; lang=&quot;EN-US&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: Consolas; mso-ansi-language: EN-US;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: teal;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;type_desc&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: Consolas; color: blue; mso-ansi-language: EN-US;&quot; lang=&quot;EN-US&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: Consolas; mso-ansi-language: EN-US;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: lime;&quot;&gt;sys&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: lime;&quot;&gt;system_objects&lt;/span&gt;&amp;#160; &lt;span style=&quot;color: blue;&quot;&gt;WITH &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;NOLOCK&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: Consolas; color: blue; mso-ansi-language: EN-US;&quot; lang=&quot;EN-US&quot;&gt;WHERE&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: Consolas; mso-ansi-language: EN-US;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: teal;&quot;&gt;name&lt;/span&gt; &lt;span style=&quot;color: gray;&quot;&gt;LIKE&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#039;dm_%&#039;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: Consolas; color: blue; mso-ansi-language: EN-US;&quot; lang=&quot;EN-US&quot;&gt;ORDER&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: Consolas; mso-ansi-language: EN-US;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;BY&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;name&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;OPTION &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;RECOMPILE&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;GO&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;h3&gt;New Dynamic Management Views and Functions in SQL Server 2012&lt;/h3&gt;
&lt;p&gt;I create a valid linked server point form SQL Server 2012 to SQL Server 2008 R2 (@server = N&#039;SQL2008R2&#039;), then&amp;#160;I run below query from SQL Server 2012 - which will find DMVs that did not exists in 2008 R2 (&#039;SQL2008R2&#039;) - &amp;#160;comparing the datasets in &lt;span style=&quot;color: lime;&quot;&gt;sys&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: lime;&quot;&gt;system_objects&lt;/span&gt;.&lt;/p&gt;
&lt;blockquote style=&quot;color: #000000; font-family: &#039;Segoe UI&#039;; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; background-color: #ffffff; padding-left: 90px;&quot; title=&quot;Query DMVs via LinkedServer SQL Server 2012 -&amp;gt; SQL Server 2008 R2 SP1!!!&quot;&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&amp;#160;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: Consolas; color: blue; mso-ansi-language: EN-US;&quot; lang=&quot;EN-US&quot;&gt;USE&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: Consolas; mso-ansi-language: EN-US;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: teal;&quot;&gt;[master]&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;; &amp;#160;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; line-height: 115%; color: green;&quot; lang=&quot;EN-US&quot;&gt;--- execute on SQL Server 2012&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;GO&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;SELECT&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: red;&quot;&gt;N&#039;sys.&#039;&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;+&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: teal;&quot;&gt;d&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: teal;&quot;&gt;[name]&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: teal;&quot;&gt;&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: blue;&quot;&gt;AS&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: teal;&quot;&gt;[DMV NAME]&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;,&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: teal;&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160;d&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: teal;&quot;&gt;[type]&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: blue;&quot;&gt;AS&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: teal;&quot;&gt;[DMV TYPE]&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;,&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: teal;&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160;d&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: teal;&quot;&gt;type_desc&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: blue;&quot;&gt;AS&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: teal;&quot;&gt;[DMV TYPE DESC]&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;FROM&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;#160; &amp;#160; &amp;#160;&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: teal;&quot;&gt;[master]&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: lime;&quot;&gt;sys&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: lime;&quot;&gt;system_objects&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: blue;&quot;&gt;AS&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: teal;&quot;&gt;d&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: blue;&quot;&gt;WITH &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: blue;&quot;&gt;NOLOCK&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: Consolas; color: gray;&quot; lang=&quot;EN-US&quot;&gt;LEFT&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: Consolas;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: gray;&quot;&gt;OUTER&lt;/span&gt; &lt;span style=&quot;color: gray;&quot;&gt;JOIN&lt;/span&gt;&amp;#160;&lt;span style=&quot;color: green;&quot;&gt;--- LinkedServer SQL Server 2008 R2&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: teal;&quot;&gt;&amp;#160; &amp;#160; &amp;#160; [SQL2008R2]&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: teal;&quot;&gt;[master]&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: lime;&quot;&gt;sys&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: lime;&quot;&gt;system_objects&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: blue;&quot;&gt;AS&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: teal;&quot;&gt;r&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: blue;&quot;&gt;WITH &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: blue;&quot;&gt;NOLOCK&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;ON&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: teal;&quot;&gt;&amp;#160; &amp;#160; &amp;#160; d&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: teal;&quot;&gt;[name]&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;=&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: teal;&quot;&gt;r&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: teal;&quot;&gt;[name] ---* collate Latin1_General_CI_AS&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: teal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: Consolas; color: gray;&quot;&gt;&amp;#160; &amp;#160; &amp;#160; AND&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: Consolas;&quot;&gt; &lt;span style=&quot;color: teal;&quot;&gt;d&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;[schema_id]&lt;/span&gt; &lt;span style=&quot;color: gray;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;r&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;[schema_id]&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;WHERE&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;#160; &amp;#160; &amp;#160;&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: teal;&quot;&gt;r&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: teal;&quot;&gt;[name]&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;IS&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;NULL&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;#160; &amp;#160; &amp;#160;&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;AND&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: teal;&quot;&gt;d&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: teal;&quot;&gt;[schema_id]&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; 4&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;#160; &amp;#160; &amp;#160;&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;AND&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: teal;&quot;&gt;d&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: teal;&quot;&gt;[is_ms_shipped]&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; 1&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;#160; &amp;#160; &amp;#160;&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;AND&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: teal;&quot;&gt;d&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: teal;&quot;&gt;[name]&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;like&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: red;&quot;&gt;&#039;dm_%&#039;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: Consolas; color: blue;&quot; lang=&quot;EN-US&quot;&gt;ORDER&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: Consolas;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;BY&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;#160; &amp;#160; &amp;#160;&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: teal;&quot;&gt;d&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: teal;&quot;&gt;[name]&amp;#160;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: blue;&quot;&gt;OPTION &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: blue;&quot;&gt;RECOMPILE&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; color: gray;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;GO&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h4&gt;Linked Query Result&lt;/h4&gt;
&lt;p&gt;I get this resultset, and&lt;em&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;YES SQL Server 2012 has really 36 new Dynamic Management Views and Functions&lt;/span&gt;&lt;/em&gt;.&lt;/p&gt;
&lt;table dir=&quot;ltr&quot; border=&quot;0&quot; cellspacing=&quot;1&quot; cellpadding=&quot;2&quot; align=&quot;center&quot;&gt;&lt;caption style=&quot;text-align: left;&quot;&gt;&amp;#160;&lt;/caption&gt;
&lt;thead&gt;
&lt;tr&gt;&lt;th&gt;DMV NAME&lt;/th&gt;&lt;th&gt;DMV TYPE&lt;/th&gt;&lt;th&gt;DMV TYPE DESC&lt;/th&gt;&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_db_database_page_allocations&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_db_database_page_allocations&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;IF&lt;/td&gt;
&lt;td&gt;SQL_INLINE_TABLE_VALUED_FUNCTION&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_db_fts_index_physical_stats&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_db_fts_index_physical_stats&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;V&amp;#160;&lt;/td&gt;
&lt;td&gt;VIEW&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_db_log_space_usage&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_db_log_space_usage&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;V&amp;#160;&lt;/td&gt;
&lt;td&gt;VIEW&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_db_objects_disabled_on_compatibility_level_change&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_db_objects_disabled_on_compatibility_level_change&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;IF&lt;/td&gt;
&lt;td&gt;SQL_INLINE_TABLE_VALUED_FUNCTION&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_db_uncontained_entities&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_db_uncontained_entities&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_db_uncontained_entities&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;V&amp;#160;&lt;/td&gt;
&lt;td&gt;VIEW&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_exec_describe_first_result_set&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_exec_describe_first_result_set&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_exec_describe_first_result_set&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;IF&lt;/td&gt;
&lt;td&gt;SQL_INLINE_TABLE_VALUED_FUNCTION&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_exec_describe_first_result_set_for_object&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_exec_describe_first_result_set_for_object&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_exec_describe_first_result_set_for_object&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;IF&lt;/td&gt;
&lt;td&gt;SQL_INLINE_TABLE_VALUED_FUNCTION&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_filestream_non_transacted_handles&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_filestream_non_transacted_handles&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_filestream_non_transacted_handles&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;V&amp;#160;&lt;/td&gt;
&lt;td&gt;VIEW&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_fts_index_keywords_by_property&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_fts_index_keywords_by_property&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_fts_index_keywords_by_property&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;IF&lt;/td&gt;
&lt;td&gt;SQL_INLINE_TABLE_VALUED_FUNCTION&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_fts_semantic_similarity_population&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_fts_semantic_similarity_population&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_fts_semantic_similarity_population&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;V&amp;#160;&lt;/td&gt;
&lt;td&gt;VIEW&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_hadr_auto_page_repair&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_hadr_auto_page_repair&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_hadr_auto_page_repair&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;V&amp;#160;&lt;/td&gt;
&lt;td&gt;VIEW&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_hadr_availability_group_states&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_hadr_availability_group_states&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_hadr_availability_group_states&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;V&amp;#160;&lt;/td&gt;
&lt;td&gt;VIEW&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_hadr_availability_replica_cluster_nodes&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_hadr_availability_replica_cluster_nodes&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_hadr_availability_replica_cluster_nodes&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;V&amp;#160;&lt;/td&gt;
&lt;td&gt;VIEW&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_hadr_availability_replica_cluster_states&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_hadr_availability_replica_cluster_states&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_hadr_availability_replica_cluster_states&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;V&amp;#160;&lt;/td&gt;
&lt;td&gt;VIEW&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_hadr_availability_replica_states&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_hadr_availability_replica_states&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_hadr_availability_replica_states&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;V&amp;#160;&lt;/td&gt;
&lt;td&gt;VIEW&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_hadr_cluster&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_hadr_cluster&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_hadr_cluster&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;V&amp;#160;&lt;/td&gt;
&lt;td&gt;VIEW&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_hadr_cluster_members&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_hadr_cluster_members&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_hadr_cluster_members&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;V&amp;#160;&lt;/td&gt;
&lt;td&gt;VIEW&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_hadr_cluster_networks&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_hadr_cluster_networks&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_hadr_cluster_networks&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;V&amp;#160;&lt;/td&gt;
&lt;td&gt;VIEW&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_hadr_database_replica_cluster_states&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_hadr_database_replica_cluster_states&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_hadr_database_replica_cluster_states&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;V&amp;#160;&lt;/td&gt;
&lt;td&gt;VIEW&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_hadr_database_replica_states&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_hadr_database_replica_states&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_hadr_database_replica_states&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;V&amp;#160;&lt;/td&gt;
&lt;td&gt;VIEW&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_hadr_instance_node_map&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_hadr_instance_node_map&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_hadr_instance_node_map&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;V&amp;#160;&lt;/td&gt;
&lt;td&gt;VIEW&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_hadr_name_id_map&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_hadr_name_id_map&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_hadr_name_id_map&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;V&amp;#160;&lt;/td&gt;
&lt;td&gt;VIEW&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_logconsumer_cachebufferrefs&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_logconsumer_cachebufferrefs&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_logconsumer_cachebufferrefs&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;IF&lt;/td&gt;
&lt;td&gt;SQL_INLINE_TABLE_VALUED_FUNCTION&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_logconsumer_privatecachebuffers&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_logconsumer_privatecachebuffers&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_logconsumer_privatecachebuffers&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;IF&lt;/td&gt;
&lt;td&gt;SQL_INLINE_TABLE_VALUED_FUNCTION&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_logpool_consumers&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_logpool_consumers&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_logpool_consumers&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;IF&lt;/td&gt;
&lt;td&gt;SQL_INLINE_TABLE_VALUED_FUNCTION&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_logpool_hashentries&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_logpool_hashentries&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_logpool_hashentries&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;V&amp;#160;&lt;/td&gt;
&lt;td&gt;VIEW&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_logpool_sharedcachebuffers&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_logpool_sharedcachebuffers&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_logpool_sharedcachebuffers&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;IF&lt;/td&gt;
&lt;td&gt;SQL_INLINE_TABLE_VALUED_FUNCTION&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_logpool_stats&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_logpool_stats&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_logpool_stats&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;V&amp;#160;&lt;/td&gt;
&lt;td&gt;VIEW&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_logpoolmgr_freepools&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_logpoolmgr_freepools&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_logpoolmgr_freepools&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;IF&lt;/td&gt;
&lt;td&gt;SQL_INLINE_TABLE_VALUED_FUNCTION&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_logpoolmgr_respoolsize&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_logpoolmgr_respoolsize&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_logpoolmgr_respoolsize&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;IF&lt;/td&gt;
&lt;td&gt;SQL_INLINE_TABLE_VALUED_FUNCTION&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_logpoolmgr_stats&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_logpoolmgr_stats&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_logpoolmgr_stats&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;IF&lt;/td&gt;
&lt;td&gt;SQL_INLINE_TABLE_VALUED_FUNCTION&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_os_cluster_properties&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_os_cluster_properties&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_os_cluster_properties&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;V&amp;#160;&lt;/td&gt;
&lt;td&gt;VIEW&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;s&lt;a title=&quot;sys.dm_os_memory_broker_clerks&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_os_memory_broker_clerks&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;ys.dm_os_memory_broker_clerks&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;V&amp;#160;&lt;/td&gt;
&lt;td&gt;VIEW&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_os_server_diagnostics_log_configurations&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_os_server_diagnostics_log_configurations&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_os_server_diagnostics_log_configurations&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;V&amp;#160;&lt;/td&gt;
&lt;td&gt;VIEW&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_resource_governor_resource_pool_affinity&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_resource_governor_resource_pool_affinity&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_resource_governor_resource_pool_affinity&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;V&amp;#160;&lt;/td&gt;
&lt;td&gt;VIEW&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;20&quot;&gt;&lt;a title=&quot;sys.dm_tcp_listener_states&quot; href=&quot;http://social.technet.microsoft.com/search/en-us?query=sys.dm_tcp_listener_states&amp;amp;refinement=30&amp;amp;x=11&amp;amp;y=14&quot; target=&quot;_blank&quot;&gt;sys.dm_tcp_listener_states&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;V&amp;#160;&lt;/td&gt;
&lt;td&gt;VIEW&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;... Now you can query Books Online for SQL Server 2012 ....&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;To struggle through these new&amp;#160;Dynamic Management Views and Functions in SQL Server 2012, will be an ongoing and hard work :-)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I wish you a nice&amp;#160; day,&lt;br /&gt;&lt;a href=&quot;http://feeds2.feedburner.com/TorstenSchuessler&quot; target=&quot;_blank&quot;&gt;tosc&lt;/a&gt;&lt;/p&gt;
&lt;div class=&quot;image_block&quot;&gt;&lt;a href=&quot;http://feeds.feedburner.com/~r/TorstenSchuessler/~6/1&quot; target=&quot;_blank&quot;&gt;&lt;img style=&quot;border: 0;&quot; src=&quot;http://feeds.feedburner.com/TorstenSchuessler.1.gif&quot; alt=&quot;Torsten Schuessler&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;br /&gt;&lt;p&gt;&lt;em&gt;&quot;Try not to become a man of success but rather to become a man of value.&quot;&lt;/em&gt;&lt;br /&gt;Albert Einstein&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<div>
<p>&#160;</p>
<p>That's just about the limit. In <a title="BOL" href="http://msdn.microsoft.com/en-us/library/ms130214" target="_blank">Books Online for SQL Server 2012</a> (BOL) by reading <a title="Database Engine SQL Server 2012" href="http://msdn.microsoft.com/en-us/library/bb510411" target="_blank">What's New (Database Engine)</a>, I came around the topic Manageability Enhancements (Database Engine) and its paragraph New and Modified Dynamic Management Views and Functions, and I only see six added or modified <a href="http://msdn.microsoft.com/en-us/library/ms177862" target="_blank">system views</a>. And I think by myself, these are the same six DMVs I had read in CTP Denali BOL - no update?</p>
<p>But I knew that there are more new DMVs. I do not mean the AlwaysOn Availability Groups Dynamic Management Views and Functions of the AlwaysOn feature etc. ... - So, I think by myself - <strong><em>figure out</em></strong>!</p>
<p>OK, I have a SQL Server 2008 R2 instance and a SQL Server 2012 instance (both are only for testing, <em>no production environment!</em>). But I don't want to query each instance and copy the result for further investigations in excel - like this way:</p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;" title="simple"><span style="font-size: 9.5pt; font-family: Consolas; color: blue; mso-ansi-language: EN-US;" lang="EN-US">USE</span><span style="font-size: 9.5pt; font-family: Consolas; mso-ansi-language: EN-US;" lang="EN-US"> <span style="color: teal;">[master]</span><span style="color: gray;">;<br /></span></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">GO<br /></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue; mso-ansi-language: EN-US;" lang="EN-US">SELECT</span><span style="font-size: 9.5pt; font-family: Consolas; mso-ansi-language: EN-US;" lang="EN-US"> <span style="color: teal;">name</span><span style="color: gray;">,</span> <span style="color: blue;">type</span><span style="color: gray;">,</span> <span style="color: teal;">type_desc<br /></span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue; mso-ansi-language: EN-US;" lang="EN-US">FROM</span><span style="font-size: 9.5pt; font-family: Consolas; mso-ansi-language: EN-US;" lang="EN-US"> <span style="color: lime;">sys</span><span style="color: gray;">.</span><span style="color: lime;">system_objects</span>&#160; <span style="color: blue;">WITH </span><span style="color: gray;">(</span><span style="color: blue;">NOLOCK</span><span style="color: gray;">)<br /></span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue; mso-ansi-language: EN-US;" lang="EN-US">WHERE</span><span style="font-size: 9.5pt; font-family: Consolas; mso-ansi-language: EN-US;" lang="EN-US"> <span style="color: teal;">name</span> <span style="color: gray;">LIKE</span> <span style="color: red;">'dm_%'<br /></span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue; mso-ansi-language: EN-US;" lang="EN-US">ORDER</span><span style="font-size: 9.5pt; font-family: Consolas; mso-ansi-language: EN-US;" lang="EN-US"> <span style="color: blue;">BY</span> <span style="color: teal;">name</span> <span style="color: blue;">OPTION </span><span style="color: gray;">(</span><span style="color: blue;">RECOMPILE</span><span style="color: gray;">);<br /></span></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">GO</span></p>
</div>
<p>&#160;</p>
<h3>New Dynamic Management Views and Functions in SQL Server 2012</h3>
<p>I create a valid linked server point form SQL Server 2012 to SQL Server 2008 R2 (@server = N'SQL2008R2'), then&#160;I run below query from SQL Server 2012 - which will find DMVs that did not exists in 2008 R2 ('SQL2008R2') - &#160;comparing the datasets in <span style="color: lime;">sys</span><span style="color: gray;">.</span><span style="color: lime;">system_objects</span>.</p>
<blockquote style="color: #000000; font-family: 'Segoe UI'; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; background-color: #ffffff; padding-left: 90px;" title="Query DMVs via LinkedServer SQL Server 2012 -&gt; SQL Server 2008 R2 SP1!!!">
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;">&#160;</p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue; mso-ansi-language: EN-US;" lang="EN-US">USE</span><span style="font-size: 9.5pt; font-family: Consolas; mso-ansi-language: EN-US;" lang="EN-US"> <span style="color: teal;">[master]</span><span style="color: gray;">; &#160;</span><span style="font-size: 9.5pt; line-height: 115%; color: green;" lang="EN-US">--- execute on SQL Server 2012</span><span style="color: gray;"><br /></span></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">GO<br /></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">SELECT<br /></span><span style="font-family: Consolas; font-size: 9.5pt;">&#160; &#160; &#160; &#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: red;">N'sys.'&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">+&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: teal;">d</span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">.</span><span style="font-family: Consolas; font-size: 9.5pt; color: teal;">[name]</span><span style="font-family: Consolas; font-size: 9.5pt; color: teal;">&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: blue;">AS&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: teal;">[DMV NAME]</span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">,<br /></span><span style="font-family: Consolas; font-size: 9.5pt; color: teal;">&#160; &#160; &#160; &#160;d</span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">.</span><span style="font-family: Consolas; font-size: 9.5pt; color: teal;">[type]&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: blue;">AS&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: teal;">[DMV TYPE]</span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">,<br /></span><span style="font-family: Consolas; font-size: 9.5pt; color: teal;">&#160; &#160; &#160; &#160;d</span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">.</span><span style="font-family: Consolas; font-size: 9.5pt; color: teal;">type_desc&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: blue;">AS&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: teal;">[DMV TYPE DESC]<br /></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">FROM<br /></span><span style="font-family: Consolas; font-size: 9.5pt;">&#160; &#160; &#160;&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: teal;">[master]</span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">.</span><span style="font-family: Consolas; font-size: 9.5pt; color: lime;">sys</span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">.</span><span style="font-family: Consolas; font-size: 9.5pt; color: lime;">system_objects&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: blue;">AS&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: teal;">d&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: blue;">WITH </span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">(</span><span style="font-family: Consolas; font-size: 9.5pt; color: blue;">NOLOCK</span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">)<br /></span><span style="font-size: 9.5pt; font-family: Consolas; color: gray;" lang="EN-US">LEFT</span><span style="font-size: 9.5pt; font-family: Consolas;" lang="EN-US"> <span style="color: gray;">OUTER</span> <span style="color: gray;">JOIN</span>&#160;<span style="color: green;">--- LinkedServer SQL Server 2008 R2<br /></span></span><span style="font-family: Consolas; font-size: 9.5pt; color: teal;">&#160; &#160; &#160; [SQL2008R2]</span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">.</span><span style="font-family: Consolas; font-size: 9.5pt; color: teal;">[master]</span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">.</span><span style="font-family: Consolas; font-size: 9.5pt; color: lime;">sys</span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">.</span><span style="font-family: Consolas; font-size: 9.5pt; color: lime;">system_objects&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: blue;">AS&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: teal;">r&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: blue;">WITH </span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">(</span><span style="font-family: Consolas; font-size: 9.5pt; color: blue;">NOLOCK</span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">)<br /></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">ON<br /></span><span style="font-family: Consolas; font-size: 9.5pt; color: teal;">&#160; &#160; &#160; d</span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">.</span><span style="font-family: Consolas; font-size: 9.5pt; color: teal;">[name]&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">=&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: teal;">r</span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">.</span><span style="font-family: Consolas; font-size: 9.5pt; color: teal;">[name] ---* collate Latin1_General_CI_AS</span><span style="font-family: Consolas; font-size: 9.5pt; color: teal;"><br /></span><span style="font-size: 9.5pt; font-family: Consolas; color: gray;">&#160; &#160; &#160; AND</span><span style="font-size: 9.5pt; font-family: Consolas;"> <span style="color: teal;">d</span><span style="color: gray;">.</span><span style="color: teal;">[schema_id]</span> <span style="color: gray;">=</span> <span style="color: teal;">r</span><span style="color: gray;">.</span><span style="color: teal;">[schema_id]<br /></span></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">WHERE<br /></span><span style="font-family: Consolas; font-size: 9.5pt;">&#160; &#160; &#160;&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: teal;">r</span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">.</span><span style="font-family: Consolas; font-size: 9.5pt; color: teal;">[name]&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">IS&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">NULL<br /></span><span style="font-family: Consolas; font-size: 9.5pt;">&#160; &#160; &#160;&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">AND&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: teal;">d</span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">.</span><span style="font-family: Consolas; font-size: 9.5pt; color: teal;">[schema_id]&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">=</span><span style="font-family: Consolas; font-size: 9.5pt;"> 4<br /></span><span style="font-family: Consolas; font-size: 9.5pt;">&#160; &#160; &#160;&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">AND&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: teal;">d</span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">.</span><span style="font-family: Consolas; font-size: 9.5pt; color: teal;">[is_ms_shipped]&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">=</span><span style="font-family: Consolas; font-size: 9.5pt;"> 1<br /></span><span style="font-family: Consolas; font-size: 9.5pt;">&#160; &#160; &#160;&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">AND&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: teal;">d</span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">.</span><span style="font-family: Consolas; font-size: 9.5pt; color: teal;">[name]&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">like&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: red;">'dm_%'<br /></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" lang="EN-US">ORDER</span><span style="font-size: 9.5pt; font-family: Consolas;" lang="EN-US"> <span style="color: blue;">BY<br /></span></span><span style="font-family: Consolas; font-size: 9.5pt;">&#160; &#160; &#160;&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: teal;">d</span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">.</span><span style="font-family: Consolas; font-size: 9.5pt; color: teal;">[name]&#160;</span><span style="font-family: Consolas; font-size: 9.5pt; color: blue;">OPTION </span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">(</span><span style="font-family: Consolas; font-size: 9.5pt; color: blue;">RECOMPILE</span><span style="font-family: Consolas; font-size: 9.5pt; color: gray;">);<br /></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">GO</span></p>
</blockquote>
<h4>Linked Query Result</h4>
<p>I get this resultset, and<em> <span style="color: #ff0000;">YES SQL Server 2012 has really 36 new Dynamic Management Views and Functions</span></em>.</p>
<table dir="ltr" border="0" cellspacing="1" cellpadding="2" align="center"><caption style="text-align: left;">&#160;</caption>
<thead>
<tr><th>DMV NAME</th><th>DMV TYPE</th><th>DMV TYPE DESC</th></tr>
</thead>
<tbody>
<tr>
<td height="20"><a href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_db_database_page_allocations&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_db_database_page_allocations</a></td>
<td>IF</td>
<td>SQL_INLINE_TABLE_VALUED_FUNCTION</td>
</tr>
<tr>
<td height="20"><a href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_db_fts_index_physical_stats&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_db_fts_index_physical_stats</a></td>
<td>V&#160;</td>
<td>VIEW</td>
</tr>
<tr>
<td height="20"><a href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_db_log_space_usage&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_db_log_space_usage</a></td>
<td>V&#160;</td>
<td>VIEW</td>
</tr>
<tr>
<td height="20"><a href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_db_objects_disabled_on_compatibility_level_change&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_db_objects_disabled_on_compatibility_level_change</a></td>
<td>IF</td>
<td>SQL_INLINE_TABLE_VALUED_FUNCTION</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_db_uncontained_entities" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_db_uncontained_entities&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_db_uncontained_entities</a></td>
<td>V&#160;</td>
<td>VIEW</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_exec_describe_first_result_set" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_exec_describe_first_result_set&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_exec_describe_first_result_set</a></td>
<td>IF</td>
<td>SQL_INLINE_TABLE_VALUED_FUNCTION</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_exec_describe_first_result_set_for_object" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_exec_describe_first_result_set_for_object&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_exec_describe_first_result_set_for_object</a></td>
<td>IF</td>
<td>SQL_INLINE_TABLE_VALUED_FUNCTION</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_filestream_non_transacted_handles" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_filestream_non_transacted_handles&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_filestream_non_transacted_handles</a></td>
<td>V&#160;</td>
<td>VIEW</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_fts_index_keywords_by_property" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_fts_index_keywords_by_property&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_fts_index_keywords_by_property</a></td>
<td>IF</td>
<td>SQL_INLINE_TABLE_VALUED_FUNCTION</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_fts_semantic_similarity_population" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_fts_semantic_similarity_population&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_fts_semantic_similarity_population</a></td>
<td>V&#160;</td>
<td>VIEW</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_hadr_auto_page_repair" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_hadr_auto_page_repair&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_hadr_auto_page_repair</a></td>
<td>V&#160;</td>
<td>VIEW</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_hadr_availability_group_states" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_hadr_availability_group_states&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_hadr_availability_group_states</a></td>
<td>V&#160;</td>
<td>VIEW</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_hadr_availability_replica_cluster_nodes" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_hadr_availability_replica_cluster_nodes&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_hadr_availability_replica_cluster_nodes</a></td>
<td>V&#160;</td>
<td>VIEW</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_hadr_availability_replica_cluster_states" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_hadr_availability_replica_cluster_states&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_hadr_availability_replica_cluster_states</a></td>
<td>V&#160;</td>
<td>VIEW</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_hadr_availability_replica_states" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_hadr_availability_replica_states&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_hadr_availability_replica_states</a></td>
<td>V&#160;</td>
<td>VIEW</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_hadr_cluster" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_hadr_cluster&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_hadr_cluster</a></td>
<td>V&#160;</td>
<td>VIEW</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_hadr_cluster_members" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_hadr_cluster_members&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_hadr_cluster_members</a></td>
<td>V&#160;</td>
<td>VIEW</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_hadr_cluster_networks" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_hadr_cluster_networks&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_hadr_cluster_networks</a></td>
<td>V&#160;</td>
<td>VIEW</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_hadr_database_replica_cluster_states" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_hadr_database_replica_cluster_states&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_hadr_database_replica_cluster_states</a></td>
<td>V&#160;</td>
<td>VIEW</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_hadr_database_replica_states" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_hadr_database_replica_states&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_hadr_database_replica_states</a></td>
<td>V&#160;</td>
<td>VIEW</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_hadr_instance_node_map" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_hadr_instance_node_map&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_hadr_instance_node_map</a></td>
<td>V&#160;</td>
<td>VIEW</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_hadr_name_id_map" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_hadr_name_id_map&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_hadr_name_id_map</a></td>
<td>V&#160;</td>
<td>VIEW</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_logconsumer_cachebufferrefs" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_logconsumer_cachebufferrefs&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_logconsumer_cachebufferrefs</a></td>
<td>IF</td>
<td>SQL_INLINE_TABLE_VALUED_FUNCTION</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_logconsumer_privatecachebuffers" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_logconsumer_privatecachebuffers&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_logconsumer_privatecachebuffers</a></td>
<td>IF</td>
<td>SQL_INLINE_TABLE_VALUED_FUNCTION</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_logpool_consumers" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_logpool_consumers&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_logpool_consumers</a></td>
<td>IF</td>
<td>SQL_INLINE_TABLE_VALUED_FUNCTION</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_logpool_hashentries" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_logpool_hashentries&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_logpool_hashentries</a></td>
<td>V&#160;</td>
<td>VIEW</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_logpool_sharedcachebuffers" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_logpool_sharedcachebuffers&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_logpool_sharedcachebuffers</a></td>
<td>IF</td>
<td>SQL_INLINE_TABLE_VALUED_FUNCTION</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_logpool_stats" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_logpool_stats&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_logpool_stats</a></td>
<td>V&#160;</td>
<td>VIEW</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_logpoolmgr_freepools" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_logpoolmgr_freepools&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_logpoolmgr_freepools</a></td>
<td>IF</td>
<td>SQL_INLINE_TABLE_VALUED_FUNCTION</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_logpoolmgr_respoolsize" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_logpoolmgr_respoolsize&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_logpoolmgr_respoolsize</a></td>
<td>IF</td>
<td>SQL_INLINE_TABLE_VALUED_FUNCTION</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_logpoolmgr_stats" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_logpoolmgr_stats&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_logpoolmgr_stats</a></td>
<td>IF</td>
<td>SQL_INLINE_TABLE_VALUED_FUNCTION</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_os_cluster_properties" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_os_cluster_properties&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_os_cluster_properties</a></td>
<td>V&#160;</td>
<td>VIEW</td>
</tr>
<tr>
<td height="20">s<a title="sys.dm_os_memory_broker_clerks" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_os_memory_broker_clerks&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">ys.dm_os_memory_broker_clerks</a></td>
<td>V&#160;</td>
<td>VIEW</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_os_server_diagnostics_log_configurations" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_os_server_diagnostics_log_configurations&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_os_server_diagnostics_log_configurations</a></td>
<td>V&#160;</td>
<td>VIEW</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_resource_governor_resource_pool_affinity" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_resource_governor_resource_pool_affinity&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_resource_governor_resource_pool_affinity</a></td>
<td>V&#160;</td>
<td>VIEW</td>
</tr>
<tr>
<td height="20"><a title="sys.dm_tcp_listener_states" href="http://social.technet.microsoft.com/search/en-us?query=sys.dm_tcp_listener_states&amp;refinement=30&amp;x=11&amp;y=14" target="_blank">sys.dm_tcp_listener_states</a></td>
<td>V&#160;</td>
<td>VIEW</td>
</tr>
</tbody>
</table>
<p>... Now you can query Books Online for SQL Server 2012 ....</p>
<p><strong>To struggle through these new&#160;Dynamic Management Views and Functions in SQL Server 2012, will be an ongoing and hard work :-)</strong></p>
<p>I wish you a nice&#160; day,<br /><a href="http://feeds2.feedburner.com/TorstenSchuessler" target="_blank">tosc</a></p>
<div class="image_block"><a href="http://feeds.feedburner.com/~r/TorstenSchuessler/~6/1" target="_blank"><img style="border: 0;" src="http://feeds.feedburner.com/TorstenSchuessler.1.gif" alt="Torsten Schuessler" /></a></div><div class="item_footer"><br /><p><em>"Try not to become a man of success but rather to become a man of value."</em><br />Albert Einstein</p></div>]]></content:encoded>
								<comments>http://www.insidesql.org/blogs/tosc/2012/09/13/sql-server-2012-new-and-modified-dynamic-management-views-and-functions#comments</comments>
			<wfw:commentRss>http://www.insidesql.org/blogs/tosc/?tempskin=_rss2&#38;disp=comments&#38;p=3299</wfw:commentRss>
		</item>
				<item>
			<title>New Version of SQL Server Maintenance Solution by Ola Hallengren Now Available</title>
			<link>http://www.insidesql.org/blogs/tosc/2012/09/10/new-version-of-sql-server-maintenance-solution-by-ola-hallengren-now-available</link>
			<pubDate>Mon, 10 Sep 2012 08:50:00 +0000</pubDate>			<dc:creator>Torsten Schuessler</dc:creator>
			<category domain="main">SQL Server</category>			<guid isPermaLink="false">3323@http://www.insidesql.org/blogs/</guid>
						<description>&lt;p&gt;&lt;a href=&quot;http://ola.hallengren.com/&quot; target=&quot;_blank&quot;&gt;Ola Hallengren&lt;/a&gt; and his ongoing work of his &lt;a href=&quot;http://ola.hallengren.com/&quot; target=&quot;_blank&quot;&gt;SQL Server Maintenance Solution - SQL Server Backup, Integrity Check, and Index and Statistics Maintenance&lt;/a&gt;.The solution is based on stored procedures, functions, the sqlcmd utility, and SQL Server Agent jobs.&lt;/p&gt;
&lt;p&gt;Numerous SQL Server community experts recommend the SQL Server Maintenance Solution, which has been a Gold and Silver winner in the &lt;a title=&quot;Awards&quot; href=&quot;http://www.sqlmag.com/content1/topic/2011-sql-server-magazine-editors-community-choice-awards-140830/catpath/awards/showprivate/1/page/9&quot; target=&quot;_blank&quot;&gt;2011&lt;/a&gt; and &lt;a title=&quot;Awards&quot; href=&quot;http://www.sqlmag.com/content1/topic/2010-sql-server-magazine-editors-best-and-community-choice-awards/catpath/sql-server/page/4&quot; target=&quot;_blank&quot;&gt;2010&lt;/a&gt; SQL Server Magazine Awards. I love this tool to perform index maintenance on instances with VLDBs - and the best it&#039;s &lt;span style=&quot;color: #ff0000;&quot;&gt;&lt;strong&gt;&lt;a title=&quot;SQL Server Backup, Integrity Check, and Index and Statistics Maintenance&quot; href=&quot;http://ola.hallengren.com/&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;free&lt;/span&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/span&gt;!&lt;/p&gt;
&lt;h2&gt;New Version Available&lt;/h2&gt;
&lt;p&gt;A new version of the SQL Server Maintenance Solution is available. You can now perform striped backups across multiple drives in the DatabaseBackup stored procedure. Simply specify multiple directories in the @Directory parameter; for example:&lt;/p&gt;
&lt;p&gt;&lt;code&gt; EXECUTE dbo.DatabaseBackup &lt;br /&gt;@Databases = &#039;USER_DATABASES&#039;, &lt;br /&gt;@Directory = &#039;C:\Backup, D:\Backup, E:\Backup, F:\Backup&#039;, @BackupType = &#039;FULL&#039;, &lt;br /&gt;@Compress = &#039;Y&#039;, &lt;br /&gt;@NumberOfFiles = 4 &lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The new version also supports checking the consistency of a database on the file group level and on the table level. This capability is useful when you have VLDBs.&lt;/p&gt;
&lt;p&gt;You can read more about the most recent version of the solution at &lt;a href=&quot;http://ola.hallengren.com/versions.html&quot; target=&quot;_blank&quot;&gt;http://ola.hallengren.com/versions.html&lt;/a&gt; or download it at &lt;a href=&quot;http://ola.hallengren.com/scripts/MaintenanceSolution.sql&quot; target=&quot;_blank&quot;&gt;http://ola.hallengren.com/scripts/MaintenanceSolution.sql&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;p&gt;And now it&#039;s up to &lt;strong&gt;YOU&lt;/strong&gt;!&lt;/p&gt;
&lt;h2&gt;2012 SQL Server Pro Community Choice Awards&lt;/h2&gt;
&lt;p&gt;The voting for the 2012 SQL Server Pro Community Choice Awards is now open! This year, the Ola Hallengren SQL Server Maintenance Solution has been nominated in the Best Backup &amp;amp; Recovery Product and Best Free Tool categories. So let us &lt;a title=&quot;Vote for the BEST Free Tool i have ever seen!!!&quot; href=&quot;http://www.surveymonkey.com/s/SQLServerProCommChoiceFinalVoting&quot; target=&quot;_blank&quot;&gt;VOTE&lt;/a&gt;!!!&lt;/p&gt;
&lt;p&gt;Please feel free to &lt;a href=&quot;http://ola.hallengren.com/contact.html&quot; target=&quot;_blank&quot;&gt;contact&lt;/a&gt; him if you have any questions. And I tell you, Ola will consider it!!!&lt;/p&gt;
&lt;p&gt;I wish you a nice&amp;#160; day,&lt;br /&gt;&lt;a href=&quot;http://feeds2.feedburner.com/TorstenSchuessler&quot; target=&quot;_blank&quot;&gt;tosc&lt;/a&gt;&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;br /&gt;&lt;p&gt;&lt;em&gt;&quot;Try not to become a man of success but rather to become a man of value.&quot;&lt;/em&gt;&lt;br /&gt;Albert Einstein&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p><a href="http://ola.hallengren.com/" target="_blank">Ola Hallengren</a> and his ongoing work of his <a href="http://ola.hallengren.com/" target="_blank">SQL Server Maintenance Solution - SQL Server Backup, Integrity Check, and Index and Statistics Maintenance</a>.The solution is based on stored procedures, functions, the sqlcmd utility, and SQL Server Agent jobs.</p>
<p>Numerous SQL Server community experts recommend the SQL Server Maintenance Solution, which has been a Gold and Silver winner in the <a title="Awards" href="http://www.sqlmag.com/content1/topic/2011-sql-server-magazine-editors-community-choice-awards-140830/catpath/awards/showprivate/1/page/9" target="_blank">2011</a> and <a title="Awards" href="http://www.sqlmag.com/content1/topic/2010-sql-server-magazine-editors-best-and-community-choice-awards/catpath/sql-server/page/4" target="_blank">2010</a> SQL Server Magazine Awards. I love this tool to perform index maintenance on instances with VLDBs - and the best it's <span style="color: #ff0000;"><strong><a title="SQL Server Backup, Integrity Check, and Index and Statistics Maintenance" href="http://ola.hallengren.com/" target="_blank"><span style="color: #ff0000;">free</span></a></strong></span>!</p>
<h2>New Version Available</h2>
<p>A new version of the SQL Server Maintenance Solution is available. You can now perform striped backups across multiple drives in the DatabaseBackup stored procedure. Simply specify multiple directories in the @Directory parameter; for example:</p>
<p><code> EXECUTE dbo.DatabaseBackup <br />@Databases = 'USER_DATABASES', <br />@Directory = 'C:\Backup, D:\Backup, E:\Backup, F:\Backup', @BackupType = 'FULL', <br />@Compress = 'Y', <br />@NumberOfFiles = 4 </code></p>
<p>The new version also supports checking the consistency of a database on the file group level and on the table level. This capability is useful when you have VLDBs.</p>
<p>You can read more about the most recent version of the solution at <a href="http://ola.hallengren.com/versions.html" target="_blank">http://ola.hallengren.com/versions.html</a> or download it at <a href="http://ola.hallengren.com/scripts/MaintenanceSolution.sql" target="_blank">http://ola.hallengren.com/scripts/MaintenanceSolution.sql</a></p>
<p>&#160;</p>
<p>And now it's up to <strong>YOU</strong>!</p>
<h2>2012 SQL Server Pro Community Choice Awards</h2>
<p>The voting for the 2012 SQL Server Pro Community Choice Awards is now open! This year, the Ola Hallengren SQL Server Maintenance Solution has been nominated in the Best Backup &amp; Recovery Product and Best Free Tool categories. So let us <a title="Vote for the BEST Free Tool i have ever seen!!!" href="http://www.surveymonkey.com/s/SQLServerProCommChoiceFinalVoting" target="_blank">VOTE</a>!!!</p>
<p>Please feel free to <a href="http://ola.hallengren.com/contact.html" target="_blank">contact</a> him if you have any questions. And I tell you, Ola will consider it!!!</p>
<p>I wish you a nice&#160; day,<br /><a href="http://feeds2.feedburner.com/TorstenSchuessler" target="_blank">tosc</a></p><div class="item_footer"><br /><p><em>"Try not to become a man of success but rather to become a man of value."</em><br />Albert Einstein</p></div>]]></content:encoded>
								<comments>http://www.insidesql.org/blogs/tosc/2012/09/10/new-version-of-sql-server-maintenance-solution-by-ola-hallengren-now-available#comments</comments>
			<wfw:commentRss>http://www.insidesql.org/blogs/tosc/?tempskin=_rss2&#38;disp=comments&#38;p=3323</wfw:commentRss>
		</item>
				<item>
			<title>Service Pack 2 (SP2) is available for SQL Server 2008 R2</title>
			<link>http://www.insidesql.org/blogs/tosc/2012/07/27/service-pack-2-for-sql-server-2008-r2</link>
			<pubDate>Fri, 27 Jul 2012 05:47:00 +0000</pubDate>			<dc:creator>Torsten Schuessler</dc:creator>
			<category domain="main">SQL Server</category>			<guid isPermaLink="false">3305@http://www.insidesql.org/blogs/</guid>
						<description>&lt;div&gt;
&lt;p&gt;&lt;strong&gt;SQL Server R2 Service Pack 2&lt;/strong&gt; (SP2 Build &lt;strong&gt;10.50.4000.0&lt;/strong&gt;) is available:&lt;/p&gt;
&lt;p&gt;&lt;a title=&quot;SQL Server R2 SP2 download&quot; href=&quot;http://www.microsoft.com/en-us/download/details.aspx?id=30437&quot; target=&quot;_blank&quot;&gt;http://www.microsoft.com/en-us/download/details.aspx?id=30437&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;p&gt;List of the bugs that are fixed in SQL Server 2008 R2 Service Pack 2&lt;br /&gt;&lt;a title=&quot;KB 2630458&quot; href=&quot;http://support.microsoft.com/kb/2630458&quot; target=&quot;_blank&quot;&gt;http://support.microsoft.com/kb/2630458&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I wish you a nice day,&lt;br /&gt;&lt;a href=&quot;http://feeds2.feedburner.com/TorstenSchuessler&quot; target=&quot;_blank&quot;&gt;tosc&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;div class=&quot;image_block&quot;&gt;&lt;a href=&quot;http://feeds.feedburner.com/~r/TorstenSchuessler/~6/1&quot; target=&quot;_blank&quot;&gt;&lt;img style=&quot;border: 0;&quot; src=&quot;http://feeds.feedburner.com/TorstenSchuessler.1.gif&quot; alt=&quot;Torsten Schuessler&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;br /&gt;&lt;p&gt;&lt;em&gt;&quot;Try not to become a man of success but rather to become a man of value.&quot;&lt;/em&gt;&lt;br /&gt;Albert Einstein&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<div>
<p><strong>SQL Server R2 Service Pack 2</strong> (SP2 Build <strong>10.50.4000.0</strong>) is available:</p>
<p><a title="SQL Server R2 SP2 download" href="http://www.microsoft.com/en-us/download/details.aspx?id=30437" target="_blank">http://www.microsoft.com/en-us/download/details.aspx?id=30437</a></p>
<p>&#160;</p>
<p>List of the bugs that are fixed in SQL Server 2008 R2 Service Pack 2<br /><a title="KB 2630458" href="http://support.microsoft.com/kb/2630458" target="_blank">http://support.microsoft.com/kb/2630458</a></p>
<p>I wish you a nice day,<br /><a href="http://feeds2.feedburner.com/TorstenSchuessler" target="_blank">tosc</a></p>
<p>&#160;</p>
<div class="image_block"><a href="http://feeds.feedburner.com/~r/TorstenSchuessler/~6/1" target="_blank"><img style="border: 0;" src="http://feeds.feedburner.com/TorstenSchuessler.1.gif" alt="Torsten Schuessler" /></a></div>
</div><div class="item_footer"><br /><p><em>"Try not to become a man of success but rather to become a man of value."</em><br />Albert Einstein</p></div>]]></content:encoded>
								<comments>http://www.insidesql.org/blogs/tosc/2012/07/27/service-pack-2-for-sql-server-2008-r2#comments</comments>
			<wfw:commentRss>http://www.insidesql.org/blogs/tosc/?tempskin=_rss2&#38;disp=comments&#38;p=3305</wfw:commentRss>
		</item>
				<item>
			<title>SQL Server 2012 Service Pack 1(SP1) Customer Technology Preview 3 (CTP3) Available</title>
			<link>http://www.insidesql.org/blogs/tosc/2012/07/25/sql-server-2012-sp1-ctp3-available</link>
			<pubDate>Wed, 25 Jul 2012 05:59:00 +0000</pubDate>			<dc:creator>Torsten Schuessler</dc:creator>
			<category domain="main">SQL Server</category>			<guid isPermaLink="false">3304@http://www.insidesql.org/blogs/</guid>
						<description>&lt;div&gt;MICROSOFT&amp;#174; SQL SERVER&amp;#174; 2012 SERVICE PACK 1 (SP1), COMMUNITY TECHNOLOGY PREVIEW 3 (CTP3)&lt;/div&gt;
&lt;div&gt;Download: &lt;a href=&quot;http://www.microsoft.com/en-us/download/details.aspx?id=30375&quot; target=&quot;_blank&quot;&gt;http://www.microsoft.com/en-us/download/details.aspx?id=30375&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&amp;#160;&lt;/div&gt;
&lt;div&gt;The SQL Server 2012 builds that were released after SQL Server 2012 was released:&lt;/div&gt;
&lt;div&gt;Download: &lt;a href=&quot;http://support.microsoft.com/kb/2692828/&quot; target=&quot;_blank&quot;&gt;http://support.microsoft.com/kb/2692828/&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&amp;#160;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;&lt;a href=&quot;http://www.insidesql.org/blogs/tosc/2012/07/25/sql-server-2012-sp1-ctp3-available#more3304&quot;&gt;Full story &amp;raquo;&lt;/a&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;br /&gt;&lt;p&gt;&lt;em&gt;&quot;Try not to become a man of success but rather to become a man of value.&quot;&lt;/em&gt;&lt;br /&gt;Albert Einstein&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<div>MICROSOFT&#174; SQL SERVER&#174; 2012 SERVICE PACK 1 (SP1), COMMUNITY TECHNOLOGY PREVIEW 3 (CTP3)</div>
<div>Download: <a href="http://www.microsoft.com/en-us/download/details.aspx?id=30375" target="_blank">http://www.microsoft.com/en-us/download/details.aspx?id=30375</a></div>
<div>&#160;</div>
<div>The SQL Server 2012 builds that were released after SQL Server 2012 was released:</div>
<div>Download: <a href="http://support.microsoft.com/kb/2692828/" target="_blank">http://support.microsoft.com/kb/2692828/</a></div>
<div>&#160;</div>
<p></p><a href="http://www.insidesql.org/blogs/tosc/2012/07/25/sql-server-2012-sp1-ctp3-available#more3304">Full story &raquo;</a><div class="item_footer"><br /><p><em>"Try not to become a man of success but rather to become a man of value."</em><br />Albert Einstein</p></div>]]></content:encoded>
								<comments>http://www.insidesql.org/blogs/tosc/2012/07/25/sql-server-2012-sp1-ctp3-available#comments</comments>
			<wfw:commentRss>http://www.insidesql.org/blogs/tosc/?tempskin=_rss2&#38;disp=comments&#38;p=3304</wfw:commentRss>
		</item>
			</channel>
</rss>
