Udostępnij za pośrednictwem


Overview of SQL Server Servicing Installation

You can upgrade any installed SQL Server 2008 component with a SQL Server 2008 servicing update. If the version level of an existing SQL Server 2008 component is later than the update version level, the Setup program will exclude it from the update.

The following considerations apply when you install SQL Server 2008 updates:

  • All features that belong to an instance of SQL Server must be updated at the same time. For example, when you update the Database Engine, you must also update Analysis Services and Reporting Services components if they are installed as part of the same instance of SQL Server. Shared features, such as Management Tools, Business Intelligence Development Studio, and SQL Server Integration Services, must always be updated to the most recent update. If a component or instance in the feature tree is not selected, the component or instance will not be updated.
  • By default, SQL Server 2008 update log files are saved to %Program Files%\Microsoft SQL Server\100\Setup Bootstrap\LOG\.
  • Starting with Service Pack 1 (SP1), you can now slipstream an update with the original media to run the original media and the update at the same time. For more information, see Slipstream a SQL Server Update.
  • Before you apply a SQL Server 2008 servicing update, we recommend that you consider backing up your data.
  • SQL Server updates are available through Microsoft Update. We recommend that you scan for updates regularly to keep your instance of SQL Server updated and secure.

For more information, see How to apply a SQL Server 2008 update to a failover cluster instance in the Microsoft Knowledge Base.

Disk Space Requirements

The recommended disk space requirements are approximately 2.5 times the size of the package to install, download, and extract the package.

The size of SP1 packages are listed here:

  • X86: 270 MB
  • X64: 331 MB
  • Ia64: 320 MB

After installing SP1, you can remove the downloaded package. Any temporary files are removed automatically.

Installation Overview

This section discusses the SQL Server 2008 update installation, including how to do the following:

  • Prepare for a SQL Server 2008 update installation
  • Install SQL Server 2008 updates
  • Restart services and applications

Prepare for a SQL Server 2008 Update Installation

You must do the following before you install SQL Server 2008 updates:

  • Back up your SQL Server 2008 system databases — Before you install SQL Server 2008 updates, back up the master, msdb, and model databases. Installing a SQL Server 2008 update changes these databases, making them incompatible with earlier versions of SQL Server 2008. Backups of these databases are required if you decide to reinstall SQL Server 2008 without these updates.
    It is also prudent to back up your user databases.

Important

When you apply updates to instances of SQL Server that participate in a replication topology, you must back up your replicated databases together with your system databases before you apply the update.

  • Back up your Analysis Services databases, configuration file, and repository — Before you update an instance of Analysis Services, you should back up the following:
    • Analysis Services databases. By default, these are installed to C:\Program Files\Microsoft SQL Server\MSAS10\<InstanceID>\OLAP\Data\.
    • Analysis Services configuration setting in the msmdsrv.ini configuration file. By default, this is located in the C:\Program Files\Microsoft SQL Server\MSAS10\<InstanceID>\OLAP\Config\ directory.
    • (Optional) The database that contains the Analysis Services repository. This step is required only if Analysis Services was configured to work with the Decision Support Objects (DSO) library.

Note

Failure to back up your Analysis Services databases, configuration file, and repository will prevent you from reverting an updated instance of Analysis Services to the earlier version.

  • Verify that the system databases have sufficient free space — If the autogrow option is not selected for the master and msdb system databases, these databases each must have at least 500 KB of free space. To verify that the databases have sufficient space, run the sp_spaceused system stored procedure on the master and msdb databases. If the unallocated space in either database is less than 500 KB, increase the size of the database. For more information, see "Expanding a Database" in SQL Server Books Online.
  • Stop Services and Applications — To avoid a possible restart of the system, stop all applications and services that make connections to the instances of SQL Server that are being upgraded, before installing SQL Server 2008 updates. These include SQL Server Management Studio, Business Intelligence Development Studio, Control Panel, and Add or Remove Programs.

Note

You cannot stop services in a failover cluster environment. For more information, see the failover cluster installation section later in this topic.

  • To eliminate the requirement to restart your computer after update installation, Setup will show a list of processes that are locking files. If the update Setup program must end a service during installation, it will restart the service after the installation finishes.
  • If Setup determines that files are locked during installation, you might have to restart your computer after the installation finishes. If it is required, Setup prompts you to restart your computer.

Install SQL Server 2008 Updates

This section describes the installation process.

Important

   SQL Server 2008 updates must be installed under an account that has administrative privileges on the computer where they will be installed.

Starting a SQL Server 2008 Update

To install a SQL Server 2008 update, run the self-extracting package file SQLServer2008-KBxxxxxx-PPP.exe, where PPP indicates the specific platform.

Note

To apply updates to SQL Server 2008 components that are part of a failover cluster, see the section for failover cluster installation. For more information about how to run an update installation in unattended mode, see How to: Install SQL Server 2008 (Setup).

Slipstream a SQL Server Update

Overview:

Slipstreaming is integrating a SQL Server 2008 update and the original installation media so that the original media and the update are installed at the same time. When you run the original release version of SQL Server 2008 Setup, the Setup program copies itself on the local computer, and then re-runs from the local copy. Therefore, if there is a later version of Setup on the computer, the Setup program runs the updated Setup.

Slipstreaming is supported in the following scenarios:

  • Original media and service pack

  • Original media, service pack, and cumulative update

    Note

    Slipstreaming an update with the original media but without the service pack is not supported.

    Important

    For SQL Server Express, you must download the version with the service pack and slipstream cumulative updates as needed.

There are several ways that you can slipstream an update:

Option 1: Install the latest update with the original release version of SQL Server 2008 Setup directly:

We recommend that you use this option if you are running the upgrade on a few computers.

  1. Install the following prerequisites that are required for SQL Server 2008.

    • Microsoft Windows Installer 4.5

    • Microsoft .NET Framework 3.5 Service Pack 1

      Note

      On the IA-64 platform, the .NET Framework 3.5 is not supported, and the .NET Framework 2.0 SP2 is required. You must install the .NET Framework 2.0 SP2 from the source media because it is not available from the Microsoft Download Center. The .NET Framework 2.0 SP2 is located in the following folder on the source media: Drive_Letter:\ia64\redist\2.0\NetFx20SP2_ia64.exe

  2. Download the service package and cumulative update that you want to slipstream. Select the language or architecture package that matches your environment. Service packages must match both language and architecture; cumulative updates are language-neutral.

  3. Double-click the service pack to install the SQL Server 2008 Setup support files. To confirm that the updated setup is installed, search for the "SQL Server 2008 Setup Support Files" entry by using the Add or Remove Programs item in Control Panel in operating systems that are earlier than Windows Vista. In Windows Vista or later versions of Windows, view the entry by using the Programs and Features item in Control Panel.

  4. For each package, extract the contents of the package by running the following script at the command prompt:
    <name of the PCU or CU package>.exe /x:<Root of path to extract to>\<PCU | CU>

    Note

    The name of the package is in the form: PCU: SQLServer2008SP1-<KB Article>-<Architecture>-<Language>.exe CU: SQLServer2008SP1-<KB Article>-<Architecture>.exe The architecture placeholder represents the different hardware platforms. For example, it can represent one of the following folders: x86 x64 IA64 For example, run the following commands to extract the contents of the PCU package: SQLServer2008- KB123456-IA64.exe /x:c:\MyUpdate\PCU SQLServer2008- KB123456-x64.exe /x:c:\MyUpdate\PCU SQLServer2008- KB123456-x86.exe /x:c:\MyUpdate\PCU If you want to include a CU based on the PCU, extract out the CU packages to c:\MyUpdate\CU

  5. Start the SQL Server 2008 Setup program and specify the path for the service pack and cumulative update files by using the /PCUSource and /CUSource parameters. For example, here is a path based on the extracted location indicated in step 4:

    Setup.exe /PCUSource = c:\MyUpdate\PCU /CUSource= c:\MyUpdate\CU
    

    Note

    For SQL Server Express SP1 or later, only the /CUSource parameter is supported. If you are slipstreaming SQL Server in WOW64, you need to do one of the following:

    • To skip the installation center, specify the /Action parameter and the /x86 parameter on the command line.
    • Or, on the Options page of the Installation Center, select x86.
Option 2: Slipstream Express Core Service Pack with cumulative update:

We recommend that you use this option if you are running the upgrade on a few computers.

  1. Install the following prerequisites that are required for SQL Server 2008.

    • Microsoft Windows Installer 4.5
    • Microsoft .NET Framework 3.5 Service Pack 1

    Note

    SQL Server Express only requires .NET 2.0 SP2, but this version is not publicly available so you need to install .NET 3.5 SP1 instead.

  2. Download the SQL Server Express core package and cumulative update that you want to slipstream. Select the language or architecture of SQL Server Express that matches your environment. The cumulative updates are language-neutral.

  3. Extract the contents of the cumulative update package by running the following script at the command prompt:
    <CU package>.exe /x:<Root of path to extract to>\<CU>

    Note

    The name of the package is in the form: CU: SQLServer2008-<KB Article>-<Architecture>.exe The architecture placeholder represents the different hardware platforms. For example, it can represent one of the following folders: x86 x64 IA64 For example, run the following commands to extract the contents of the cumulative update package: SQLServer2008-KB123456-IA64.exe /x:c:\MyUpdate\CU SQLServer2008-KB123456-x64.exe /x:c:\MyUpdate\CU SQLServer2008-KB123456-x86.exe /x:c:\MyUpdate\CU

  4. Start the SQL Server 2008 Setup program and specify the path for the service pack and cumulative update files by using the /CUSource parameters.

    Note

    For SQL Server Express SP1 or later, only the /CUSource parameter is supported.

  • Microsoft Windows Installer 4.5
  • Microsoft .NET Framework 3.5 Service Pack 1
Option 3: Update the original media files:

