<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US"><title type="html">Vivek Sanil [MSFT] - SQL Server Premier Field Engineer (PFE)</title><subtitle type="html">All things SQL</subtitle><id>http://blogs.msdn.com/b/vsanil/atom.aspx</id><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/vsanil/" /><link rel="self" type="application/atom+xml" href="http://blogs.msdn.com/b/vsanil/atom.aspx" /><generator uri="http://telligent.com" version="5.6.50428.7875">Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><updated>2012-11-02T12:16:25Z</updated><entry><title>Did some performance counters like Free Pages disappear in SQL 2012?</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/vsanil/archive/2012/11/21/did-some-performance-counters-like-free-pages-disappear-in-sql-2012.aspx" /><id>http://blogs.msdn.com/b/vsanil/archive/2012/11/21/did-some-performance-counters-like-free-pages-disappear-in-sql-2012.aspx</id><published>2012-11-21T16:38:58Z</published><updated>2012-11-21T16:38:58Z</updated><content type="html">&lt;p&gt;&lt;b&gt;Answer: Yes.&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Why were the performance counters changed in SQL 2012?: &lt;/b&gt;The Memory Manager component of SQLOS was redesigned in SQL Server 2012 and hence some perfmon counters have been changed accordingly. If you have been using the Free Pages performance monitor counter for monitoring SQL memory usage/pressure under the “Buffer Manager”, “Buffer Partition” or “Buffer Node” object in SQL Server 2008 R2 or previous versions then you should know that the Free Pages counter is no longer available in SQL Server 2012. Some counters have been standardized as &amp;quot;kb&amp;quot; rather than bytes or pages and a new Memory Node object has now been added in SQL 2012. Hence instead of Free Pages counter, you can now use Free Memory (kb) or Free Node Memory (KB) in 2012 and instead of Total Pages you can use Total Node Memory (KB) and so on. Also as AWE is now removed from the product, the corresponding counters are also gone. &lt;/p&gt;  &lt;p&gt;I queried the sys.dm_os_performance_counters DMV to compare the counters available in SQL 2008 R2 and SQL 2012:&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Buffer Node and the new Memory Node counters:&lt;/b&gt;&lt;/p&gt;  &lt;table cellspacing="0" cellpadding="0" width="550" border="1"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="256"&gt;         &lt;p&gt;&lt;b&gt;SQL 2008 R2&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="292"&gt;         &lt;p&gt;&lt;b&gt;SQL 2012&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="256"&gt;         &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-34-metablogapi/5282.image_5F00_78C6DAF7.png"&gt;&lt;img title="image" style="display: inline;" border="0" alt="image" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-34-metablogapi/6862.image_5F00_thumb_5F00_51205ECD.png" width="243" height="211" /&gt;&lt;/a&gt; &lt;/p&gt;          &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-34-metablogapi/4621.image_5F00_374C289E.png"&gt;&lt;img title="image" style="display: inline;" border="0" alt="image" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-34-metablogapi/5466.image_5F00_thumb_5F00_36DFF5A9.png" width="249" height="109" /&gt;&lt;/a&gt; &lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="292"&gt;         &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-34-metablogapi/2543.image_5F00_3CBA9942.png"&gt;&lt;img title="image" style="display: inline;" border="0" alt="image" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-34-metablogapi/0181.image_5F00_thumb_5F00_0741D71D.png" width="274" height="145" /&gt;&lt;/a&gt; &lt;/p&gt;          &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-34-metablogapi/2148.image_5F00_3B760063.png"&gt;&lt;img title="image" style="display: inline;" border="0" alt="image" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-34-metablogapi/5466.image_5F00_thumb_5F00_05FD3E3E.png" width="275" height="178" /&gt;&lt;/a&gt; &lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;&lt;b&gt;Buffer Manager counters:&lt;/b&gt;&lt;/p&gt;  &lt;table cellspacing="0" cellpadding="0" width="555" border="1"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="259"&gt;         &lt;p&gt;&lt;b&gt;SQL 2008 R2&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="294"&gt;         &lt;p&gt;&lt;b&gt;SQL 2012&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="259"&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-34-metablogapi/0488.image_5F00_6C29080E.png"&gt;&lt;img title="image" style="display: inline;" border="0" alt="image" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-34-metablogapi/7024.image_5F00_thumb_5F00_0A9348F8.png" width="249" height="374" /&gt;&lt;/a&gt; &lt;/td&gt;        &lt;td valign="top" width="294"&gt;         &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-34-metablogapi/0576.image_5F00_628099D8.png"&gt;&lt;img title="image" style="display: inline;" border="0" alt="image" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-34-metablogapi/5751.image_5F00_thumb_5F00_08E27D24.png" width="281" height="261" /&gt;&lt;/a&gt; &lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Memory Manager counters:&lt;/b&gt;&lt;/p&gt;  &lt;table cellspacing="0" cellpadding="0" width="558" border="1"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="263"&gt;         &lt;p&gt;&lt;b&gt;SQL 2008 R2&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="293"&gt;         &lt;p&gt;&lt;b&gt;SQL 2012&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="263"&gt;         &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-34-metablogapi/2627.image_5F00_19E6AB07.png"&gt;&lt;img title="image" style="display: inline;" border="0" alt="image" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-34-metablogapi/5344.image_5F00_thumb_5F00_6E35E10A.png" width="255" height="295" /&gt;&lt;/a&gt; &lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="293"&gt;         &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-34-metablogapi/8078.image_5F00_7F3A0EED.png"&gt;&lt;img title="image" style="display: inline;" border="0" alt="image" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-34-metablogapi/4760.image_5F00_thumb_5F00_766A06A1.png" width="284" height="401" /&gt;&lt;/a&gt; &lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Bottom Line: &lt;/b&gt;If you have been using specific counters for monitoring SQL memory usage then be aware of these changes in SQL 2012 and change your monitoring and alerting mechanism accordingly. And it’s not only the perfmon counters that have changed due to redesign of the Memory Manager component, there are changes to some memory related DMVs and the DBCC memory status output.&lt;b&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;For a detailed list of all the changes refer to the following blog by the SQLOS team:&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/b/sqlosteam/archive/2012/07/11/memory-manager-surface-area-changes-in-sql-server-2012.aspx"&gt;http://blogs.msdn.com/b/sqlosteam/archive/2012/07/11/memory-manager-surface-area-changes-in-sql-server-2012.aspx&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10370625" width="1" height="1"&gt;</content><author><name>vsanil</name><uri>http://blogs.msdn.com/Vivek-Sanil/ProfileUrlRedirect.ashx</uri></author><category term="Performance counter" scheme="http://blogs.msdn.com/b/vsanil/archive/tags/Performance+counter/" /><category term="Free Pages" scheme="http://blogs.msdn.com/b/vsanil/archive/tags/Free+Pages/" /><category term="SQL 2012" scheme="http://blogs.msdn.com/b/vsanil/archive/tags/SQL+2012/" /><category term="Buffer Node" scheme="http://blogs.msdn.com/b/vsanil/archive/tags/Buffer+Node/" /><category term="Buffer Manager" scheme="http://blogs.msdn.com/b/vsanil/archive/tags/Buffer+Manager/" /><category term="Memory Manager" scheme="http://blogs.msdn.com/b/vsanil/archive/tags/Memory+Manager/" /></entry><entry><title>Can I Migrate SQL 2012 AlwaysOn availability groups on a windows 2008 R2 cluster to Windows 2012 cluster?</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/vsanil/archive/2012/11/12/can-i-migrate-sql-2012-alwayson-availability-groups-on-a-windows-2008-r2-cluster-to-windows-2012-cluster.aspx" /><id>http://blogs.msdn.com/b/vsanil/archive/2012/11/12/can-i-migrate-sql-2012-alwayson-availability-groups-on-a-windows-2008-r2-cluster-to-windows-2012-cluster.aspx</id><published>2012-11-12T16:11:55Z</published><updated>2012-11-12T16:11:55Z</updated><content type="html">&lt;p&gt;The Answer is yes. You will need SQL 2012 SP1 to do this. SQL2012 SP1 was announced at the SQL Pass conference last week (Nov 7th). &lt;/p&gt;  &lt;p&gt;&lt;b&gt;How:&lt;/b&gt; The SQL Server product team will be publishing the steps in the &amp;quot;Cross-Cluster Migration of AlwaysOn Availability Groups for OS Upgrade&amp;quot; white paper. This paper was to be posted in October 2012 on the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=265471"&gt;Microsoft White Papers (SQL Server 2012)&lt;/a&gt; download page. However it’s not available yet. So watch the Whitepaper downloads page for updates.&lt;/p&gt;  &lt;p&gt;More details on the SP1 Feature can be found &lt;a href="http://msdn.microsoft.com/en-us/library/bb500435"&gt;here&lt;/a&gt;:&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Cross-Cluster Migration of AlwaysOn Availability Groups for OS Upgrade&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;SQL Server 2012 SP1 introduces support for cross-cluster migration of AlwaysOn Availability Groups deployments to a new Windows Server Failover Clustering (WSFC) cluster. A cross-cluster migration moves one AlwaysOn availability group or a batch of availability groups to the new, destination WSFC cluster with minimal downtime. The cross-cluster migration process enables you to maintain your service level agreements (SLAs) when upgrading to a Windows Server 2012 cluster.&amp;#160; SQL Server 2012 SP1 must be installed and enabled for AlwaysOn on the destination WSFC cluster.&amp;#160; The success of cross-cluster migration depends on thorough planning and preparation of the destination WSFC cluster. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10367753" width="1" height="1"&gt;</content><author><name>vsanil</name><uri>http://blogs.msdn.com/Vivek-Sanil/ProfileUrlRedirect.ashx</uri></author></entry><entry><title>What is the benefit of installing SQL 2012 on windows 2012?</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/vsanil/archive/2012/11/12/what-is-the-benefit-of-installing-sql-2012-on-windows-2012.aspx" /><id>http://blogs.msdn.com/b/vsanil/archive/2012/11/12/what-is-the-benefit-of-installing-sql-2012-on-windows-2012.aspx</id><published>2012-11-12T15:33:51Z</published><updated>2012-11-12T15:33:51Z</updated><content type="html">&lt;p&gt;After the release of Windows 2012, I get questions like what is the benefit of installing SQL 2012 on windows 2012 compared to installing it on Windows 2008 R2. &lt;/p&gt;  &lt;p&gt;Microsoft recently released the following KB article which answers some of the questions around SQL 2012 support for Windows 8 and Windows 2012&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Here is the relevant snippet from the KB article: &lt;/b&gt;&lt;/p&gt;  &lt;p&gt;The following table summarizes how versions of SQL Server work with some of the new features in Windows 8 and Windows Server 2012:&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Note&lt;/b&gt; Unless noted in the following table, all features of Windows Server 2012 are supported in all the supported versions of SQL server.&lt;/p&gt;  &lt;table cellspacing="0" cellpadding="0" border="1"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="106"&gt;         &lt;p&gt;&lt;b&gt;Feature&lt;/b&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="106"&gt;         &lt;p&gt;&lt;b&gt;SQL feature or component that interacts with this new feature&lt;/b&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="106"&gt;         &lt;p&gt;&lt;b&gt;SQL feature that is affected or supported&lt;/b&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="106"&gt;         &lt;p&gt;&lt;b&gt;Minimum version and service pack requirements for SQL&lt;/b&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="106"&gt;         &lt;p&gt;&lt;b&gt;Exceptions or support limitations&lt;/b&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="106"&gt;         &lt;p&gt;&lt;b&gt;Additional information&lt;/b&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="106"&gt;         &lt;p&gt;Storage Spaces&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="106"&gt;&amp;#160;&lt;/td&gt;        &lt;td valign="top" width="106"&gt;&amp;#160;&lt;/td&gt;        &lt;td valign="top" width="106"&gt;         &lt;p&gt;SQL Server 2008 R2 Service Pack 1 or later version, SQL Server 2012 (RTM and later versions)&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="106"&gt;&amp;#160;&lt;/td&gt;        &lt;td valign="top" width="106"&gt;         &lt;p&gt;This feature is supported with the service packs that are specified for the respective versions.&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="106"&gt;         &lt;p&gt;Resilient File System (ReFS)&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="106"&gt;&amp;#160;&lt;/td&gt;        &lt;td valign="top" width="106"&gt;&amp;#160;&lt;/td&gt;        &lt;td valign="top" width="106"&gt;&amp;#160;&lt;/td&gt;        &lt;td valign="top" width="106"&gt;         &lt;p&gt;ReFS is not supported in SQL 2012 and all other down-level versions. In the future, support may be added.&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="106"&gt;&amp;#160;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="106"&gt;         &lt;p&gt;Mitigation of RAM Hardware Errors&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="106"&gt;         &lt;p&gt;LazyWriter&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="106"&gt;         &lt;p&gt;Checksum page sniffer&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="106"&gt;         &lt;p&gt;SQL Server 2012 &lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="106"&gt;&amp;#160;&lt;/td&gt;        &lt;td valign="top" width="106"&gt;         &lt;p&gt;When SQL Server 2012 is installed on a Windows 2012 operating system with hardware that supports bad memory diagnostics, you will notice new error messages like 854, 855, and 856 instead of the 832 errors that LazyWriter usually generates.&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="106"&gt;         &lt;p&gt;Number of instances per cluster&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="106"&gt;         &lt;p&gt;High availability&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="106"&gt;         &lt;p&gt;Failover Clustering&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="106"&gt;         &lt;p&gt;SQL Server 2012&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="106"&gt;         &lt;p&gt;25 per failover cluster when you use drive letters and up to 50 if you are using SMB file share storage&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="106"&gt;&amp;#160;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="106"&gt;         &lt;p&gt;Cluster Share Volumes (CSV's)&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="106"&gt;&amp;#160;&lt;/td&gt;        &lt;td valign="top" width="106"&gt;&amp;#160;&lt;/td&gt;        &lt;td valign="top" width="106"&gt;&amp;#160;&lt;/td&gt;        &lt;td valign="top" width="106"&gt;         &lt;p&gt;Not supported with any version of SQL Server&lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="106"&gt;&amp;#160;&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;&lt;b&gt;Bottom line: &lt;/b&gt;Storage Spaces and Mitigation of RAM Hardware errors are the 2 new windows 2012 features that are supported by SQL 2012. Microsoft will update the KB article as more information about SQL working with Windows 2012 features becomes available. Hence watch that space.&lt;/p&gt;  &lt;p&gt;&lt;b&gt;KB Article: Using SQL Server in Windows 8 and Windows Server 2012 environments&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://support.microsoft.com/kb/2681562"&gt;http://support.microsoft.com/kb/2681562&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;You might also want to check the Setup Known issues on Windows 2012 section in the same KB article before installing your SQL server.&lt;/p&gt;  &lt;p&gt;· &lt;a href="http://support.microsoft.com/kb/2681562"&gt;Known SQL Server 2012 setup and migration issues&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://support.microsoft.com/kb/2681562"&gt;· Known SQL Server 2008 R2 and SQL Server 2008 setup issues &lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://support.microsoft.com/kb/2681562"&gt;· Additional SQL Server 2012 setup issues&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://support.microsoft.com/kb/2681562"&gt;· Setup issues that can occur when the .Net Framework 3.5 is not enabled &lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10367733" width="1" height="1"&gt;</content><author><name>vsanil</name><uri>http://blogs.msdn.com/Vivek-Sanil/ProfileUrlRedirect.ashx</uri></author></entry><entry><title>Resource Database common Questions</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/vsanil/archive/2012/11/02/resource-database-common-questions.aspx" /><id>http://blogs.msdn.com/b/vsanil/archive/2012/11/02/resource-database-common-questions.aspx</id><published>2012-11-02T17:16:25Z</published><updated>2012-11-02T17:16:25Z</updated><content type="html">&lt;p&gt;While working with customers, I get quite a few questions on Resource database. Hence I thought about answering some of them in this blog. &lt;/p&gt;  &lt;p&gt;&lt;b&gt;Some of the questions that I get:&lt;/b&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Can I access it through management studio?&lt;/li&gt;    &lt;li&gt;Should I backup my Resource database along with the other system database backups?&lt;/li&gt;    &lt;li&gt;Can I change the Resource database path? Should I?&lt;/li&gt;    &lt;li&gt;Can the size of Resource database increase over a period a time and with increased usage of the instance?&lt;/li&gt;    &lt;li&gt;How to determine the Resource Database version or the last updated date?&lt;/li&gt;    &lt;li&gt;How to restore the Resource database?&lt;/li&gt;    &lt;li&gt;What should I do if my Resource database gets corrupted?&lt;/li&gt;    &lt;li&gt;When does it get updated?&lt;/li&gt;    &lt;li&gt;How to detach Resource database?&lt;/li&gt;    &lt;li&gt;How to move Resource database?&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;b&gt;Discussion in this blog Applies to:&lt;/b&gt; SQL 2008, SQL 2008 R2 and SQL 2012 &lt;/p&gt;  &lt;p&gt;(&lt;b&gt;Note: &lt;/b&gt;SQL 2005 Resource database implementation is not included in this discussion; there are a few implementation differences in SQL 2005).&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Introduction to Resource Database:&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;Before I start answering the questions, let me provide some background information on Resource database.&lt;/p&gt;  &lt;p&gt;SQL Server has 4 visible system databases i.e. master, model, tempdb and msdb and it also contains a fifth, “hidden” database Resource Database that you will never see using any of the normal SQL commands that list all your databases. It is a read-only database that contains system objects that are included with SQL Server. SQL Server system objects, such as sys.objects, are physically persisted in the Resource database, but they logically appear in the sys schema of every database. The Resource database does not contain user data or user metadata. &lt;/p&gt;  &lt;p&gt;Also Resource database makes upgrading to a new version of SQL Server an easier and faster procedure. In earlier versions of SQL Server, upgrading required dropping and creating system objects. Because the Resource database file contains all system objects, an upgrade is now accomplished simply by copying the single Resource database file to the local server.&lt;/p&gt;  &lt;p&gt;Database Id: 32767&lt;/p&gt;  &lt;p&gt;Actual Name: This database is referred to as the resource database, but its actual name is “mssqlsystemresource”. &lt;/p&gt;  &lt;p&gt;Physical File names and path: mssqlsystemresource.mdf and mssqlsystemresource.ldf&lt;/p&gt;  &lt;p&gt;Located in: &amp;lt;drive&amp;gt;:\Program Files\Microsoft SQL Server\MSSQL11.&amp;lt;instance_name&amp;gt;\MSSQL\Binn\&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;Questions on Resource Database&lt;/u&gt;:&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Can I access it through management studio?&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;In the object explorer you would not be able to see the Resource db.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-34-metablogapi/5852.clip_5F00_image002_5F00_10D7EF78.jpg"&gt;&lt;img title="clip_image002" style="display: inline;" border="0" alt="clip_image002" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-34-metablogapi/5554.clip_5F00_image002_5F00_thumb_5F00_3739D2C3.jpg" width="180" height="197" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;And if you try to access it through the script window, you will get the following error:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-34-metablogapi/5050.clip_5F00_image004_5F00_7A35A130.jpg"&gt;&lt;img title="clip_image004" style="display: inline;" border="0" alt="clip_image004" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-34-metablogapi/8270.clip_5F00_image004_5F00_thumb_5F00_358906EF.jpg" width="244" height="49" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;So now shutdown your SQL server instance and start the SQL instance in a single user mode:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-34-metablogapi/1643.clip_5F00_image005_5F00_351CD3FA.png"&gt;&lt;img title="clip_image005" style="display: inline;" border="0" alt="clip_image005" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-34-metablogapi/7607.clip_5F00_image005_5F00_thumb_5F00_468D34D2.png" width="244" height="26" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Now connect using your management studio and play around with the Resource Database as much as you like :).&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-34-metablogapi/8015.clip_5F00_image006_5F00_7D1AE016.png"&gt;&lt;img title="clip_image006" style="display: inline;" border="0" alt="clip_image006" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-34-metablogapi/1665.clip_5F00_image006_5F00_thumb_5F00_105B96B6.png" width="244" height="137" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Should I backup my Resource database along with the other system database backups?&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;No. If fact you cannot do a SQL server backup of the Resource database. Treat your resource database as if it were a binary file and not a database file. You can do a manual file copy of the mssqlsystemresource.mdf file. However if for some reason the Resource database has been corrupted or is unusable or unavailable then using the Repair option in the SQL setup would be the preferred method to repair the SQL server installation. If for some reason you still end up having to restore a backup of mssqlsystemresource.mdf file then make sure that you reapply any subsequent service pack/hotfix updates.&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Can I change the Resource database path? Should I?&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;No.&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Can the size of Resource database increase over a period a time with increased usage of the instance?&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;As the Resource database does not contain user data or user metadata its size should not increase with usage of the instance. It would remain constant however it can change with upgrades and service pack installs.&lt;/p&gt;  &lt;p&gt;&lt;b&gt;How to determine the Resource Database version or the last updated date?&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;SELECT SERVERPROPERTY('ResourceVersion') ResourceDatabaseVersion,&lt;/p&gt;  &lt;p&gt;SERVERPROPERTY('ResourceLastUpdateDateTime') ResourceDatabaseLastupdatedate;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-34-metablogapi/3480.clip_5F00_image007_5F00_39EF61E9.png"&gt;&lt;img title="clip_image007" style="display: inline;" border="0" alt="clip_image007" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-34-metablogapi/4786.clip_5F00_image007_5F00_thumb_5F00_006C51F2.png" width="244" height="76" /&gt;&lt;/a&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;How to restore the Resource database?&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;Using the Repair option in the SQL setup would be the preferred method to repair the SQL server installation if Resource database is unavailable. Only other way to restore Resource database is to manually restore a backup of mssqlsystemresource.mdf file. However if you do this then make sure that you reapply any subsequent service pack/hotfix updates.&lt;/p&gt;  &lt;p&gt;&lt;b&gt;What should I do if my Resource database gets corrupted?&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;Refer to the answer for “How to restore Resource database” question.&lt;/p&gt;  &lt;p&gt;&lt;b&gt;When does it get updated?&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;During service pack installs and upgrades.&lt;/p&gt;  &lt;p&gt;&lt;b&gt;How to detach Resource database?&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;Cannot do a SQL detach/attach. You can do a manual file copy of the mssqlsystemresource.mdf file.&lt;/p&gt;  &lt;p&gt;&lt;b&gt;How to move Resource database?&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;Starting SQL 2008 Resource Database cannot be moved.&lt;/p&gt;  &lt;p&gt;I will try to add more to his list later.&lt;/p&gt;  &lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10365312" width="1" height="1"&gt;</content><author><name>vsanil</name><uri>http://blogs.msdn.com/Vivek-Sanil/ProfileUrlRedirect.ashx</uri></author></entry></feed>