<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Microsoft SQL Server troubleshooting</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/joaol/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/joaol/feed.xml</link>
    <description />
    <lastBuildDate>Tue, 16 Apr 2019 05:13:46 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>SQL Server 2008 R2 setup failing on Windows 2008 R2 SBS</title>
      <link>https://docs.microsoft.com/archive/blogs/joaol/sql-server-2008-r2-setup-failing-on-windows-2008-r2-sbs</link>
      <pubDate>Mon, 11 Jul 2011 06:54:00 GMT</pubDate>
      <dc:creator><![CDATA[Joao Loureirot_]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/joaol/2011/07/11/sql-server-2008-r2-setup-failing-on-windows-2008-r2-sbs/</guid>
      <description><![CDATA[&nbsp;
Windows Small Business Server 2011 Premium includes&nbsp; SQL Server 2008 R2...]]></description>
      <content:encoded><![CDATA[<p>&nbsp;</p>
<p>Windows Small Business Server 2011 Premium includes&nbsp; SQL Server 2008 R2 <a title="https://www.microsoft.com/sbs/en/us/editions-overview.aspx" href="https://www.microsoft.com/sbs/en/us/editions-overview.aspx">https://www.microsoft.com/sbs/en/us/editions-overview.aspx</a>. This version is feature by feature the same as SQL 2008 R2 Standard with the difference that it must be installed in an Small Business Server domain or, if purchased separately, an environment with certain characteristics. But, what does that mean?</p>
<p><strong>SQL 2008 R2 Standard for Small Business</strong> is supported for installation in a small business domain, <br />which includes installing on one of the following Windows Server&reg; 2008 R2 editions:</p>
<ul>
<li>
<ul>
<li>Windows&reg; Small Business Server 2011</li>
<li>Windows Server&reg; 2008 R2 Standard (must be configured in a <br />small business domain configuration). To install this product on Windows Server 2008 R2 Standard edition, the server must be joined to a Small Business Server 2008 R2 domain or a domain that has Active Directory configured in the following way:
<ul>
<li>It must be joined to a domain where a single server in the domain must contain all the flexible single master operations (FSMO) roles and is the root of the Active Directory forest,</li>
<li>The domain cannot have trust relationships with any other domains,</li>
<li>The domain cannot have any child domains, and</li>
<li>The sum of user and device licenses in the domain cannot exceed 75.</li>
<li>The customer may not run instances of the server software, separately licensed or otherwise, at the same time in another operating system environment within the same domain..</li>
</ul>
</li>
</ul>
</li>
</ul>
<p>If the check fails, you will see the a failed check in the <b>"Operating system supported for edition&rdquo;</b> topic.</p>
<p>Clicking in the Failed status shows the following message:</p>
<blockquote>
<p>--------------------------- <br />Rule Check Result <br />--------------------------- <br />Rule "Operating system supported for edition" failed. <br />This SQL Server edition is not supported on this operating system. See SQL Server <br />Books Online for information about supported operating systems for SQL Small <br />Business Server edition. <br />---------------------------</p>
</blockquote>
<p>SQL Server 2008 R2 setup logs (check SQL Server detail.txt installation file available on C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log)</p>
<p>2011-07-08 15:52:32 Slp: Rule evaluation message: The SQL Server 2005 Express Tools are not installed. <br />2011-07-08 15:52:32 Slp: Send result to channel : RulesEngineNotificationChannel <br />2011-07-08 15:52:32 Slp: Initializing rule : Operating system supported for edition <br />2011-07-08 15:52:32 Slp: Rule applied features : ALL <br />2011-07-08 15:52:32 Slp: Rule is will be executed : True <br />2011-07-08 15:52:32 Slp: Init rule target object: Microsoft.SqlServer.Configuration.SetupExtension.EditionRequirementCheck <br />2011-07-08 15:52:33 Slp: O destino de uma invoca&Atilde;&sect;&Atilde;&pound;o accionou uma excep&Atilde;&sect;&Atilde;&pound;o. <br />2011-07-08 15:52:33 Slp: em System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct&amp; sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) <br />em System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) <br />em System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) <br />em System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) <br />em <strong>Microsoft.SqlServer.Configuration.SetupExtension.EditionRequirementCheck.CheckSBSEnvironment()</strong> <br />em Microsoft.SqlServer.Configuration.SetupExtension.EditionRequirementCheck.Microsoft.SqlServer.Configuration.RulesEngineExtension.IRuleInitialize.Init(String ruleId) <br />em Microsoft.SqlServer.Configuration.RulesEngineExtension.RulesEngine.Execute(Boolean stopOnFailure) <br />2011-07-08 15:52:33 Slp: Rule initialization failed - hence the rule result is assigned as Failed <br />2011-07-08 15:52:33 Slp: Send result to channel : RulesEngineNotificationChannel <br />2011-07-08 15:52:33 Slp: Initializing rule : Previous releases of Microsoft Visual Studio 2008 <br />2011-07-08 15:52:33 Slp: Rule applied features : IS;BIDS;Tools;SSMS <br />2011-07-08 15:52:33 Slp: Rule is will be executed : True</p>
<p>In this case setup was running under local non-domain account. In order to avoid this problem:</p>
<p>&nbsp;</p>
<ul>
<li>The <b>SQL</b> setup must be run while logged in to the domain with valid <br />domain credentials. The user needs to have domain administrator and local administrator rights.</li>
</ul>]]></content:encoded>
    </item>
    <item>
      <title>SQLPORT – SQL Server Portuguese Community</title>
      <link>https://docs.microsoft.com/archive/blogs/joaol/sqlport-sql-server-portuguese-community</link>
      <pubDate>Mon, 03 May 2010 05:56:00 GMT</pubDate>
      <dc:creator><![CDATA[Joao Loureirot_]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/joaol/2010/05/03/sqlport-sql-server-portuguese-community/</guid>
      <description><![CDATA[SQLPort is a community without any economical interest of affiliation with Microsoft that&nbsp;...]]></description>
      <content:encoded><![CDATA[<p><a href="https://www.sqlport.com/sql-server/"><img style="display: inline; border: 0px;" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/joaol/WindowsLiveWriter/SQLPORTSQLServerPortugueseCommunity_C418/image_3.png" original-url="https://blogs.msdn.com/blogfiles/joaol/WindowsLiveWriter/SQLPORTSQLServerPortugueseCommunity_C418/image_3.png" width="529" height="122" /></a></p>
<p>SQLPort is a community without any economical interest of affiliation with Microsoft that&nbsp; main goal is to unify and &nbsp;support all SQL Server professionals and self training analysts. Main objective is to promote and develop knowledge on that area.</p>
<p>This group will be a member of SQL Pass world wide community is near future. A couple of initiatives are already in place and first event schedule for 11 May 2010 (more details at <a title="https://www.sqlport.com/sql-server/eventos/i-encontro-da-comunidade-sqlport" href="https://www.sqlport.com/sql-server/eventos/i-encontro-da-comunidade-sqlport">https://www.sqlport.com/sql-server/eventos/i-encontro-da-comunidade-sqlport</a>)</p>]]></content:encoded>
    </item>
    <item>
      <title>TechDays 2010 – SQL Server High Availability and Disaster Recovery</title>
      <link>https://docs.microsoft.com/archive/blogs/joaol/techdays-2010-sql-server-high-availability-and-disaster-recovery</link>
      <pubDate>Fri, 23 Apr 2010 09:06:33 GMT</pubDate>
      <dc:creator><![CDATA[Joao Loureirot_]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/joaol/2010/04/23/techdays-2010-sql-server-high-availability-and-disaster-recovery/</guid>
      <description><![CDATA[Summary:  -SQL Server 2008/2008 R2 patching and upgrade    -Introduction to High Availability and...]]></description>
      <content:encoded><![CDATA[<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/joaol/WindowsLiveWriter/TechDays2010SQLServerHighAvailabilityand_F08C/image_2.png" original-url="https://blogs.msdn.com/blogfiles/joaol/WindowsLiveWriter/TechDays2010SQLServerHighAvailabilityand_F08C/image_2.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/joaol/WindowsLiveWriter/TechDays2010SQLServerHighAvailabilityand_F08C/image_thumb.png" original-url="https://blogs.msdn.com/blogfiles/joaol/WindowsLiveWriter/TechDays2010SQLServerHighAvailabilityand_F08C/image_thumb.png" width="368" height="275" /></a> </p>  <p><strong>Summary:</strong></p>  <p>-SQL Server 2008/2008 R2 patching and upgrade    <br />-Introduction to High Availability and Disaster Recovery     <br />-SQL Server Always On Technologies     <br />-Developing your Availability solutions</p>  <p><strong>Session slides:</strong></p>  <p><a href="https://cid-8d91c7d1c0e21f3c.skydrive.live.com/browse.aspx/TechDays?authkey=Bjy3kr8dHV0%24" target="_blank">Session Slides</a></p>  <p><strong>Session labs/demos:</strong></p>  <p><a href="https://cid-8d91c7d1c0e21f3c.skydrive.live.com/browse.aspx/TechDays?authkey=Bjy3kr8dHV0%24" target="_blank">Demos</a></p>  <p><strong>Webcast:</strong></p>  <p><a title="https://www112.livemeeting.com/cc/microsoft/view?id=F9TBZ9" href="https://www112.livemeeting.com/cc/microsoft/view?id=F9TBZ9">https://www112.livemeeting.com/cc/microsoft/view?id=F9TBZ9</a></p>]]></content:encoded>
    </item>
    <item>
      <title>TechDays 2010 – SQL Server Engine Internals – Deep Dive Session</title>
      <link>https://docs.microsoft.com/archive/blogs/joaol/techdays-2010-sql-server-engine-internals-deep-dive-session</link>
      <pubDate>Fri, 23 Apr 2010 09:02:10 GMT</pubDate>
      <dc:creator><![CDATA[Joao Loureirot_]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/joaol/2010/04/23/techdays-2010-sql-server-engine-internals-deep-dive-session/</guid>
      <description><![CDATA[Summary:  - SQL Server 32 bits vs 64 bits    - SQL Server IO considerations     - Troubleshooting...]]></description>
      <content:encoded><![CDATA[<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/joaol/WindowsLiveWriter/TechDays2010SQLServerEngineInternalsDeep_EF86/image_2.png" original-url="https://blogs.msdn.com/blogfiles/joaol/WindowsLiveWriter/TechDays2010SQLServerEngineInternalsDeep_EF86/image_2.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/joaol/WindowsLiveWriter/TechDays2010SQLServerEngineInternalsDeep_EF86/image_thumb.png" original-url="https://blogs.msdn.com/blogfiles/joaol/WindowsLiveWriter/TechDays2010SQLServerEngineInternalsDeep_EF86/image_thumb.png" width="280" height="211" /></a> </p>  <h5>Summary:</h5>  <p>- SQL Server 32 bits vs 64 bits    <br />- SQL Server IO considerations     <br />- Troubleshooting using Perfmon and Profiler     <br />- SSMS Tips     <br />- Visualizing Schemas     <br />- Performance troubleshooting using MDW</p>  <p><strong>Session slides:</strong></p>  <p><a href="https://cid-8d91c7d1c0e21f3c.skydrive.live.com/browse.aspx/TechDays?authkey=Bjy3kr8dHV0%24" target="_blank">Session Slides</a></p>  <p><strong>Session labs/demos:</strong></p>  <p><a href="https://cid-8d91c7d1c0e21f3c.skydrive.live.com/browse.aspx/TechDays?authkey=Bjy3kr8dHV0%24" target="_blank">Demos</a></p>  <p><strong>Webcast</strong></p>  <p><a href="https://www112.livemeeting.com/cc/microsoft/view?id=3ZSBCN">https://www112.livemeeting.com/cc/microsoft/view?id=3ZSBCN</a></p>]]></content:encoded>
    </item>
    <item>
      <title>SQL Server 2005 Patch Fails to install with an error "Unable to install Windows Installer MSP file"</title>
      <link>https://docs.microsoft.com/archive/blogs/joaol/sql-server-2005-patch-fails-to-install-with-an-error-unable-to-install-windows-installer-msp-file</link>
      <pubDate>Tue, 05 Jan 2010 09:17:33 GMT</pubDate>
      <dc:creator><![CDATA[Joao Loureirot_]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/joaol/2010/01/05/sql-server-2005-patch-fails-to-install-with-an-error-unable-to-install-windows-installer-msp-file/</guid>
      <description><![CDATA[&#160;  We have seen several issues where installation of Service Pack/Hotfix/GDR/CU fails to...]]></description>
      <content:encoded><![CDATA[<h4>&#160;</h4>  <p>We have seen several issues where installation of Service Pack/Hotfix/GDR/CU fails to install on one or more components of SQL Server 2005. In this blog , I have tried to include few troubleshooting tips and tricks for these kinds of installation failures. </p>  <p>Whenever a hotfix installation fails, we start troubleshooting&#160; with the log file usually located at&#160; %ProgramFiles%\Microsoft SQL Server\90\Setup Bootstrap\LOG\Hotfix\Summary.txt </p>  <p>I am demonstrating an example to troubleshoot an issue where KB954606 (Security Update MS08-052) failed to install . </p>  <p>First , go to %ProgramFiles%\Microsoft SQL Server\90\Setup Bootstrap\LOG\Hotfix\ and see Summary.txt :</p>  <p>----------------------------------------------------------------------------------</p>  <p>Product Installation Status</p>  <p>Product&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; : SQL Server Database Services 2005 (MSSQLSERVER)</p>  <p>Product Version (Previous): 3073</p>  <p>Product Version (Final)&#160;&#160; : </p>  <p>Status&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; : Failure</p>  <p>Log File&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; : C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\LOG\Hotfix\SQL9_Hotfix_KB954606_sqlrun_sql.msp.log</p>  <p>Error Number&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; : 1635</p>  <p>Error Description&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; : Unable to install Windows Installer MSP file </p>  <p>----------------------------------------------------------------------------------</p>  <p>Above error is for SQL Server Database Services 2005 , so in this example I will display troubleshooting steps for Database Engine only. </p>  <p>To troubleshoot this issue, I like to analyze verbose log which is usually located at %ProgramFiles%\Microsoft SQL Server\90\Setup Bootstrap\LOG\Hotfix\SQL9_Hotfix_KBnnnnnn_sqlrun_sql.msp.log .</p>  <p>[Where KBnnnnnn is a placeholder for the hotfix number which is failing to install. In our example, it is SQL9_Hotfix_KB954606_sqlrun_sql.msp.log .]</p>  <p><u>Partial Contents of SQL9_Hotfix_KB954606_sqlrun_sql.msp.log :</u></p>  <p>=== Verbose logging started: 1/18/2009&#160; 05:21:19&#160; Build type: SHIP UNICODE 3.01.4000.4042&#160; Calling process: c:\cf7b299b237d95aef330b0000d8d947f\hotfix.exe ===</p>  <p>MSI (c) (AC:D0) [17:45:28:483]: Resetting cached policy values</p>  <p>MSI (c) (AC:D0) [17:45:28:483]: Machine policy value 'Debug' is 0</p>  <p>MSI (c) (AC:D0) [17:45:28:483]: ******* RunEngine:</p>  <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ******* Product: {2373A92B-1C1C-4E71-B494-5CA97F96AA19}</p>  <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ******* Action: </p>  <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ******* CommandLine: **********</p>  <p>MSI (c) (AC:D0) [17:45:28:483]: Client-side and UI is none or basic: Running entire install on the server.</p>  <p>MSI (c) (AC:D0) [17:45:28:483]: Grabbed execution mutex.</p>  <p>MSI (c) (AC:D0) [17:45:28:515]: Cloaking enabled.</p>  <p>MSI (c) (AC:D0) [17:45:28:515]: Attempting to enable all disabled priveleges before calling Install on Server</p>  <p>MSI (c) (AC:D0) [17:45:28:530]: Incrementing counter to disable shutdown. Counter after increment: 0</p>  <p>MSI (s) (D0:F8) [17:45:28:546]: Grabbed execution mutex.</p>  <p>MSI (s) (D0:F4) [17:45:28:546]: Resetting cached policy values</p>  <p>MSI (s) (D0:F4) [17:45:28:546]: Machine policy value 'Debug' is 0</p>  <p>MSI (s) (D0:F4) [17:45:28:546]: ******* RunEngine:</p>  <p><strong>******* Product: {2373A92B-1C1C-4E71-B494-5CA97F96AA19}</strong></p>  <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ******* Action: </p>  <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ******* CommandLine: **********</p>  <p>MSI (s) (D0:F4) [17:45:28:546]: Machine policy value 'DisableUserInstalls' is 0</p>  <p>MSI (s) (D0:F4) [17:45:28:546]: Adding MSIINSTANCEGUID to command line.</p>  <p><strong>MSI (s) (D0:F4) [17:45:28:546]: Warning: Local cached package 'C:\WINDOWS\Installer\638de4.msi' is missing.</strong></p>  <p>MSI (s) (D0:F4) [17:45:28:546]: User policy value 'SearchOrder' is 'nmu'</p>  <p>MSI (s) (D0:F4) [17:45:28:546]: User policy value 'DisableMedia' is 0</p>  <p>MSI (s) (D0:F4) [17:45:28:546]: Machine policy value 'AllowLockdownMedia' is 0</p>  <p>MSI (s) (D0:F4) [17:45:28:546]: SOURCEMGMT: Media enabled only if package is safe.</p>  <p>MSI (s) (D0:F4) [17:45:28:546]: SOURCEMGMT: Looking for sourcelist for product {2373A92B-1C1C-4E71-B494-5CA97F96AA19}</p>  <p>:</p>  <p>:</p>  <p>:</p>  <p>:</p>  <p>:</p>  <p>MSI (s) (D0:F4) [17:45:47:452]: Opening existing patch 'C:\WINDOWS\Installer\9be677.msp'.</p>  <p>MSI (s) (D0:F4) [17:45:47:452]: Note: 1: 2203 2: C:\WINDOWS\Installer\9be677.msp 3: -2147287038 </p>  <p><strong>MSI (s) (D0:F4) [17:45:47:452]: Couldn't find local patch 'C:\WINDOWS\Installer\9be677.msp'. Looking for it at its source.</strong></p>  <p>MSI (s) (D0:F4) [17:45:47:452]: Resolving Patch source.</p>  <p>MSI (s) (D0:F4) [17:45:47:452]: User policy value 'SearchOrder' is 'nmu'</p>  <p>MSI (s) (D0:F4) [17:45:47:452]: SOURCEMGMT: Media enabled only if package is safe.</p>  <p><strong>MSI (s) (D0:F4) [17:45:47:452]: SOURCEMGMT: Looking for sourcelist for product {4A35EF4A-D868-4B15-A84D-3E8925AA9558}</strong></p>  <p>MSI (s) (D0:F4) [17:45:47:452]: SOURCEMGMT: Adding {4A35EF4A-D868-4B15-A84D-3E8925AA9558}; to potential sourcelist list (pcode;disk;relpath).</p>  <p>MSI (s) (D0:F4) [17:45:47:452]: SOURCEMGMT: Now checking product {4A35EF4A-D868-4B15-A84D-3E8925AA9558}</p>  <p>MSI (s) (D0:F4) [17:45:47:452]: SOURCEMGMT: Media is enabled for product.</p>  <p>MSI (s) (D0:F4) [17:45:47:452]: SOURCEMGMT: Attempting to use LastUsedSource from source list.</p>  <p>MSI (s) (D0:F4) [17:45:47:452]: SOURCEMGMT: Trying source d:\05ba72b40ba6b4d61d14cd3c3283\HotFixSQL\Files\.</p>  <p>MSI (s) (D0:F4) [17:45:47:452]: Note: 1: 2203 2: d:\05ba72b40ba6b4d61d14cd3c3283\HotFixSQL\Files\sqlrun_sql.msp 3: -2147287037 </p>  <p><strong>MSI (s) (D0:F4) [17:45:47:452]: SOURCEMGMT: Source is invalid due to missing/inaccessible package.</strong></p>  <p>MSI (s) (D0:F4) [17:45:47:452]: Note: 1: 1706 2: -2147483647 3: sqlrun_sql.msp </p>  <p>MSI (s) (D0:F4) [17:45:47:452]: SOURCEMGMT: Processing net source list.</p>  <p>MSI (s) (D0:F4) [17:45:47:452]: Note: 1: 1706 2: -2147483647 3: sqlrun_sql.msp </p>  <p>MSI (s) (D0:F4) [17:45:47:452]: SOURCEMGMT: Processing media source list.</p>  <p>MSI (s) (D0:F4) [17:45:47:452]: Note: 1: 2303 2: 87 3: E:\ </p>  <p>MSI (s) (D0:F4) [17:45:47:452]: Note: 1: 2303 2: 87 3: E:\ </p>  <p>MSI (s) (D0:F4) [17:45:47:452]: SOURCEMGMT: Resolved source to: 'sqlrun_sql.msp'</p>  <p>MSI (s) (D0:F4) [17:46:19:702]: Note: 1: 1314 2: sqlrun_sql.msp </p>  <p>MSI (s) (D0:F4) [17:46:19:702]: Unable to create a temp copy of patch 'sqlrun_sql.msp'.</p>  <p>MSI (s) (D0:F4) [17:46:19:702]: Note: 1: 1708 </p>  <p>MSI (s) (D0:F4) [17:46:19:702]: Note: 1: 2729 </p>  <p>MSI (s) (D0:F4) [17:46:19:702]: Note: 1: 2729 </p>  <p>MSI (s) (D0:F4) [17:46:19:702]: Product: Microsoft SQL Server 2005 -- Installation failed.</p>  <p>MSI (s) (D0:F4) [17:46:19:718]: MainEngineThread is returning 1635</p>  <p>This patch package could not be opened.&#160; Verify that the patch package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer patch package.</p>  <p>C:\SQLSETUP\Servers\Setup\SqlRun_SQL.msi</p>  <p>MSI (c) (AC:D0) [17:46:19:827]: Decrementing counter to disable shutdown. If counter &gt;= 0, shutdown will be denied.&#160; Counter after decrement: -1</p>  <p>MSI (c) (AC:D0) [17:46:19:827]: MainEngineThread is returning 1635</p>  <p>=== Verbose logging stopped: 1/20/2009&#160; 17:46:19 ===</p>  <p>1. The very first error I see in the above log is <strong>Local cached package 'C:\WINDOWS\Installer\638de4.msi' is missing</strong>. This file 638de4.msi is the cached msi file for sqlrun_sql.msi i.e. the main installation (RTM) of an instance of SQL Server Database Engine. During installation of RTM product, ..\Servers\Setup\SqlRun_SQL.msi is cached to %windir%\Installer folder for future use such as un-installation etc. Cached file has a different name which is a randomized alphanumeric name generated by the installer , this is because if you have multiple instances then multiple ‘Sqlrun_sql.msi’ has to be cached and hence a name conflict may occur. Anyways, if you know the GUID (ProductCode) of the instance , you can find the name of this cached file , go to </p>  <p>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\&lt;GUID&gt;\InstallProperties</p>  <p>In the right pane , look for the value of “LocalPackage” .</p>  <p>2. Now that we knew 'C:\WINDOWS\Installer\638de4.msi' is missing , we need to put it back to C:\Windows\Installer. To do so , locate your main installation setup of SQL Server (viz. CD media or setup folder copied on local disk) , copy Servers\Setup\SqlRun_SQL.msi and paste it into C:\Windows\Installer , rename it to the cached filename , in our case we have to rename it to 638de4.msi. Double check that C:\WINDOWS\Installer\638de4.msi is available now.</p>  <p>3. Let’s look for the next error in the log file and that is <strong>Couldn't find local patch 'C:\WINDOWS\Installer\9be677.msp'. Looking for it at its source .</strong>The filename 9be677.msp employs it is a MSP file means a <u>patch</u> , not a main product. I want to make it clear here that If we apply any patch , installer looks for the cached files of previously applied patche(s) as well as the cached msi file. So this cached msp file is also missing and we need to put it back. But the challenge is <u>how to find which patch is this ?</u> It is explained in following steps.</p>  <p>4. In the following lines in log file, we see :<strong> Looking for sourcelist for product {4A35EF4A-D868-4B15-A84D-3E8925AA9558}</strong> means the PatchCode for missing msp file 9be677.msp is {4A35EF4A-D868-4B15-A84D-3E8925AA9558}. Also, from <strong>******* Product: {2373A92B-1C1C-4E71-B494-5CA97F96AA19}</strong> , we know the ProductCode i.e. GUID is {2373A92B-1C1C-4E71-B494-5CA97F96AA19} .</p>  <p>So we have below info till this point : </p>  <p>GUID&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; = <strong>{2373A92B-1C1C-4E71-B494-5CA97F96AA19}</strong></p>  <p>PatchCode&#160;&#160;&#160;&#160; = <strong>{4A35EF4A-D868-4B15-A84D-3E8925AA9558}</strong></p>  <p>The GUID and PatchCode are stored in registry in encrypted format. Search* (See <u>Search</u><u> </u>Hints below) them ,open regedit , go to </p>  <p>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\&lt;GUID&gt;\Patches\&lt;PatchCode&gt;</p>  <p>In the right pane , see the value of “DisplayName” . In our case , it was like below :</p>  <p>DisplayName = Service Pack 2 for SQL Server Database Services 2005 ENU (KB921896)</p>  <p>So DisplayName explains that <strong>{4A35EF4A-D868-4B15-A84D-3E8925AA9558}</strong> is Patch Code for KB921896 i.e. SP2 .</p>  <p>5. Recall Step 3 , we found the missing msp file i.e. 9be677.msp is for KB921896 . In order to put his cached msp file back , download KB921896 , extract it at a command prompt using switch /extract , go to extracted directory of KB921896 and copy ..\ hotfixsql\files\sqlrun_sql.msp , paste it in C:\Windows\Installer and rename it to 9be677.msp . Double check that <strong>'C:\WINDOWS\Installer\9be677.msp'</strong> exists now.</p>  <p>6. Now that we have made available both the missing files (msi and msp) , apply the patch (in our case KB954606) again which failed to install .It should succeed now. However , in case if it fails again, that may be due to the fact that it might be looking for some other patch which might have been applied previously and is missing now. If so, failure installation will again generate verbose log , open the verbose log (like SQL9_Hotfix_KB954606_sqlrun_sql.msp.log) , look at 15-20 lines above the bottom of the log file , you may find <strong>Couldn't find local patch</strong> , put the appropriate cached msp file back to C:\Windows\Installer , rename it appropriately and re-try the setup.</p>  <p>[It’s expected that log file after performing above steps won’t complain for ‘*.msi file is missing’ anymore .]</p>  <p>7. <b><i>For other failing components like AS, RS, NS, Tools, IS&#160; etc please follow the troubleshooting method as explained in step1 to step6 looking at the appropriate verbose log file. Please note that GUID, msp filename and msp file path in the extracted folder would be different for different components. Choose carefully.</i></b></p>  <p><b>Hope this helps !</b></p>  <p><i><u>*Search Hints&#160; : </u></i></p>  <p><i>1.&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; As ‘Note’ of</i><i> </i><i><a href="https://support.microsoft.com/?id=928321">KB article 938321</a></i><i> </i><i>explains , to locate the specific Product Code registry subkey, search for the ProductName registry entry that has the value of &quot;Microsoft SQL Server 2005 (InstanceName)&quot; </i></p>  <p><i></i><i>under the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\ registry subkey.</i></p>  <p><i>2.&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Alternatively, see </i><i><a href="https://kb.acresso.com/selfservice/viewContent.do?externalID=Q105971">this</a></i><i> link , very useful in locating GUID in registry .</i></p>  <p><i></i></p>  <p><i></i></p>  <p><i>Additionally, you may see these errors as well in Summary.txt under Hotfix folder :</i></p>  <p><i></i></p>  <p><i>----------------------------------------------------------------------------------</i></p>  <p><i>Error Number&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; : 1642</i></p>  <p><i>Error Description&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; : Unable to install Windows Installer MSP file</i></p>  <p><i>----------------------------------------------------------------------------------</i></p>  <p><i>Error Number&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; : 1612</i></p>  <p><i>Error Description&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; : Unable to install Windows Installer MSP file</i></p>  <p><i>----------------------------------------------------------------------------------</i></p>  <p><i>Error Number&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; : 1646</i></p>  <p><i>Error Description&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; : Unable to install Windows Installer MSP file</i></p>  <p><i>----------------------------------------------------------------------------------</i></p>  <p><i></i></p>  <p><i>Please see</i><i> </i><i><a href="https://support.microsoft.com/kb/304888/en-us">KB304888</a></i><i> for </i><i>a list of error codes and error messages for Windows Installer processes.</i><i></i></p>  <p><i></i></p>  <p><i><u>Some More Information :</u></i></p>  <p><i></i></p>  <p><i>Service Pack/Hotfix/GDR/CU contains MSP files as compared to RTM product which has MSI files. </i></p>  <p><i></i></p>  <p><i>What is MSP ?</i></p>  <p><i>--------------------</i></p>  <p><i>A MSP (Microsoft Software Patch) is basically a set of transforms (modifications) against a baseline MSI (Microsoft Software Installer) file.&#160; When a MSP is installed, instead of updating the contents of the cached MSI (modifying it according to the transforms included in the MSP), Windows Installer simply caches the MSP.&#160; Then each time the MSI is run, the cached MSP is applied on the fly again.&#160; The reason it works this way is to simplify the authoring and building of MSPs, so that each MSP can be built only against RTM and not have to know about all the possible MSPs that have been released since then.&#160; For example, when SP2 is applied the SP1 patch is obsolete and Windows Installer just applies SP2 directly against the cached contents of the RTM product.</i></p>  <p><em>(credits for this article - </em>Prashant Kumar SE, Microsoft SQL Server)</p>]]></content:encoded>
    </item>
    <item>
      <title>SQL Server 2008 Premier Workshop (Porto)</title>
      <link>https://docs.microsoft.com/archive/blogs/joaol/sql-server-2008-premier-workshop-porto</link>
      <pubDate>Wed, 18 Nov 2009 08:25:37 GMT</pubDate>
      <dc:creator><![CDATA[Joao Loureirot_]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/joaol/2009/11/18/sql-server-2008-premier-workshop-porto/</guid>
      <description><![CDATA[SQL Server 2008  Technical Overview  High Availability and Performance Optimization  From 12 to...]]></description>
      <content:encoded><![CDATA[<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/joaol/WindowsLiveWriter/SQLServer2008PremierWorkshopPorto_E6F3/image_2.png" original-url="https://blogs.msdn.com/blogfiles/joaol/WindowsLiveWriter/SQLServer2008PremierWorkshopPorto_E6F3/image_2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/joaol/WindowsLiveWriter/SQLServer2008PremierWorkshopPorto_E6F3/image_thumb.png" original-url="https://blogs.msdn.com/blogfiles/joaol/WindowsLiveWriter/SQLServer2008PremierWorkshopPorto_E6F3/image_thumb.png" width="536" height="190" /></a> </p>  <p align="center"><b>SQL Server 2008</b></p>  <p align="center"><b>Technical Overview</b></p>  <p align="center"><b>High Availability and Performance Optimization</b></p>  <p align="center">From 12 to 13 November 2009</p>  <p><strong>Session summary:</strong></p>  <p><strong>Day 1</strong></p>  <p>SQL Server 2008 High availability and performance troubleshooting</p>  <p>•&#160;&#160;&#160; SQL Server 2008 Log Shipping Setup/Configuration    <br />•&#160;&#160;&#160; SQL Server 2008 Mirror Setup/Configuration     <br />•&#160;&#160;&#160; SQL Server 2008 Cluster Setup/Configuration     <br />•&#160;&#160;&#160; SQL Server 2008 high availability/reliability     <br />•&#160;&#160;&#160; SQL Server 200x upgrade to SQL Server 2008     <br />•&#160;&#160;&#160; SQL Server 2008 Performance Monitoring     <br />•&#160;&#160;&#160; Overview of new performance monitor tools/functionalities     <br />•&#160;&#160;&#160; Find and diagnose active performance issues     <br />•&#160;&#160;&#160; Analyze performance issues in offline mode </p>  <p><strong>Technical Highlights </strong></p>  <p><strong></strong>    <br />•&#160;&#160;&#160; SQL Cluster versus SQL mirror implementation     <br />•&#160;&#160;&#160; Advantages and tradeoffs of most common SQL high availability scenarios     <br />•&#160;&#160;&#160; Mirror setup and configuration     <br />•&#160;&#160;&#160; Log shipping planning and implementation     <br />•&#160;&#160;&#160; Mixed scenarios combining cluster and mirror     <br />•&#160;&#160;&#160; Maintenance and backup strategies     <br />•&#160;&#160;&#160; Disaster recovery options     <br />•&#160;&#160;&#160; SQL Server 200x upgrade discussion based on most common scenarios    <br />•&#160;&#160;&#160; Data Collector     <br />•&#160;&#160;&#160; Management Data Warehouse     <br />•&#160;&#160;&#160; Performance and Configuration Reports     <br />•&#160;&#160;&#160; Activity Monitor     <br />•&#160;&#160;&#160; Graphical ShowPlan     <br />•&#160;&#160;&#160; SQL Server Profiler     <br />•&#160;&#160;&#160; Resource Governor     <br />•&#160;&#160;&#160; XEvents     <br />•&#160;&#160;&#160; Dynamic Management Views     <br />•&#160;&#160;&#160; Database Engine Tuning Advisor </p>  <p><strong>Day 2 </strong></p>  <p>SQL Server 2008 technical overview</p>  <p>•&#160;&#160;&#160; SQL Server 2008 Declarative Management Framework    <br />•&#160;&#160;&#160; SQL Server 2008 Peer to Peer Replication     <br />•&#160;&#160;&#160; SQL Server 2008 Power Shell Integration     <br />•&#160;&#160;&#160; SSMS Intellisense     <br />•&#160;&#160;&#160; Transparent Data Encryption     <br />•&#160;&#160;&#160; SQL Server 2008 Auditing     <br />•&#160;&#160;&#160; Data compression     <br />•&#160;&#160;&#160; SQL Server 2008 Management Data Warehouse     <br />•&#160;&#160;&#160; SQL Server 2008 Resource governor     <br />•&#160;&#160;&#160; Virtualization with SQL Server 2008     <br />•&#160;&#160;&#160; SQL Server File Stream </p>  <p><strong>Technical Highlights </strong></p>  <p><strong>     <br /></strong>•&#160;&#160;&#160; Peer to Peer Replication improvements     <br />•&#160;&#160;&#160; Benefits and cautions using TDE     <br />•&#160;&#160;&#160; Improve compliance and security using Auditing     <br />•&#160;&#160;&#160; Data compression versus backup compression     <br />•&#160;&#160;&#160; Using Resource governor to control and prioritize workloads     <br />•&#160;&#160;&#160; Using data collector to easily identify performance problems     <br />•&#160;&#160;&#160; SQL Server 2008 virtualization benefits and precautions     <br />•&#160;&#160;&#160; File Stream benefits, recommendations and best practices </p>  <p></p>  <p><strong>Session slides:</strong></p>  <p><a href="https://cid-8d91c7d1c0e21f3c.skydrive.live.com/embedicon.aspx/P%c3%bablica/SQL%20Server%202008%20Permier%20Session%20Porto/Server%202008%20both.pdf" target="_blank">SQL Server 2008 Premier Session Porto.zip</a></p>]]></content:encoded>
    </item>
    <item>
      <title>SQL Server 2005 RTM/SP Setup hangs when displaying patching passive node message</title>
      <link>https://docs.microsoft.com/archive/blogs/joaol/sql-server-2005-rtmsp-setup-hangs-when-displaying-patching-passive-node-message</link>
      <pubDate>Mon, 19 Oct 2009 03:56:50 GMT</pubDate>
      <dc:creator><![CDATA[Joao Loureirot_]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/joaol/2009/10/19/sql-server-2005-rtmsp-setup-hangs-when-displaying-patching-passive-node-message/</guid>
      <description><![CDATA[If admin shares are disable on both nodes of the cluster task scheduler might be visible remotely...]]></description>
      <content:encoded><![CDATA[<p>If admin shares are disable on both nodes of the cluster task scheduler might be visible remotely but creating a remote task using task scheduler also hangs.</p>  <p>   <br />Check the if the following key exists and remove it or change value to 1 and reboot machine:</p>  <p>   <br />Hive: HKEY_LOCAL_MACHINE    <br />Key: SYSTEM\CurrentControlSet\Services\LanManServer\Parameters    <br />Name: AutoShareServer    <br />Data Type: REG_DWORD    <br />Value: 0    <br /></p>  <p><a title="https://en.wikipedia.org/wiki/Administrative_share" href="https://en.wikipedia.org/wiki/Administrative_share">https://en.wikipedia.org/wiki/Administrative_share</a> – Administrative share</p>  <p>SQL installation log file last lines should be:   <br /></p>  <p>(...)   <br />10/15/2009 00:32:13.207 Patching available passive node: node_name    <br />10/15/2009 00:32:13.238 Waiting for first completed passive node    <br />10/15/2009 00:32:13.254 Patching passive node: node_name    <br /></p>  <p>Normal installation log:   <br /></p>  <p>(...)   <br />11/13/2008 17:05:07.428 Patching available passive node: remote_nome_name    <br />11/13/2008 17:05:07.429 Patching passive node: remote_nome_name    <br />11/13/2008 17:05:07.530 Task Scheduler: Created remote folder for product instance target <a href="file:///\\remote_nome_name">\\remote_nome_name</a>    <br />(…)</p>]]></content:encoded>
    </item>
    <item>
      <title>SQL Server 2008 does not start after SP1 with ETW enabled</title>
      <link>https://docs.microsoft.com/archive/blogs/joaol/sql-server-2008-does-not-start-after-sp1-with-etw-enabled</link>
      <pubDate>Wed, 30 Sep 2009 12:51:04 GMT</pubDate>
      <dc:creator><![CDATA[Joao Loureirot_]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/joaol/2009/09/30/sql-server-2008-does-not-start-after-sp1-with-etw-enabled/</guid>
      <description><![CDATA[In case you have just deployed SQL Server 2008 SP1 on a IA64 machine and SQL Server doesn’t start...]]></description>
      <content:encoded><![CDATA[<p>In case you have just deployed SQL Server 2008 SP1 on a IA64 machine and SQL Server doesn’t start check if you have ETW tracing using MSSQLSERVER provider enabled.</p>  <p>SQL Server error log last lines are listed below and no further info is displayed after resource database build info:</p>  <p>SQL Server error log:</p>  <p>(…)   <br />2009-09-18 11:48:45.28 spid6s SQL Trace ID 1 was started by login &quot;sa&quot;.    <br />2009-09-18 11:48:45.28 spid6s Starting up database 'mssqlsystemresource'.    <br />2009-09-18 11:48:45.34 spid6s The resource database build version is 10.00.2531. This is an informational message only. No user action is required.</p>  <p>(…)</p>  <p>No messages are logged on event viewer and process needs to be killed manually using task manager. Capturing a memory dump shows at least 2 threads with similar callstack:</p>  <p>(…)</p>  <p>Child-SP Child-BSP RetAddr Call Site   <br />(…)</p>  <p>00000000`287ed940 00000000`287f0c58 00000000`01125610 sqlservr!EventInternal&lt;Spinlock&lt;149,1,0&gt; &gt;::Wait+0x250   <br />00000000`287ed940 00000000`287f0be0 00000000`01867d20 sqlservr!FInitDCOM+0x260    <br />00000000`287ed9b0 00000000`287f0bb0 00000000`05116d50 sqlservr!CreateInfoSetReaderExNoCheck+0x50    <br />00000000`287ed9d0 00000000`287f0b78 00000000`05118080 sqlservr!CreateInfoSetReaderEx+0x50    <br />00000000`287eda00 00000000`287f0b10 00000000`05a68230 sqlservr!CTraceETW::FindTemplate+0x670    <br />00000000`287eda70 00000000`287f0a98 00000000`76b0b040 sqlservr!CTraceETW::ControlCallback+0x310    <br />00000000`287edbd0 00000000`287f0a38 00000000`76b16800 ntdll!RegisterGuidsApiCallback+0x140    <br />00000000`287edc30 00000000`287f09b8 00000000`76b16960 ntdll!EtwpUpdateEnableInfoAndCallback+0x180    <br />00000000`287edc70 00000000`287f0958 00000000`76b1ae50 ntdll!EtwpRegisterProvider+0x120    <br />00000000`287edd20 00000000`287f0918 00000000`76b135e0 ntdll!EtwNotificationRegister+0x90    <br />00000000`287edd20 00000000`287f0898 00000000`05a68d80 ntdll!EtwRegisterTraceGuidsW+0x140    <br />00000000`287edda0 00000000`287f0820 00000000`05a6ae80 sqlservr!CTraceETW::Startup+0x620    <br />00000000`287ef9b0 00000000`287f0808 00000000`019b7dc0 sqlservr!CTraceETW::StartupTask+0x20    <br />(…)</p>  <p>&#160;</p>  <p>(…)   <br />Child-SP Child-BSP RetAddr Call Site    <br />00000000`164ae3c0 00000000`164b2300 00000000`76b37940 ntdll!RtlpWaitOnCriticalSection+0x3e0    <br />00000000`164ae410 00000000`164b22c0 00000000`76b1adf0 ntdll!RtlEnterCriticalSection+0x180    <br />00000000`164ae410 00000000`164b2280 00000000`76b135e0 ntdll!EtwNotificationRegister+0x30    <br />00000000`164ae410 00000000`164b2200 000006fa`fd503b60 ntdll!EtwRegisterTraceGuidsW+0x140    <br />00000000`164ae490 00000000`164b2190 000006fa`fdc57ee0 shell32!DllMain+0x180    <br />00000000`164ae4b0 00000000`164b2138 000006fa`fdc582d0 shell32!__DllMainCRTStartup+0x220    <br />00000000`164ae5d0 00000000`164b2108 00000000`76b247c0 shell32!_DllMainCRTStartup+0x50    <br />00000000`164ae5d0 00000000`164b2020 00000000`76b280c0 ntdll!LdrpRunInitializeRoutines+0x440    <br />00000000`164ae740 00000000`164b1f68 00000000`76b27300 ntdll!LdrpLoadDll+0x620    <br />00000000`164ae9d0 00000000`164b1ed0 00000000`76a0fed0 ntdll!LdrLoadDll+0x1e0    <br />00000000`164aec40 00000000`164b1e48 000006fa`fed061f0 kernel32!LoadLibraryExW+0x670    <br />00000000`164aecb0 00000000`164b1de8 000006fa`fed05ca0 ole32!CClassCache::CDllPathEntry::LoadDll+0x190    <br />00000000`164aecb0 00000000`164b1d60 000006fa`fed03f00 ole32!CClassCache::CDllPathEntry::Create_rl+0xe0    <br />00000000`164aece0 00000000`164b1ce0 000006fa`fed0a350 ole32!CClassCache::CClassEntry::CreateDllClassEntry_rl+0x1e0    <br />00000000`164aef20 00000000`164b1c60 000006fa`fed09ad0 ole32!CClassCache::GetClassObjectActivator+0x4d0    <br />00000000`164aef50 00000000`164b1c08 000006fa`fed0d6e0 ole32!CClassCache::GetClassObject+0x90    <br />00000000`164aef90 00000000`164b1be8 000006fa`fed0f850 ole32!CCGetClassObject+0x40    <br />00000000`164aef90 00000000`164b1b20 000006fa`feeb8ea0 ole32!CServerContextActivator::GetClassObject+0x470    <br />00000000`164af010 00000000`164b1ab8 000006fa`fed12280 ole32!ActivationPropertiesIn::DelegateGetClassObject+0x440    <br />00000000`164af040 00000000`164b1a78 000006fa`fed110d0 ole32!CApartmentActivator::GetClassObject+0xe0    <br />00000000`164af050 00000000`164b1a30 000006fa`fed10ff0 ole32!CProcessActivator::GCOCallback+0xb0    <br />00000000`164af060 00000000`164b19d8 000006fa`fed10cd0 ole32!CProcessActivator::AttemptActivation+0x70    <br />00000000`164af060 00000000`164b1950 000006fa`fed10a00 ole32!CProcessActivator::ActivateByContext+0x110    <br />00000000`164af070 00000000`164b1918 000006fa`feeb8ea0 ole32!CProcessActivator::GetClassObject+0xe0    <br />00000000`164af080 00000000`164b18b0 000006fa`fed0edb0 ole32!ActivationPropertiesIn::DelegateGetClassObject+0x440    <br />00000000`164af0b0 00000000`164b1840 000006fa`feeb8ea0 ole32!CClientContextActivator::GetClassObject+0x1f0    <br />00000000`164af300 00000000`164b17d0 000006fa`fed155c0 ole32!ActivationPropertiesIn::DelegateGetClassObject+0x440    <br />00000000`164af330 00000000`164b16c8 000006fa`fecfdf30 ole32!ICoGetClassObject+0x9c0    <br />00000000`164afd10 00000000`164b1600 000006fa`fecfe910 ole32!CComActivator::DoGetClassObject+0x2d0    <br />00000000`164afd20 00000000`164b15c0 00000000`01126000 ole32!CoGetClassObject+0x50    <br />00000000`164afd20 00000000`164b15a0 00000000`0112bd40 sqlservr!GetLuxorClassFactory+0x70    <br />00000000`164afd30 00000000`164b1560 00000000`04297a80 sqlservr!LoadDCOM+0x1e0    <br />00000000`164afd40 00000000`164b1520 00000000`0612e2d0 sqlservr!StartUp::WaitForTempdbLocked+0x120    <br />00000000`164afd50 00000000`164b13c0 00000000`019b7dc0 sqlservr!initCM+0x610    <br />(….)</p>  <p>0:026&gt; !locks   <br />CritSec ntdll!LdrpLoaderLock+0 at 0000000076d18e20    <br />WaiterWoken No    <br />LockCount 3    <br />RecursionCount 2    <br />OwningThread 1064    <br />EntryCount 0    <br />ContentionCount 8    <br />*** Locked    <br />CritSec ntdll!EtwProvCritSect+0 at 0000000076d1d940    <br />WaiterWoken No    <br />LockCount 1    <br />RecursionCount 1    <br />OwningThread 120c à thread 26    <br />EntryCount 0    <br />ContentionCount 1    <br />*** Locked</p>  <p>So basically second thread that is responsible to initialize DCom and signal it but that was locked because ETW logging critical section was owned by second thread. Second thread acquired ETW critical section but was waiting for DCom to be signaled. Basically a deadlock scenario between these 2 threads.</p>  <p>There are 2 possible workarounds, first is to disable ETW tracing and enabling it after SQL has been started however in case SQL restarts or needs to failover that procedure needs to be manually applied. </p>  <p>Another workaround would be to delete or rename the ETW configuration file (etwcnf.xml) located under the SQL Server instance BINN folder. This should disable SQL Server ETW trace. The ETW callback will fail before reaching the point where it waits for DCOM initialization. You should see the following error in SQL Server errorlog. SQL Server should start normally though. </p>  <p>2009-09-22 10:38:29.03 Server&#160;&#160;&#160;&#160;&#160; Error: 8352, Severity: 16, State: 1.   <br />2009-09-22 10:38:29.03 Server&#160;&#160;&#160;&#160;&#160; Cannot find the requested trace template: id = 1.</p>  <p>This problem should be addressed on SQL Server 2008 SP1 Cumulative Update 5</p>]]></content:encoded>
    </item>
    <item>
      <title>SQL Server 2008 Deep Dive Session</title>
      <link>https://docs.microsoft.com/archive/blogs/joaol/sql-server-2008-deep-dive-session</link>
      <pubDate>Fri, 11 Sep 2009 12:05:53 GMT</pubDate>
      <dc:creator><![CDATA[Joao Loureirot_]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/joaol/2009/09/11/sql-server-2008-deep-dive-session/</guid>
      <description><![CDATA[Summary:  – Higher Availability and scalability (Fail-over clustering, mirroring)   –...]]></description>
      <content:encoded><![CDATA[<p><a href="https://co1piltwb.partners.extranet.microsoft.com/mcoeredir/mcoeredirect.aspx?linkId=12340098&amp;s1=2ead8b1c-fff8-8f2b-5288-f7cb93d93e47"><img border="0" alt="SQL Server 2008" src="https://www.microsoft.com/library/media/2070/portugal/msdn/media/sqlbanner.jpg" width="585" height="150" /></a></p>  <p><font size="2">Summary:</font></p>  <p>– Higher Availability and scalability (Fail-over clustering, mirroring) </p>  <p>– Manageability and Administration (Resource governor, Policy Based Management and Server Group Management) </p>  <p>– Virtualization, Storage Savings (virtualization, Data Compression and TDE) </p>  <p>– Performance and Auditing(Partitioning, Partition Aligned Indexed Views, Auditing, File Stream) </p>  <p>–Troubleshooting and Optimization (Performance Data Collection, X-Events, Data Tuning Wizard)</p>  <p><font size="2">Session slides:</font></p>  <p><font size="2"><a href="https://cid-8d91c7d1c0e21f3c.skydrive.live.com/browse.aspx/P%c3%bablica?authkey=yK8TVr!6GsM%24" target="_blank">SQL Server 2008 Deep Dive Slides.zip</a></font></p>  <p><font size="2">Session labs/demos:</font></p>  <p><font size="2"><a href="https://cid-8d91c7d1c0e21f3c.skydrive.live.com/browse.aspx/P%c3%bablica?authkey=yK8TVr!6GsM%24" target="_blank">SQL Server 2008 Deep Dive Demos.zip</a></font></p>]]></content:encoded>
    </item>
    <item>
      <title>SQL Server 2005 performance problems due grow of TokenAndPermUserStore cache</title>
      <link>https://docs.microsoft.com/archive/blogs/joaol/sql-server-2005-performance-problems-due-grow-of-tokenandpermuserstore-cache</link>
      <pubDate>Mon, 20 Jul 2009 11:35:29 GMT</pubDate>
      <dc:creator><![CDATA[Joao Loureirot_]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/joaol/2009/07/20/sql-server-2005-performance-problems-due-grow-of-tokenandpermuserstore-cache/</guid>
      <description><![CDATA[TokenAndPermUserStore is one of the many caches present in the SQL Server 2005 memory architecture....]]></description>
      <content:encoded><![CDATA[<p>TokenAndPermUserStore is one of the many caches present in the SQL Server 2005 memory architecture. As the name implies, this cache stores various security related information used by the SQL Server Engine.</p>  <p>To find out the amount of memory consumed by this token cache, you can query the DMV’s as follows:</p>  <p>SELECT SUM(single_pages_kb + multi_pages_kb) AS &quot;SecurityTokenCacheSize(kb)&quot; </p>  <p>FROM sys.dm_os_memory_clerks</p>  <p>WHERE name = 'TokenAndPermUserStore'</p>  <p>Typical symptoms:</p>  <p>1. Queries which normally finish faster take a long time</p>  <p>2. CPU usage of SQL Server process is relatively higher. CPU usage could come down after remaining high for a period of time.</p>  <p>3. Connections from your applications keep increasing (specifically in connection pool environments)</p>  <p>4. You encounter connection or query timeouts</p>  <p>Possible workarounds (assuming that you are running SQL Server 2005 SP2 build &gt;= 9.00.3179:</p>  <p>1. Use Trace flag -T4618 to restrict the number of entries maintained in the TokenAndPermUserStore cache. This trace flag was introduced in SQL Server 2005 SP2. You can use Trace Flag –T4610 in conjunction with –T4618 to relax the limit on number of entries in the cache. Also -T4610 increases the number of buckets in the hash tables used to maintain this cache. </p>  <p>2. Execute the command <i>DBCC FREESYSTEMCACHE ('TokenAndPermUserStore') </i>at regular intervals to obtain relief (this is useful to prove that you area really experiencing TokenAndPermUserStore cache grow problem)</p>  <p>3. Use some of the best practices mentioned in the above articles to reduce the cache growth (e.g. Parameterize ad-hoc queries, forced parameterization, avoiding recompiles, etc).</p>  <p>With SP3 there is a new option to control TokenAndPermUserStore cache store and avoid this problem. Please see more details on the following KB article:</p>  <p>959823 How to customize the quota for the TokenAndPermUserStore cache store in SQL Server 2005 Service Pack 3   <br /><a href="https://support.microsoft.com/default.aspx?scid=kb;EN-US;959823">https://support.microsoft.com/default.aspx?scid=kb;EN-US;959823</a></p>  <p>On SQL Server 2008 this cache mechanism has been improved anyway you might noticed 2 new advanced configuration options in <a href="https://msdn.microsoft.com/en-us/library/ms189631(SQL.100).aspx">sp_configure</a> named “<i>access check cache bucket count</i>” and “<i>access check cache quota</i></p>]]></content:encoded>
    </item>
  </channel>
</rss>