<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Derek's Musings &#187; Microsoft SQL Server</title>
	<atom:link href="http://www.incandetech.com/derek/tag/microsoft-sql-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.incandetech.com/derek</link>
	<description>I'm right. You're wrong. Don't take it personally. It's just how things are.</description>
	<lastBuildDate>Wed, 28 Jul 2010 02:23:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>A service pack fails to apply to Microsoft SQL Server with error 0&#215;7358, 0&#215;80070534 or &#8220;No account mapping&#8221;</title>
		<link>http://www.incandetech.com/derek/2009/10/23/a-service-pack-fails-to-apply-to-microsoft-sql-server-2005-with-error-0x7358-0x80070534-or-no-account-mapping/</link>
		<comments>http://www.incandetech.com/derek/2009/10/23/a-service-pack-fails-to-apply-to-microsoft-sql-server-2005-with-error-0x7358-0x80070534-or-no-account-mapping/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 16:12:47 +0000</pubDate>
		<dc:creator>Derek</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Microsoft SQL Server]]></category>

		<guid isPermaLink="false">http://www.incandetech.com/derek/2009/10/23/a-service-pack-fails-to-apply-to-microsoft-sql-server-2005-with-error-0x7358-0x80070534-or-no-account-mapping/</guid>
		<description><![CDATA[Assumes: Microsoft SQL Server 2005 Microsoft Windows XP, Micrsoft Windows Server 2003 Fix: Reboot or otherwise restart the SQL Server service. A failed update will generally leave the service stopped or in an unpredictable state. In Microsoft SQL Server Management Studio (or similar) execute the following:   EXEC sp_validatelogins GO   This should generate a [...]]]></description>
			<content:encoded><![CDATA[<h3>Assumes:</h3>
<ul>
<li>Microsoft SQL Server 2005</li>
<li>Microsoft Windows XP, Micrsoft Windows Server 2003</li>
</ul>
<h3>Fix:</h3>
<ol>
<li>Reboot or otherwise restart the SQL Server service. A failed update will generally leave the service stopped or in an unpredictable state.</li>
<li>In Microsoft SQL Server Management Studio (or similar) execute the following:<br />
 <br />
<em>EXEC sp_validatelogins<br />
GO</em><br />
 </li>
<li>This should generate a list of SIDs/accounts that are no longer present in Windows. If no accounts are listed then proceed with this procedure with caution. You might have run into another issue.</li>
<li>Determine the current Windows group names of the SQL Server accounts (Start | Run | &#8220;lusrmgr.msc&#8221;). They will be in the form SQLServer2005*$CompName$Instance.</li>
<li>Download/obtain <a href="http://technet.microsoft.com/en-us/sysinternals/bb897417.aspx">PsGetSid</a> from Sysinternals/Microsoft.</li>
<li>Use PsGetSid to get the SID&#8217;s of these groups:<br />
 <br />
<em>psgetsid groupname</em><br />
 </li>
<li>In the Windows Registry navigate to <em>HKLM\Software\Microsoft\Microsoft SQL Server\MSSQL.x\Setup</em>, where &#8220;.x&#8221; is the instance of SQL Server with the issue (usually &#8220;.1&#8243;, for a single instance install).</li>
<li>Note the data in the following values: <em>SQLGroup</em>, <em>AGTGroup</em>, <em>FTSGroup</em>, <em>ASGroup</em>. These keys map to the Windows groups like so:<br />
  <br />
SQLServer2005MSSQLUser$CompName$Instance &gt; SQLGroup<br />
SQLServer2005SQLAgentUser$CompName$Instance &gt; AGTGroup<br />
SQLServer2005MSFTEUser$CompName$Instance &gt; FTSGroup<br />
SQLServer2005???$CompName$Instance &gt; ASGroup</li>
<li>Replace all SID&#8217;s in the Registry that differ from the Windows groups (match up according to above table).</li>
<li>Attempt to change the SQL Server service account through the SQL Server Configuration utility. If the change succeeds this fix most likely worked.</li>
<li>Apply any service packs and/or updates.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.incandetech.com/derek/2009/10/23/a-service-pack-fails-to-apply-to-microsoft-sql-server-2005-with-error-0x7358-0x80070534-or-no-account-mapping/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
