Microsoft KB Archive/883547

= You receive an &quot;Unable to connect to database&quot; error message when you install SharePoint Portal Server 2003 or Windows SharePoint Services =

Article ID: 883547

Article Last Modified on 2/3/2006

-

APPLIES TO


 * Microsoft Office SharePoint Portal Server 2003
 * Microsoft Windows SharePoint Services

-





SUMMARY
''This article describes an error message that you may receive when you install Microsoft Office SharePoint Portal Server 2003 or Microsoft Windows SharePoint Services on your computer. You experience the symptoms that are described in this article if you upgraded a computer that is running Microsoft Windows 2000 to Microsoft Windows Server 2003. The Setup program does not update the version of the Oledb32.dll file that is installed on the computer to version 2.80.1022.0. To work around this behavior, you have to extract the compressed Oledb32.dl_ file from the Windows Server 2003 CD and then copy the file as Oledb32.dll to your hard disk.''



SYMPTOMS
You may experience one of the following symptoms when you install SharePoint Portal Server 2003 or when you install Windows SharePoint Services on your computer:  If you install Windows SharePoint Services and Microsoft SQL Server 2000 Desktop Engine (Windows) (WMSDE) by using the Typical Installation Setup option, you may receive one of the following error messages:

Unable to connect to database. Check database connection information and make sure the database server is running.

Cannot connect to the configuration database.

 If you install Windows SharePoint Services in a server farm configuration that connects to a remote computer that is running Microsoft SQL Server 2000, you receive the following error message:

Unable to connect to database. Check database connection information and make sure the database server is running.

 If you install SharePoint Portal Server by using the Install with database engine option, the installation of Microsoft SQL Server 2000 Desktop Engine unexpectedly rolls back. (Microsoft SQL Server 2000 Desktop Engine is also known as MSDE 2000.) If you install SharePoint Portal Server 2003 by using the Install without database engine option, you receive the following error message:

Error accessing database. Verify that the database server name and the instance name (if present) are correct. Also, ensure the configuration database administration account has sufficient permissions on the server or instance and the service corresponding to your SQL Server instance is running.





CAUSE
This behavior occurs if the version of the Oledb32.dll file on the computer is not 2.80.1022.0 or a later version. This behavior may occur if the following sequence of events occurred on your computer:  The following components were installed on your Microsoft Windows 2000-based computer:  Microsoft Data Access Components (MDAC) version 2.7 or MDAC 2.7 Service Pack 1 (SP1)</li> The security update that is described in the following article in the Microsoft Knowledge Base:

832483 MS04-003: Buffer overrun in an MDAC function could allow code execution

</li></ul> </li> You upgraded your Windows 2000-based computer to Windows Server 2003, and then you installed SharePoint Portal Server 2003 or Windows SharePoint Services on the computer.</li></ol>

In this situation, when you upgrade your Windows 2000-based computer to Windows Server 2003, the Setup program cannot update the version of the Oledb32.dll file that is installed on the computer. Therefore, the version of the Oledb32.dll file that is installed on the computer is one of the following:
 * If MDAC 2.7 and the security update that is described in article 832483 are installed on the computer, the version of the Oledb32.dll file is 2.7.9002.0.
 * If MDAC 2.7 SP1 and the security update that is described in article 832483 are installed on the computer, the version of the Oledb32.dll file is 2.71.9031.4.

For Windows Server 2003, the version of Oledb32.dll file must be 2.8.1022.0 or a later version.

<div class="workaround_section">

WORKAROUND
To work around this behavior, extract the compressed Oledb32.dl_ file from the Windows Server 2003 CD, and then copy the file as Oledb32.dll to the following folders on your hard disk:
 * :\Program Files\Common Files\System\Ole db
 * %Windir%\System32\Dllcache