We recommend that you use this option for running a patched setup on many computers or large deployments, or for when an administrator wants to make this patched setup available to users. We also recommend that you test fully before you make this option available to other users. This option is supported in the following scenarios:

  • Original media and service pack
  • Original media, service pack, and cumulative update
  1. Download the service pack and the optional cumulative update based on the service pack that you want to use to update the original media files. You must download the service pack and updates for all platforms (x86, x64, and IA-64) because the original media contains the files for each platform. For example, you must either download three packages for merging the original media and just the service pack or six packages for merging the original media, service pack, and cumulative update.

  2. For each package, extract the contents of the package by running the following script at the command prompt:
    <name of the PCU or CU package>.exe /x:<Root of path to extract to>\<PCU | CU>

    Note

    The name of the package is in the form: PCU: SQLServer2008SP1-<KB Article>-<Architecture>-<Language>.exe CU: SQLServer2008SP1-<KB Article>-<Architecture>.exe The architecture placeholder represents the different hardware platforms. For example, it can represent one of the following folders: x86 x64 IA64 For example, run the following commands to extract the contents of the PCU package: SQLServer2008- KB123456-IA64.exe /x:c:\MyUpdate\PCU SQLServer2008- KB123456-x64.exe /x:c:\MyUpdate\PCU SQLServer2008- KB123456-x86.exe /x:c:\MyUpdate\PCU The previous command merges the three architectures into a single folder. If you want to include a CU based on the PCU, extract the cumulative update packages out to c:\MyUpdate\CU

  3. Copy the contents of the SQL Server 2008 DVD to a local folder, for example SQLServer2008RTM.

  4. To update the files in the original installation media, copy the SQLSupport.msi file from the C:\MyUpdate\PCU\<Architecture>\setup\<Language LCID>\sqlsupport.msi to C:\SQLServer2008RTM\<Architecture>\Setup\sqlsupport.msi. Ensure that you copy Sqlsupport.msi for each architecture.

    Note

    If you are using slipstreaming to integrate a cumulative update package also, use the files in the extracted cumulative update folder instead

  5. Copy the Setup.exe and Setup.rll files from the C:\MyUpdate\PCU\ folder to the root folder that contains the source media from the DVD.

    Note

    If you are using slipstream to integrate a cumulative update package also, use the files in the extracted cumulative update folder instead.

  6. To update the files in the original installation media, copy all files without the folders, except the Microsoft.SQL.Chainer.PackageData.dll, in c:\MyUpdate\PCU\<architecture> to C:\SQLServer2008RTM\<architecture>

    Note

    If you are using slipstream to integrate a cumulative update package also, use the files in the extracted cumulative update folder instead

  7. Start the Setup.exe program that is located at C:\SQLServer2008RTM and specify the values for /PCUSource and /CUSource parameters. For example, C:\SQLServer2008RTM\Setup.exe /PCUSource=c:\MyUpdate\PCU /CUSource= c:\MyUpdate\CU.

    Note

    If you place the folder on a share for user installs, set the /PCUSource and /CUSource parameters to a UNC path.

Applying a SQL Server 2008 Update to a Failover Cluster Instance

For more information about how to install updates to a SQL Server 2008 failover cluster, see How to apply a SQL Server 2008 update to a failover cluster instance in the Microsoft Knowledge Base.

Rebuilding a SQL Server 2008 Failover Cluster Node

If you must rebuild a node in the failover cluster after updates were applied, follow these steps:

  1. Rebuild the node in the failover cluster. For more information about rebuilding a node, see "How to: Recover from Failover Cluster Failure in Scenario 1" in SQL Server Books Online.
  2. Run the original SQL Server 2008 Setup program to install SQL Server 2008 on the failover cluster node.
  3. Run SQL Server 2008 updates Setup on the node that you have added.

Restart Services and Applications

When the Setup program is finished, it might prompt you to restart the computer. After the system restarts, or after the Setup program finishes without requesting a restart, use the Services node in Control Panel to restart the services that you stopped before you applied the SQL Server 2008 updates. This includes services such as Distributed Transaction Coordinator and the Microsoft Search services, or instance-specific equivalents.

Restart the applications that you closed before you ran SQL Server 2008 update Setup. You might also want to make another backup of the upgraded master, msdb, and model databases immediately after successful installation.

Uninstalling updates to SQL Server 2008

You can uninstall SQL Server 2008 cumulative updates or service packs from Programs and Features in Control Panel. Each cumulative update is listed separately. However, when a service pack is installed that is higher than the cumulative updates, the cumulative update entries are hidden and become available only if you uninstall the service pack.

To uninstall any service packs and updates, you must start with the latest update or service pack applied to the instance of SQL Server and work backward. In each of the following examples, SQL Server ends up with Cumulative Update 1 after uninstall has been completed for the other service packs or updates:

  • For an instance of SQL Server 2008 with Cumulative Update 1 and SP1 installed, uninstall SP1.
  • For an instance of SQL Server 2008 with Cumulative Update 1, SP1, and Cumulative Update 2 installed, uninstall Cumulative Update 2 first and then uninstall SP1.