Knowledge Base

BUG: MSDB Database May Not Be Created During Installation

Article ID: 178206

Article Last Modified on 10/17/2003


APPLIES TO


This article was previously published under Q178206
BUG #: 16977(SQLBUG_65)

IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry

SYMPTOMS

During the installation of SQL Server 6.5, the MSDB database may not be created.

CAUSE

Installation of SQL Server is completed with SQL Server started in single user mode. Performing a default installation of SQL Server invokes the sp_sqlregister startup stored procedure. This procedure makes a loopback connection to the SQL Server. Occasionally, this connection succeeds and prevents the ISQL connection that creates MSDB from connecting. There are no errors in the SQL errorlog to indicate a failure. The following are the only indications of a failure:

WORKAROUND

To work around this problem, do either of the following: NOTE: If the HKEY_LOCAL_MACHINE\Software\Microsoft\MSSQLServer key does not exist before adding this parameter, when the key is created it will inherit the permissions of its parent key, HKEY_LOCAL_MACHINE\Software\Microsoft. By default, this parent key contains permissions for the groups Everyone and Creator Owner and, unlike the default installation of SQL Server, the HKEY_LOCAL_MACHINE\Software\Microsoft\MSSQLServer key will inherit these permissions. These permissions, in turn, lead to bug 17522 documented in Knowledge Base article 177066 - BUG: Security Manager Fails to Expand User Group. Follow the steps described in the workaround section of article Q177066 to remove permissions for both groups.

The files for both workarounds are in the Instmsdb.exe file located at ftp://ftp.microsoft.com/bussys/sql/public/

STATUS

Microsoft has confirmed this to be a problem in SQL Server 6.5.


Additional query words: install

Keywords: kbbug kbpending KB178206