Updated: 8/27/2007

The SQL Server documentation team welcomes your documentation feedback. We view and investigate all documentation issues but do not answer technical support questions here. For help with technical issues not related to documentation, see Getting Assistance with SQL Server.

If it is possible, submit feedback to us in English.

Contents

1.0 Introduction

This document describes how to use Microsoft® SQL Server™ 2005 Service Pack 2 (SP2) to upgrade instances of SQL Server 2005 to SQL Server 2005 SP2. This service pack can be used to selectively upgrade one or more instances of SQL Server 2005, SQL Server 2005 shared tools, and other components installed by SQL Server 2005 Setup. SQL Server 2005 service packs are cumulative, and this service pack upgrades all service levels of SQL Server 2005 to SP2.

Important:
This service pack can be used to upgrade all editions of SQL Server 2005 to SP2 except Express Edition. You must use Microsoft SQL Server 2005 Express Edition (SQL Server Express) SP2 to upgrade instances of SQL Server Express to SP2. SQL Server Express SP2 can be obtained from the MSDN page, SQL Server 2005 Express Edition. This service pack cannot be applied to any pre-release versions of SQL Server 2005.

[Top]

1.1 Overview of SQL Server 2005 SP2 Installation

During installation, SQL Server 2005 SP2 Setup will list all installed components of SQL Server 2005 and allow you to select the components to upgrade, including components that have already been upgraded to SP2. For more information, see the SP2 Setup documentation.

[Top]

1.2 Installation Requirements

This section documents additional requirements for SQL Server 2005 SP2.

Disk Space Requirements for SQL Server 2005 SP2

To download and install SQL Server 2005 SP2, your computer must have 1.9 GB of available disk space. The following table describes the disk space required by the Setup components:

Disk space required (MB) Location Type

50

SQL Server 2005 installation directory

Permanent

1000

System drive

Permanent

600

temp directory

Temporary

250

Download location

Temporary

After installation, you may remove the 250 MB download package from your computer. Permanent disk space usage of SQL Server 2005 SP2 after installation is approximately 1 GB.

[Top]

1.3 Uninstalling SQL Server 2005 SP2

Once SQL Server 2005 SP2 has been applied, it cannot be removed without uninstalling the entire product.

To remove SP2 and revert to the previous version of SQL Server 2005
  1. Using Add or Remove Programs, uninstall the instance of SQL Server 2005 .

  2. Reinstall SQL Server 2005.

  3. Apply any hotfixes that were previously installed.

    Note:
    Additional steps are required to revert to the previous version of SQL Server 2005. For more information, see the SP2 Setup documentation.

[Top]

1.4 Additional Information About SQL Server 2005 SP2

For more information about new or improved features in SQL Server 2005 SP2, see "What's New in SQL Server 2005 SP2" in the February 2006 update of SQL Server 2005 Books Online. This information is also available online on the What's New in SQL Server 2005 SP2 Web page.

For additional information about running SQL Server 2005 SP2 on Windows Vista™, see Windows Vista Considerations.

A list of the fixes contained in this service pack is provided in Microsoft Knowledge Base article 921896. Each fix listed in 921896 has a link to a Knowledge Base article about the problem that the fix addresses. Follow the links to the individual Knowledge Base articles to see information about each fix.

Hotfixes

All publicly issued SQL Server 2005 security bulletins released before January 15, 2007 have been addressed in SP2. If you received a SQL Server 2005 hotfix after January 15, 2007, that hotfix might not be included in this release of SP2. Contact your primary support provider about obtaining the same hotfix for SQL Server 2005 SP2.

SQL Server 2005 SP2 includes support for Microsoft SQL Server 2005 Compact Edition (SQL Server Compact Edition), previously called Microsoft SQL Server 2005 Mobile Edition (SQL Server Mobile). For more information about SQL Server Compact Edition, see SQL Server .

How to Determine the SQL Server Version Number

Every SQL Server product (including Service Packs) has its own version number. The version number of an instance of SQL Server 2005 can be viewed two ways:

  • In SQL Server Management Studio Object Explorer when connected to the instance.

  • By executing the query SELECT SERVERPROPERTY('ProductVersion') against a Database Engine instance.

The following table shows the version numbers that correspond to versions of SQL Server 2005:

Version Number SQL Server 2005 Version

9.00.1399

SQL Server 2005 (initial version)

9.00.2047

SQL Server 2005 SP1

9.00.3042

SQL Server 2005 SP2

Note:
Your product version may be different from these values if you applied a hotfix.

[Top]

1.5 Updates to SQL Server 2005 Books Online

The February 2007 update of SQL Server 2005 Books Online is the primary documentation for SQL Server 2005 SP2. The February 2007 update of Books Online reflects all product upgrades included in this service pack, and also includes other improvements to the documentation. We strongly recommend installing this update to keep the information in your local copy of the documentation current with SP2. The January 2007 update is available at the SQL Server Books Online download page. For more information, see "Downloading and Updating Books Online" in SQL Server Books Online.

[Top]

2.0 Obtaining SQL Server 2005 SP2

SQL Server 2005 SP2 is available for download at the SQL Server 2005 SP2 download page. A separate downloadable installation package is available for each platform supported by SQL Server 2005.

Note:
The 32-bit version of SP2 can be used to update 32-bit instances that run in Windows-on-Windows 64 (WOW64) x86 emulation mode on a 64-bit system. The 32-bit version will not upgrade any components of a 64-bit instance of SQL Server 2005. To upgrade all components of a 64-bit instance of SQL Server 2005, use the 64-bit version of SP2.

SP2 package name Operating systems1

SQLServer2005SP2-KB921896-x86-LLL.exe

All supported 32-bit Windows operating systems, including 32-bit instances on 64-bit operating systems.

SQLServer2005SP2- KB921896-x64-LLL.exe

Supported Windows 2003 64-bit X64 editions.

SQLServer2005SP2- KB921896-IA64-LLL.exe

Supported Windows 2003 64-bit Itanium editions.

1For information on supported operating systems for SQL Server 2005, see "Hardware and Software Requirements for Installing SQL Server 2005" in SQL Server 2005 Books Online.

Note:
LLL represents a designator that varies by language.

Follow the instructions provided at the download site for downloading SQL Server 2005 SP2.

[Top]

3.0 Installing SQL Server 2005 SP2

This section details how to review the Setup documentation for SP2, as well as any late-breaking information or setup issues that can affect successful installation. The general steps to install SQL Server 2005 SP2 are as follows:

  1. Prepare for a SQL Server 2005 SP2 installation.

  2. Install SQL Server 2005 SP2.

  3. Restart services and applications.

For more information, see Accessing SP2 Setup Documentation.

[Top]

3.1 Accessing SP2 Setup Documentation

Setup documentation for SQL Server 2005 SP2 can be accessed in one of the following ways:

  • By clicking Help or pressing F1 from a Help-enabled screen in the Setup wizard.

  • By downloading and running the file sqlhotfix_setuphelp.exe from the SQL Server 2005 SP2 Readme Files download page.

  • By manually extracting and running the Help file from the SP2 download package.

To access SQL Server 2005 SP2 Setup documentation from the SP2 download package
  1. Download SQL Server 2005 SP2. For more information, see Obtaining SQL Server 2005 SP2.

  2. Open the SP2 download package using Winzip or another third-party decompression utility.

  3. Extract the file sqlhotfix.chm and save it on your local computer.

[Top]

3.2 Setup Issues

This section details Setup issues for SP2.

[Top]

3.2.1 Considerations for Upgrading Servers in a Replication Topology

When upgrading instances of SQL Server 2005 in a merge replication topology or in a transactional replication topology with updating Subscribers, you must upgrade the instances in the following order:

  1. Distributor

  2. Publisher

  3. Subscribers

[Top]

3.2.2 Upgrading a Remote Report Server Database

If you are upgrading a Reporting Services installation that includes a remote report server database, you might encounter problems when upgrading the database schema. By default, Setup uses the security token of the user who is running the Setup program to connect to the remote SQL Server instance and update the schema. If you have administrator permissions on both the local and remote computer, the database upgrade will succeed. If you run Setup from the command prompt and specify /rsupgradedatabaseaccount and /rsupgradepassword for an account with permission to modify the schema on the remote computer, the database upgrade will also succeed.

If you do not have permission to update the schema on the remote computer, the connection will be refused with the following error:

"Setup was not able to upgrade the report server database schema. You must run the Reporting Services Configuration tool and on the Database Setup tab upgrade the report server database to the current database schema version."

The report server program files will be upgraded to SP2, but the report server database will be in the format of the previous version. The report server will be unavailable while the report server database is in the older format.

To upgrade the database manually, run the Reporting Services Configuration tool after upgrade is finished. Connect to the upgraded report server, and then use the Upgrade option on the Database Setup page to update the database schema. The report server will be available once these steps are complete.

[Top]

3.2.3 Repairing or Modifying SQL Server Components May Fail After the Service Pack Is Installed

If you use Add or Remove Programs to repair or modify SQL Server components after SP2 installation, you may see the following error message:

"The feature you are trying to use is on a network resource that is unavailable."

The following SQL Server components are affected:

  • MSXML (msxml6.msi)

  • SQLXML (sqlxml4.msi)

  • SQL Server Native Client (sqlncli.msi)

  • Backward Compatibility (SqlServer2005_BC.msi)

  • SQL Server VSS Writer (SqlWriter.msi)

To repair or modify SQL Server components after SP2 is installed
  1. Use Add or Remove Programs to remove the component from the computer.

  2. Install the component from the SQL Server 2005 installation media. On the SQL Server 2005 CD, files are located in the \Setup directory on the second SQL Server 2005 installation disc. On the SQL Server 2005 DVD and for network installations, files are located in the Tools\Setup directory. To install the component, double-click the .msi file name.

  3. Reinstall SQL Server 2005 SP2.

[Top]

3.2.4 Restrictions on ALTER DATABASE May Cause Upgrade to Fail

When you apply SP2, Setup upgrades system databases. If you have implemented restrictions on the ALTER DATABASE syntax, this upgrade may fail. Restrictions to ALTER DATABASE may include the following:

  • Explicitly denying the ALTER DATABASE statement.

  • A data definition language (DDL) trigger on ALTER DATABASE that rolls back the transaction containing the ALTER DATABASE statement.

If you have restrictions on ALTER DATABASE, and Setup fails to upgrade system databases to SP2, you must disable these restrictions and then re-run Setup.

[Top]

3.2.5 Installing SQL Server 2005 SP2 on a Failover Cluster Instance

Note the following information before you install SP2 on a failover cluster instance:

  • Do not stop the cluster service before you run the SP2 Setup program, or while the installation program is running.

  • Do not end any running processes before you run the SP2 Setup program.

  • Do not take the SQL Server service off line before you run the SP2 Setup program. The SP2 Setup program will stop and start the SQL Server service.

  • Run the SP2 Setup program on the primary node of the failover cluster instance.

  • You must restart all failover cluster nodes after SP2 is finished installing.

  • Rolling upgrade is not supported for SP2.

[Top]

3.2.6 SQL Server 2005 SP2 Changes the SQL Writer Service Default Startup Type and Default State

Note the following changes to the SQL Writer service default startup type and default state:

  • The SQL Writer service startup type is changed from Manual to Automatic.

  • The SQL Writer service default state is changed from Stopped to Started.

[Top]

3.4.5 Use of NTFS Junction Points Not Supported for SQL Server Data Files

You cannot install SQL Server 2005 Service Pack 2 on an instance of SQL Server 2005 that is configured to use an NTFS junction point to store SQL Server data files. If you configure data files of an instance of SQL Server 2005 to be stored in an NTFS junction point that is created by using the linld.exe utility, installation of this SQL Server service pack will fail. Additionally, the NTFS junction point will be deleted after the installation. Therefore, you will not be able to start the SQL Server service after the installation. This issue occurs because Windows Installer removes the NTFS junction point during installation of the SQL Server service pack.

[Top]

4.0 Additional Information

This section describes additional considerations for using SP2.

[Top]

4.1 Getting SQL Server 2005 SP2 Assistance

There are three principal sources of information about SQL Server 2005 SP2:

For more information, see "Getting SQL Server 2005 Assistance" in SQL Server Books Online.

[Top]

4.2 Providing Feedback on SQL Server 2005 SP2

You can provide suggestions and bug reports on SP2 in three ways:

  • You can make suggestions and file bug reports about the features and user interface of SP2 at Connect: SQL Server 2005.

  • You can choose to send error reports and feature usage data automatically to Microsoft for analysis. For more information, see "Error and Usage Report Settings" in SQL Server 2005 Books Online.

  • You can send suggestions and corrections about the documentation by using the feedback functionality in SQL Server 2005 Books Online. For more information, see "Providing Feedback on SQL Server 2005" in SQL Server 2005 Books Online.

[Top]

4.3 Unattended Installation

SQL Server 2005 SP2 Setup supports unattended installation from the command prompt using the /quiet switch to suppress the Setup dialog boxes, as well as other switches to specify Setup options. For more information, see "Installing from the Command Prompt" in the SP2 setup documentation.

Note:
By using the /quiet switch you agree that you have read and accepted the software license terms for SQL Server 2005 SP2. To review the license terms, run an attended installation of SQL Server 2005 SP2 and go to the End User License Agreement page of the Setup wizard.

[Top]

5.0 Documentation Notes

This section covers significant issues that can occur after applying SQL Server 2005 SP2 and any late-breaking items that are not reflected in the updated SQL Server 2005 Books Online documentation. For more information, see Updates to SQL Server 2005 Books Online. This section does not describe all of the fixes provided in SP2. For a complete list of these fixes, see Microsoft Knowledge Base article 921896.

[Top]

5.1 Database Engine

The following considerations apply to instances of the Database Engine on which SQL Server SP2 is installed.

[Top]

5.1.1 Unique Nonclustered Indexes Can Be Created Online

Introduced in SQL Server 2005 Service Pack 1 (SP1).

Unique nonclustered indexes can now be created online. The following statements are affected:

  • CREATE UNIQUE NONCLUSTERED INDEX

  • CREATE UNIQUE NONCLUSTERED INDEX WITH DROP_EXISTING

  • ALTER TABLE ADD CONSTRAINT PRIMARY KEY NONCLUSTERED

  • ALTER TABLE ADD CONSTRAINT UNIQUE NONCLUSTERED

For more information, see Updates to SQL Server 2005 Books Online.

[Top]

5.1.2 DBCC Error Reporting

Introduced in SQL Server 2005 SP1.

A mini-dump file (SQLDUMPnnnn.txt) is created in the SQL Server LOG directory whenever a DBCC CHECKDB, DBCC CHECKALLOC, DBCC CHECKFILEGROUP, or DBCC CHECKTABLE command detects a corruption error. When the Feature Usage data collection and Error Reporting features are enabled for the instance of SQL Server, the file is automatically forwarded to Microsoft. The collected data is used to improve SQL Server functionality. For more information, see "Error and Usage Report Settings" in SQL Server 2005 Books Online.

The dump file contains the results of the DBCC command and additional diagnostic output. The file has restricted discretionary access-control lists (DACLs). Access to the dump file is limited to the SQL Server service account and members of the sysadmin role. By default, the sysadmin role contains all members of the Windows BUILTIN\Administrators group and the local administrator's group. The DBCC command does not fail if the data collection process fails.

[Top]

5.1.3 Uncommittable Batch Transactions Roll Back Automatically

Introduced in SQL Server 2005 SP1.

When a batch is completed, the Database Engine automatically rolls back any active uncommittable transactions. Before SP2, uncommittable transactions had to be rolled back manually.

[Top]

5.1.4 SQL Server Agent Job Steps That Use Tokens Fail

Introduced in SQL Server 2005 SP1.

The SQL Server 2005 Agent job step token syntax has changed. As a result, you must insert an escape macro with all tokens used in job steps, or else those job steps will fail with the following error message:

"The job step contains one or more tokens. For SQL Server 2005 SP1 or later, all job steps with tokens must be updated with a macro before the job can run."

This is a change from previous SQL Server 2005 behavior, which did not require escape macros with tokens. For more information about updating your jobs to use the new syntax and using escape macros, see "Using Tokens in Job Steps" in SQL Server 2005 Books Online (April 2006) or later. For more information about updates to Books Online, see Updates to SQL Server 2005 Books Online.

[Top]

5.1.5 Previous Versions of SQL Server 2005 Tools Cannot Read SP2 Maintenance Plans

Introduced in SQL Server 2005 SP2.

The following error message is returned if you use a tool from a previous version to open an SP2 maintenance plan created with the maintenance plan designer:

"This maintenance plan has been modified using a tool other than the maintenance plan designer. You must use SQL Server Integration Services to modify this maintenance plan from now on."

To resolve this issue, we recommend that you upgrade your tools to SQL Server 2005 SP2. We also recommend using the maintenance plan designer to modify the plan, rather than Integration Services as mentioned in the error message.

[Top]

5.1.6 OUTPUT Clause Restrictions

Introduced in SQL Server 2005 SP2.

To prevent nondeterministic behavior, the OUTPUT clause does not allow the use of subqueries and user-defined functions that perform user or system data access, or are assumed to perform such access. A user-defined function is assumed to perform data access if it is not schema-bound.

[Top]

5.2 Integration Services

The following considerations apply to Integration Services when SP2 is installed.

[Top]

5.2.1 DCOM Permissions Are Reset

Introduced in SQL Server 2005 SP1.

Installation of this service pack resets DCOM permissions for launching and accessing Integration Services service. The permissions are reset to default permissions. If you have customized DCOM permissions, you must reapply the customization.

To review the start and access permissions
  1. In Control Panel, open Administrative Tools, and then double-click Component Services.

  2. In the Component Services snap-in, expand Component Services, Computers, MyComputer, and DCOM Config.

  3. Right-click MsDtsServer, and then click Properties.

  4. Click the Security tab and review the permissions. To customize permissions, click Edit.

  5. Click OK.

[Top]

5.2.2 Location of Integration Services Configuration File Might Change

Introduced in SQL Server 2005 SP1.

SQL Server SP2 resets the value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTS\ServiceConfigFile to its default value. This registry key specifies the location of the configuration file for the Integration Services service (MsDtsSrvr.ini.xml). If you had changed the value of this registry key from that of the default location, you must update it again after applying the service pack.

Caution:
Incorrectly editing the registry can cause serious problems that may require you to reinstall your operating system. Problems caused by editing the registry incorrectly might not be resolvable. Before editing the registry, back up any valuable data. For information about how to back up, restore, and edit the registry, see Knowledge Base article 256986: Description of the Microsoft Windows registry.

[Top]

5.2.3 Previously Successful Column Conversions May Fail

Introduced in SQL Server 2005 SP1.

After you apply SQL Server SP2, column conversions may fail in the following cases:

Conversions from String to Unsigned Integer

In earlier releases, string columns (DT_STR or DT_WSTR) converted to an unsigned integer data type (DT_UI1, DT_UI2, DT_UI4 or DT_UI8) converted any negative values to 0 and the package ran successfully. In SP2, the package no longer converts negative values to 0, but instead returns an error and might fail. This change in behavior affects the Lookup transformation, Fuzzy Lookup transformation, Fuzzy Grouping transformation, and the Flat File source.

Conversions from String to Binary

In earlier releases, if you had characters in string columns (DT_STR or DT_WSTR) that were not convertible to a byte array, and you converted the column data type to the DT_BYTES data type, the value of the column could be converted to an array of zeroes. SQL Server SP2 adds the UseBinaryFormat property to the Flat File source to help interpret binary data. In SP2, if a column contains characters that cannot be converted and UseBinaryFormat is set to false (the default value), the conversion generates an error, and packages that previously ran successfully now may fail. This change in behavior affects the Flat File source.

[Top]

5.2.4 Connections in Packages with Complex Data Flows Might Time Out

Introduced in SQL Server 2005 SP1.

Data Flow components in Integration Services are now initialized differently. In earlier releases, Data Flow components were initialized by first calling the AcquireConnections method, and then calling the PreExecute method for each associated connection. In this release, AquireConnections is called for all associated connections before calling PreExecute. The new initialization process enables more robust transaction enlistment and thus more resilient data integration.

In some cases, the new initialization process can cause a time-out error to occur. For example, complex Data Flow tasks can contain many components that use connections such as multiple sources, destinations, and lookups. Components at the end of the list cannot use their associated connections until all the previous components' PreExecute calls complete. As a result, under certain package designs, a package may experience a longer delay between the acquisition and first use of a connection. This longer delay may cause some connections to time out, resulting in package failures.

To correct this problem, simply increase the value of the Timeout property for the failing connections. Performance of the package after initialization is not affected.

[Top]

5.2.5 Security Fixes for .NET Framework Invalidates Scripts in Packages

Introduced in SQL Server 2005 SP2.

Integration Services packages use Microsoft Visual Studio for Applications (VSA) functionality to run the custom code that Script components and Script tasks contain. Critical security updates released for the .NET Framework 2.0 results in a breaking change that causes a binary incompatibility between packages that contains scripts and the VSA execution environment. For more information, see the Microsoft Knowledge Base article, 928365.

If this incompatibility occurs at run time, Integration Services tries to identify and work around all instances of this problem so that scripts can run normally. However, in rare cases, the scripts may not run, and you may have to manually recompile the scripts. For more information, see the Microsoft Knowledge Base article, 931846. If the computer is running Windows Vista, you may also have to install a hotfix as described in the Microsoft Knowledge Base article, 928208.

[Top]

5.3 Analysis Services

The following considerations apply to Analysis Services when SQL Server SP2 is installed.

[Top]

5.3.1 Some Microsoft Office 2007 Features Require SQL Server Analysis Services 2005 SP2

Introduced in SQL Server 2005 SP2.

To support all of the business intelligence features in Microsoft Office 2007 when connecting to an instance of Analysis Services, you must have SP2 installed. If SP2 is not installed, features of Office 2007 that require SP2 are disabled when running against an instance of Analysis Services.

[Top]

