Ramblings of An OverTaxed Mind

I Think I Think.... So Am I?

  Home  |   Contact  |   Syndication    |   Login
  14 Posts | 0 Stories | 16 Comments | 0 Trackbacks

News

Archives

Post Categories

I use virtual environments for all my BizTalk development.  I have several base machines that I clone to use as my actual development boxes.

A couple of days ago, I was installing Microsoft Updates to my current BizTalk Dev Environment and one of the updates failed to install. The culprit was the Critical Update For Sql Server 2005 SP2 KB934458. 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.

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  for a few minutes I found the following line:

Windows Error Text: No mapping between account names and security IDs was done.

A little investigation with Google turned up this forum post.

Part of my Virtual Machine cloning processing is renaming the machine using NewSID. 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.

The fix is fairly easy.
In the registry, delete the following keys:
HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\Setup
                AGTGroup
                SQLGroup
                FTSGroup

HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.2\Setup
                ASGroup

When the hotfix runs, it will recreate the groups and the SIDs.

Add for those who may ask, renaming the server in SQL SERVER doesn’t fix this issue.

posted on Friday, June 22, 2007 12:06 AM

Feedback

# re: Virtual Machine Cloning, SIDS, and SQL SERVER 2005 8/5/2007 1:28 PM Dale
I had this same problem on the first cloned VM I installed SQL Server on because I ran NewSid after installing SQL Server.

So on my next build, I started with a very base install of W2K3D and then ran NewSid before installing any SQL Server components and yet I still had the problem even though the SID was changed before any SQL Server components were installed.

Weird. Anyway, I just thought I'd throw that in for other readers of your blog.

Dale

# re: Virtual Machine Cloning, SIDS, and SQL SERVER 2005 7/9/2009 10:41 AM Adam Russell
Thanks for the instructions, worked prefectly! We clone some of our workstations and use NewSID.

Was trying to install 'SQL Server 2005 Service Pack 3 (KB955706)' via Windows Updates, it produced the same error in the log file (Windows Error Text: No mapping between account names and security IDs was done). Followed your instructions and installed OK! Thanks again.

Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: