<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>SQL Server</title>
        <link>http://geekswithblogs.net/OverTaxedMind/category/6697.aspx</link>
        <description>SQL Server</description>
        <language>en-US</language>
        <copyright>Douglas Marsh</copyright>
        <managingEditor>marsh.douglas.e@gmail.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <item>
            <title>Virtual Machine Cloning, SIDS, and SQL SERVER 2005</title>
            <link>http://geekswithblogs.net/OverTaxedMind/archive/2007/06/22/113379.aspx</link>
            <description>&lt;p class="MsoNormal"&gt;I use virtual environments for all my BizTalk development. &lt;span style=""&gt; &lt;/span&gt;I have several base machines that I clone to use as my actual development boxes.&lt;/p&gt;
&lt;p class="MsoNormal"&gt;A couple of days ago, I was installing &lt;a href="http://www.update.microsoft.com"&gt;Microsoft Updates&lt;/a&gt; to my current BizTalk Dev Environment and one of the updates failed to install. The culprit was the &lt;a href="http://support.microsoft.com/kb/934458"&gt;Critical Update For Sql Server 2005 SP2 KB934458&lt;/a&gt;. Since, the update, while critical didn’t directly affect me, I ignored it. Until automatic updates complaining about it every day forced me it to action.&lt;/p&gt;
&lt;p class="MsoNormal"&gt;I downloaded the off-line version of the hotfix and went to work. I attempted to install it from the offline version and it failed, however, it pointed me to the installation log for the hotfix. After scanning the log &lt;span style=""&gt; &lt;/span&gt;for a few minutes I found the following line:&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-weight: bold;"&gt;Windows Error Text: No mapping between account names and security IDs was done&lt;/span&gt;.&lt;/p&gt;
&lt;p class="MsoNormal"&gt;A little investigation with Google turned up &lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=370240&amp;amp;SiteID=1"&gt;this forum post.&lt;/a&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;Part of my Virtual Machine cloning processing is renaming the machine using &lt;a href="http://www.microsoft.com/technet/sysinternals/Security/NewSid.mspx"&gt;NewSID&lt;/a&gt;. When SQL Server is installed, it creates local groups for ACLs. The SIDs for those groups are stored in the registry. NewSID changes all SIDs invalidated the SIDs that SQL Server cached. It seems that using the server doesn’t require these SIDs but patching it does.&lt;/p&gt;
&lt;p class="MsoNormal"&gt;The fix is fairly easy. &lt;br /&gt;
In the registry, delete the following keys:&lt;br /&gt;
HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\Setup&lt;br /&gt;
&lt;span style=""&gt;                &lt;/span&gt;AGTGroup&lt;br /&gt;
&lt;span style=""&gt;                &lt;/span&gt;SQLGroup&lt;br /&gt;
&lt;span style=""&gt;                &lt;/span&gt;FTSGroup&lt;br /&gt;
&lt;br /&gt;
HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.2\Setup&lt;br /&gt;
&lt;span style=""&gt;                &lt;/span&gt;ASGroup&lt;/p&gt;
&lt;p class="MsoNormal"&gt;When the hotfix runs, it will recreate the groups and the SIDs.&lt;/p&gt;
&lt;p class="MsoNormal"&gt;Add for those who may ask, renaming the server in SQL SERVER doesn’t fix this issue.&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=113379"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=113379" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/OverTaxedMind/aggbug/113379.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Douglas Marsh</dc:creator>
            <guid>http://geekswithblogs.net/OverTaxedMind/archive/2007/06/22/113379.aspx</guid>
            <pubDate>Fri, 22 Jun 2007 05:06:53 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/OverTaxedMind/comments/113379.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/OverTaxedMind/archive/2007/06/22/113379.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/OverTaxedMind/comments/commentRss/113379.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/OverTaxedMind/services/trackbacks/113379.aspx</trackback:ping>
        </item>
    </channel>
</rss>