5.3.2 Analysis Services Databases that Contain a Linked Measure Group Might Become Unusable After Upgrade

Introduced in SQL Server 2005 SP2.

Analysis Services now requires that all dimensions contained in a linked measure group have the same granularity as the dimension in the source measure group. For example, if a time dimension in the source measure group has the day attribute as the granularity attribute, the linked measure group must also use the day attribute as the granularity attribute. The most common scenario for an Analysis Services database that violates this rule is a SQL Server 2000 Analysis Services database that was migrated by using a pre-release version of SQL Server 2005.

If you have a database that violates this granularity rule, you must modify the database containing the linked measure group before applying SP2. If you don't, the database will become invalid after SP2 is applied. These invalid databases must be deleted by using the command line or Windows Explorer to delete the database folder within the data folder.

[Top]

5.3.3 Changes in MDX Behavior

Introduced in SQL Server 2005 SP2.

SP2 introduces the following Multidimensional Expressions (MDX) behavior changes:

  • The coordinates of cells on the column and row axes are now merged with the coordinates of single tuple dimension members that are contained in a WHERE clause. For example, SELECT [USA] FROM [Cube] WHERE [Seattle] now returns the cell value for Seattle rather than for USA. Queries containing multiple dimension members from a given attribute or hierarchy in the WHERE clause and on a column or row axis are not affected by SP2 and may return unexpected results; this is behavior is subject to future change.

  • Queries that contain calculations that overwrite coordinates that are defined in a subselect no longer retain visual totals. For example, WITH MEMBER Measures.ParentContribution AS (Measures.Sales, Geography.Currentmember.Parent) / Measures.Sales SELECT Measures.ParentValue ON COLUMNS, Geography.Members ON ROWS FROM (Select Geography.USA on 0 from Sales) now returns the contribution to the parent without visual totals.

[Top]

5.3.4 Pre-SP2 Backup Files and Data Folders Incompatible with SP2

Introduced in SQL Server 2005 SP2.

Due to backward and forward compatibility changes in the Analysis Services protocol and file format in SP2, Analysis Services SP2 data folders and backups cannot be loaded by Analysis Services SP1 servers and server sync cannot be performed between Analysis Services SP2 servers and Analysis Services SP1 servers. This change was introduced in SQL Server 2005 SP1 QFE 251.

[Top]

5.4 Reporting Services

The following considerations apply to Reporting Services when SQL Server 2005 SP2 is installed.

[Top]

5.4.1 Using the Back Button in Internet Explorer 7.0

Introduced in SQL Server 2005 SP2.

When viewing reports that have expandable content in Internet Explorer 7.0, the Back button does not load previously viewed pages.

[Top]

5.4.2 An ASP.NET Time-Out Error Occurs After Two Minutes of Report Processing (SharePoint Integrated Mode)

On a report server that runs in SharePoint integrated mode, you might encounter an ASP.NET time-out error for long-running reports that require more processing time than the default time out specifies. By default, the ASP.NET time out is 2 minutes. Reports requiring more than two minutes to process will quit unexpectedly, and the Windows SharePoint Services error page will appear with the following error: "An unexpected error has occurred."

If you think this error is due to a time-out issue, you can work around the error by adding an httpRuntime executionTimeout attribute to the Web.config file of the SharePoint Web application.

Be sure to provide a value that is sufficient to complete processing for long-running reports. For a native mode report server, the default value is 9000 seconds for a report server and Report Manager. Consider choosing a similar value when specifying executionTimeout for the SharePoint Web application.

To change the time-out value for a SharePoint Web application
  1. Go to <drive>:\inetpub\wwwroot\wss\VirtualDirectories\<dir>. The directory name is based on the port number used to access the SharePoint site. If the SharePoint site uses port 80, the path will be \inetpub\wwwroot\wss\VirtualDirectories\80.

  2. Open Web.config.

  3. Search for httpRuntime.

  4. Add the executionTimeout value. The following examples provides an illustration of syntax that is valid for this attribute:

    <httpRuntime maxRequestLength="51200" executionTimeout = "9000" />

For more information, see httpRuntime Element (ASP.NET Settings Schema) on MSDN.

If you have deployed multiple applications in a SharePoint farm, repeat the above steps for each Web.config file in the farm. This requirement applies to all of the SharePoint Web application Web.config files in the subdirectories under <drive>:\inetpub\wwwroot\wss\VirtualDirectories. It also applies to Web.config files for applications in the farm that are installed on different computers.

[Top]

5.4.3 Version Requirements for the Reporting Services Configuration Tool

