Welcome to MSDN Blogs Sign in | Join | Help

An unwanted surprise when changing the SQL Server 2005 Service Account

When changing the Microsoft SQL Server 2005 Service Account you might get back this rather alarming error message box:

---------------------------
WMI Provider Error
---------------------------
The process terminated unexpectedly. [0x8007042b]
---------------------------
OK  
---------------------------

This is related to the problem documented in Books On Line on the page titled: 'Start and Restarting Services' (accessible in the index as 'starting SQL Server').  I quote from the paragraph that describes the problem:

"If SQL Server 2005 is shut down with open shared memory or a named pipe connection and is then restarted with the credentials of a different user, it may fail to start. This is normal behavior for connection handles controlled by the operating system. To restart SQL Server, end all SQL Server client processes manually or by restarting the computer. Possible errors include "Server shared memory provider failed to initialize. Error: 0x5" and "Server named pipe provider failed to listen on [ \\.\pipe\sql\query ]. Error: 0x5" (The pipe name may vary.)"

The problem described in the paragraph above manifests itself as the 'The process terminated unexpectedly. [0x8007042b]' error message box when using the SQL Configuration Manager to change the SQL Server (Engine) Service Account.  The workaround, as stated, is to close all client processes (connecting to the named pipe) or reboot the server. 

The problem is caused by an Operating System limitation which has been removed in Windows Vista.  In Windows Vista a change has been made to allow the tear down of a named pipe listener when only the server side connections are closed.  In Windows 2003 and earlier, there is a requirement to close down the client side connections as well, and this requirement prevents sqlservr.exe from creating a new properly ACLed named piper listener when the service is restarted with new Service Account credentials.

I hope you will find this post using your favorite search engine should you be panicked by this error message in the wild.  I will also push to get a KB article written with this information in it.

Published Wednesday, October 12, 2005 11:13 AM by stuartpa

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: An unwanted surprise when changing the SQL Server 2005 Service Account

Hmm, interesting. Out of curriosity and it is also maybe too early to answer. But what happens to all those pipe from the client if the server just tears it down in vista. I am thinking more of like a webserver sitting there using connection pooling and all of a sudden those pipes get destroyed on the sql server, but does the client still sit there thinking it has all these pools open?
Thursday, October 13, 2005 10:50 AM by Jeff Parker

# re: An unwanted surprise when changing the SQL Server 2005 Service Account

Hey I saw your post that was pulled.  When will MS allow you to put it back up?  

I am very interested in what you are working on.  Please post.
Thursday, August 17, 2006 9:33 AM by Sam Jones

# re: An unwanted surprise when changing the SQL Server 2005 Service Account

mmm.. nice design, I must say..

Monday, March 12, 2007 5:34 AM by ...

# re: An unwanted surprise when changing the SQL Server 2005 Service Account

Du musst ein Fachmann sein - wirklich guter Aufstellungsort, den du hast!

Wednesday, March 14, 2007 8:40 PM by ...

# re: An unwanted surprise when changing the SQL Server 2005 Service Account

luogo grande:) nessun osservazioni!

Sunday, March 18, 2007 10:30 AM by ...

# re: An unwanted surprise when changing the SQL Server 2005 Service Account

Chi ha fatto questo? E un buon posto per trovare le informazioni importanti!:)

Tuesday, March 20, 2007 1:28 AM by ...

# re: An unwanted surprise when changing the SQL Server 2005 Service Account

Thanks for this post.  It was exactly what I needed to resolve my problem. :P

Thursday, October 18, 2007 2:18 PM by raul

# Stuart Padley s Web Log An unwanted surprise when changing the SQL | garden decor

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker