Microsoft KB Archive/919390

= Error message when you try to upgrade SQL Server 2005 Express Edition to SQL Server 2005 Express Edition with Advanced Services: &quot;Login failed for user 'sa'. Refer to server error logs and setup logs for more information&quot; =

Article ID: 919390

Article Last Modified on 6/6/2006

-

APPLIES TO


 * Microsoft SQL Server 2005 Express Edition with Advanced Services

-



Bug #: 431174 (SQLBUDT)

Bug #: 434760 (SQLBUDT)



SYMPTOMS
When you try to upgrade SQL Server 2005 Express Edition to SQL Server 2005 Express Edition with Advanced Services, you receive the following error message:

SQL Server Setup could not connect to the database service for server configuration. The error was: [Microsoft][SQL Native Client][SQL Server]Login failed for user 'sa'. Refer to server error logs and setup logs for more information. For details on how to view setup logs, see &quot;How to View Setup Log Files&quot; in SQL Server Books Online.



CAUSE
This problem occurs because SQL Server 2005 Express Edition with Advanced Services cannot upgrade or configure the existing files in the following folder:

C:\Program Files\Microsoft SQL Server\ \MSSQL\Template Data

Note  represents the Instance ID for the instance of SQL Server 2005 Express Edition that is installed on the computer.



WORKAROUND
To work around this problem, follow these steps:  Click Cancel to exit the installation of SQL Server 2005 Express Edition with Advanced Services. Open SQL Server Configuration Manager. In the left pane, click SQL Server 2005 Services. In the right pane, verify that the SQL Server 2005 Express Edition service is running. If the SQL Server 2005 Express Edition service is not running, follow these steps:  Double-click the SQL Server 2005 Express Edition service. The Properties dialog box appears. Click Build-in account, and then click Local System in the drop-down list.</li> Click Apply, and then click Start to start the SQL Server 2005 Express Edition service.</li> After the SQL Server 2005 Express Edition service starts, click Network Service in the Build-in account list, and then click Apply.

When you click Apply, you receive the following message:

This will cause the service to be restarted. Do you want to continue?

Click Yes when you receive this message.

The SQL Server 2005 Express Edition service will be restarted with the new build-in account.</li></ol> </li> Delete all the files in the C:\Program Files\Microsoft SQL Server\ \MSSQL\Template Data folder, and then reinstall SQL Server 2005 Express Edition with Advanced Services. To do this, use one of the following methods: <ul> Manually empty the Template Data folder before the upgrade. To do this, follow these steps: <ol> Open the following folder:

C:\Program Files\Microsoft SQL Server\ \MSSQL\Template Data

Note To determine the instance ID of the instance of SQL Server 2005 Express Edition, follow these steps: <ol style="list-style-type: lower-alpha;"> Open SQL Server Configuration Manager.</li> On the left pane, click SQL Server 2005 Services.</li> On the right pane, double-click the instance of SQL Server 2005 Express Edition from which you are upgrading.</li> In the Properties dialog box of the instance, click the Advanced tab.</li> Note the Instance ID value.</li></ol> </li> Delete all the files in this folder.</li> Reinstall SQL Server 2005 Express Edition with Advanced Services.</li></ol> </li> Uninstall the existing installation of SQL Server 2005 Express Edition before you upgrade. When you do this, the files in the following folder are also deleted:

C:\Program Files\Microsoft SQL Server\ \MSSQL\Template Data

After you uninstall SQL Server 2005 Express Edition, install SQL Server 2005 Express Edition with Advanced Services.

Note You do not lose your databases when you uninstall the existing SQL Server 2005 Express Edition installation. The databases still exist in the Data folder under the Instance ID for the instance of SQL Server 2005 Express Edition that you just uninstalled. You must reattach the databases after you install SQL Server 2005 Express Edition with Advanced Services. To do this, use either the SQLCMD utility or SQL Server 2005 Management Studio Express.</li></ul> </li></ol>

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

<div class="moreinformation_section">

MORE INFORMATION
We strongly recommend that you use one of the methods in step 5 of the &quot;Workaround&quot; section before you install SQL Server 2005 Express Edition with Advanced Services.

Keywords: kbtshoot kbprb kbupdate kbexpertiseadvanced kbsql2005setup kbsql2005express KB919390

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.