SQL Server 2005 SP2 introduces a newer version of the Reporting Services Configuration tool. If you install SP2, you must use the SP2 version of the Reporting Services Configuration tool to configure the report server. In addition, you cannot use the SP2 version of the Reporting Services Configuration tool to configure a pre-SP2 report server. This incompatibility occurs because the Reporting Services Configuration tool uses a new version of the WMI provider, which is not backward compatible. If you attempt to use the Reporting Services Configuration tool with an unsupported version, the following error will occur: "The WMI Provider has returned an unspecified status at ReportServicesConfigUI.WMIProvider.ConfigurationItem.CreateConfigurationItem."

[Top]

5.4.4 Unexpected Error Occurs While Configuring Report Server Virtual Directory if Report Manager is not Installed

If you configure the report server virtual directory and Report Manager is not installed, the Reporting Services Configuration tool will close unexpectedly and show the following error: “SQL Server 2005 Reporting Services Configuration tool has encountered a problem and needs to close.” The virtual directory is actually created, despite the error message. The error only occurs once. When you re-open the tool, you can finish server configuration without encountering the error again.

[Top]

5.4.5 Version Requirements for SharePoint Server Farm Deployments that Include Reporting Services

If you are deploying and integrating a report server with a SharePoint server farm, you must use the same versions of the SharePoint product or technology on all servers in the farm, including the computer that hosts the report server. You cannot have a combination of Windows SharePoint Services 3.0 and Office SharePoint Server 2007 in the same server farm.

[Top]

5.4.6 SP1-to-SP2 Upgrade Does Not Update the Report Server Database in Some Cases

The type of credentials that are specified on the report server database connection will determine whether Setup can upgrade a report server database from an SP1 or CTP version of SP2 to the final release of SP2.

If the report server connects to the report server database using database credentials or a Windows user account that differs from the one used to run the Report Server Windows service, the database will not be upgraded when the rest of the software is upgraded. If this occurs, you must use the Reporting Services Configuration tool to upgrade the report server database manually. On the Database Setup page, click Upgrade to apply the SP2 format to the report server database.

[Top]

5.4.7 Unsupported Deployment Scenario for Reporting Services in SharePoint Integrated Mode

You cannot integrate two or more report server instances that share the same report server database with different stand-alone server deployments of Windows SharePoint Services 3.0 or Microsoft Office SharePoint Server 2007. Doing so will eventually cause data corruption in the back-end report server database. The following scenario is unsupported: two independent installations of Windows SharePoint Services 3.0, each one integrated with a local report server instance, where both report server instances share the same report server database.

[Top]

5.4.8 Reset Windows Service Account when Upgrading Editions of SQL Server 2005

If you upgrade your edition of SQL Server 2005 Reporting Services (for example, Standard Edition to Enterprise Edition), the Windows service identity settings in the Reporting Services Configuration tool will appear to be invalid.

To repair the settings, start the Reporting Services Configuration tool, click Windows Service Identity, re-select the account (you can choose the same account), and click Apply.

[Top]

5.5 Windows Vista Considerations

The following considerations apply when installing and running SQL Server 2005 SP2 on Windows Vista.

[Top]

5.5.1 Scripting Incompatible with Microsoft Windows Vista

In this release, Microsoft Visual Studio for Applications (VSA)—the scripting development environment and run-time engine that the Script task and Script component in Integration Services use—is incompatible with the final version of Windows Vista. If a computer is running the final version of Windows Vista, you cannot use that computer to edit or debug scripts in Integration Services, nor run Integration Services packages that contain scripts.

[Top]

5.5.2 Issues Caused by User Account Control in Windows Vista

Windows Vista includes a new feature, User Account Control (UAC), that helps administrators manage their use of elevated privileges. When running on Windows Vista, administrators do not use their administrative privileges by default. Instead they perform most actions as standard (non-administrative) users, temporarily assuming their administrative privileges only when necessary.

UAC causes some known issues. For more information, see the following Web pages on TechNet:

Administrator Rights Not Inherited from Windows

On versions earlier than Windows Vista, members of the local Administrators group do not need their own SQL Server logins and they do not need to be granted administrative privileges inside SQL Server. They connect to SQL Server as the built-in server principal BUILTIN\Administrators, and they have administrative privileges inside SQL Server because BUILTIN\Administrators is a member of the sysadmin fixed server role.

On Windows Vista, these mechanisms are available only to administrative users that are running with elevated Windows privileges, which is not recommended. Instead, you should create a SQL Server login for each administrative user, and add that login to the sysadmin fixed server role. You should also do this for Windows accounts used to run SQL Server agent jobs, including replication agent jobs.