To do this, follow these steps: <ol> Restart the computer in Safe Mode. To do this: <ol style="list-style-type: lower-alpha;"> Shut down your computer, and then restart the computer.</li> Before Windows Server 2003 starts to load, press F8.</li> On the Windows Advanced Option Menu, use the ARROW keys to select Safe Mode with Networking, and then press ENTER.</li> If you have a dual-boot or multi-boot computer, select the appropriate operating system from the list that appears, and then press ENTER.</li> Click OK when you receive the message that Windows is running in Safe Mode.</li></ol> </li> If Windows is configured to hide protected operating system files, configure Windows Explorer to display operating system files. By default, Windows Explorer hides certain operating system files. <ol style="list-style-type: lower-alpha;"> Start Windows Explorer, click Tools, and then click Folder Options.</li> Click the View tab.</li> In the Advanced settings dialog box, click to clear the following check box:

Hide protected operating system files (Recommended)

</li> When you are prompted, click Yes to confirm that you want to display the files, and then click OK.</li></ol> </li> Rename the Oledb32.dll file in the :\Program Files\Common Files\System\Ole DB folder to Oledb32.old. To do this: <ol style="list-style-type: lower-alpha;"> <li>In Windows Explorer, locate the following folder:



</li> <li>Right-click the Oledb32.dll file, click Properties, and then click the Version tab.</li> <li>Verify that the version of the Oledb32.dll file is earlier than 2.80.1022.0.</li> <li>Right-click the Oledb32.dll file, and then click Rename.</li> <li>Type Oledb32.old, and then press ENTER.</li></ol> </li> <li>Delete the Oledb32.dll file in the %Windir% \System32\Dllcache folder if the Oledb32.dll file exists in that folder. <ol style="list-style-type: lower-alpha;"> <li>In Windows Explorer, locate the following folder:

%Windir% \System32\Dllcache

</li> <li>Right-click the Oledb32.dll file if it exists, and then click Delete.</li> <li>If you are prompted to confirm the deletion, click Yes.</li></ol> </li> <li>Insert the Windows Server 2003 CD into your computer's CD drive.</li> <li>Extract the Oledb32.dl_ file from the Windows Server 2003 CD, and then copy the file as Oledb32.dll to your hard disk. To do this: <ol style="list-style-type: lower-alpha;"> <li>Click Start, click Run, type cmd in the Open box, and then click OK.</li> <li>At the command prompt, type the following lines, and then press ENTER after each line:



cd I386

expand oledb32.dl_ &quot; :\program files\common files\system\ole db\oledb32.dll&quot;

expand oledb32.dl_ %windir%\system32\dllcache\oledb32.dll

</li></ol> </li> <li>Register the Oledb32.dll file. <ol style="list-style-type: lower-alpha;"> <li>At the command prompt, type the following lines, and then press ENTER after each line:



cd &quot; :\program files\common files\system\ole db&quot;

regsvr32 oledb32.dll

</li> <li>When you receive the message that says that the operation was successful, click OK.</li></ol> </li> <li>Remove the Windows Server 2003 CD from the computer's CD drive.</li> <li>If you want, reconfigure Windows Explorer to hide certain operating system files: <ol style="list-style-type: lower-alpha;"> <li>Start Windows Explorer, click Tools, and then click Folder Options.</li> <li>Click the View tab.</li> <li>In the Advanced settings dialog box, click to select the following check box, and then click OK:

Hide protected operating system files (Recommended)

</li></ol> </li> <li>Restart your computer.</li> <li>Install SharePoint Portal Server 2003 or Windows SharePoint Services.

Note If you still experience the symptoms that are described in the &quot;Symptoms&quot; section after you follow the steps that are described in this article, install MDAC 2.8. For more information about how to obtain MDAC 2.8, visit the following Microsoft Web site:

http://www.microsoft.com/downloads/details.aspx?FamilyID=6c050fe3-c795-4b7d-b037-185d0506396c&DisplayLang=en:

</li></ol>

If the version of the Ole32db.dll file is not upgraded to 2.8.1022.0 after you install MDAC 2.8, repeat the steps that are described in this article.

<div class="references_section">