Important:
Failure to create a SQL Server login for each administrative user may cause SQL Server tools and services to behave unpredictably. For more information see "How to: Connect to SQL Server from Windows Vista" in the updated SQL Server 2005 Books Online.

After applying SP2, you can run the User Provisioning Tool for Windows Vista to add users to the sysadmin fixed server role. For more information, see "Additional Information (Hotfix)" in the SP2 Setup Documentation.

To add a new Login to the sysadmin fixed server role while logged in as machinename\Administrator
  1. Click Start, Point to All Programs, Point to SQL Server 2005, and then click SQL Server Management Studio.

  2. Connect to SQL Server.

  3. To add the Windows user to the sysadmin fixed server role, follow these steps:

    1. Click Security.

    2. Right-click Logins, and then Click New Login.

    3. Type the user name in the Login name textbox.

    4. Click Server Roles.

    5. Select the sysadmin check box and then click OK.

To add a new Login to the sysadmin fixed server role while logged in as any user other than the administrator
  1. Click Start, Point to All Programs, Point to SQL Server 2005, right-click SQL Server Management Studio, and then click Run As Administrator.

    Note:
    Run as Administrator option elevates the user permissions.

  2. You will see a User Account Control dialog box. You might have to provide the administrator credentials. Click Continue.

  3. In SQL Server Management Studio, connect to SQL Server.

  4. To add the Windows user to the sysadmin fixed server role, follow these steps:

    1. Click Security.

    2. Right-click Logins, and then Click New Login.

    3. Type the user name in the Login name textbox.

    4. Click Server Roles.

    5. Select the sysadmin check box and then click OK.

Administrator Access Denied to a Report Server Deployment

UAC can prevent administrative access to a Report Server deployment. To gain administrative access, connect to SQL Server using the workaround described above and create role assignments on Home and at the system-level for your account. You need to run SQL Server Management Studio with elevated privileges only for creating the role assignments for your account, and for gaining access to a report server if your role assignments have been deleted. After creating role assignments for your account, you can close SQL Server Management Studio and then reopen it with standard permissions. The role assignments that you created for your account provide sufficient rights for you to create additional role assignments for other users.

Local Access Denied to Report Server Virtual Directories

If you try to access Report Manager or the report server on a local computer using Internet Explorer, you will get an access denied error. To resolve this error, add Report Manager and the report server URL to Trusted Sites in Internet Explorer.

Notification Services Command Prompt Fails to Open

Trying to open Notification Services Command Prompt fails with an "Access is denied" error. This is because accessing the Notification Services folder under <drive>\Program Files\Microsoft SQL Server\90 requires administrative permissions.

To run Notification Services Command Prompt, either log on to the computer by using the Administrator account, or run Notification Services Command Prompt with elevated permissions.

To use the Administrator account
  1. Log on to the computer using the local Administrator account.

  2. On the Start menu, click All Programs, click Microsoft SQL Server 2005, click Configuration Tools, right-click Notification Services Command Prompt, and then click Run as administrator.

To use elevated permissions
  1. Log on to the computer using an account that is a member of the local administrator group.

  2. On the Start menu, click Computer.

  3. Locate <drive>\Program Files\Microsoft SQL Server\90\NotificationServices.

  4. When you see a message that says "You don't currently have permission to access this folder," click Continue.

    Note:
      If you do not see this message, you already have permission to access the folder.

  5. Right-click Notification Services Command Prompt and then click Run as administrator.

Notification Services Commands in SQL Server Management Studio Return Errors

If you try to run Notification Services commands in SQL Server Management Studio, an "Object reference not set to an instance of an object" error might occur. This is because running some Notification Services commands requires administrative permissions.

To run SQL Server Management Studio with elevated permissions
  1. Log on to the computer using an administrator account.

  2. On the Start menu, click All Programs, click Microsoft SQL Server 2005, right-click SQL Server Management Studio, and then click Run as administrator.

If you do not want to run SQL Server Management Studio with elevated permissions, use Notification Services Command Prompt to deploy and administer Notification Services.

Permissions to the Replication Snapshot Share Must Be Explicitly Granted

UAC can prevent administrative access to the snapshot share. You must therefore explicitly grant snapshot share permissions to the Windows accounts used by the Snapshot Agent, Distribution Agent, and Merge Agent. You must do this even if the Windows accounts are members of the Administrators group. For more information, see "Securing the Snapshot Folder" in SQL Server Books Online.

[Top]