Compartir a través de


How to: Install SQL Server 2008 R2 Using SysPrep

SQL Server SysPrep related setup actions can be accessed through the Installation Center. The Advanced Page of the Installation Center has two options - Image preparation of a stand-alone instance for SysPrep deployment and Image completion of a prepared stand-alone instance. The Prepare and Complete sections describe the installation process in detail.

For an overview of SQL Server SysPrep, see Considerations for Installing SQL Server Using SysPrep.

You can also prepare and complete an instance of SQL Server using the command prompt or a configuration file. For more information, see:

Prerequisites

Before you install SQL Server, review the topics in Planning a SQL Server Installation.

For more information about SQL Server editions and the hardware and software requirements, see Hardware and Software Requirements for Installing SQL Server 2008 R2.

Importante

The following are not supported by SQL Server SysPrep:

IA64 editions.

WOW 64 installations: a feature of 64-bit edition of Windows that enables 32-bit applications to run natively in 32-bit mode.

This section includes the following procedures:

  • Prepare a stand-alone instance of SQL Server

  • Complete a prepared instance of SQL Server

  • Add features to a prepared instance of SQL Server

  • Remove features from a prepared instance of SQL Server

Prepare Image

Prepare a stand-alone instance of SQL Server.

  1. Insert the SQL Server installation media. From the root folder, double-click Setup.exe. To install from a network share, locate the root folder on the share, and then double-click Setup.exe. If the Microsoft SQL Server 2008 R2 Setup dialog box appears, click OK to install the prerequisites, then click Cancel to exit SQL Server installation.

  2. If the .NET Framework 3.5 SP1 installation dialog box appears, select the check box to accept the .NET Framework 3.5 SP1 License Agreement. Click Next. To exit SQL Server installation, click Cancel. When installation of .NET Framework 3.5 SP1 is complete, click Finish.

  3. Windows Installer 4.5 is also required, and might be installed by the Installation Wizard. If you are prompted to restart your computer, restart it, and then restart SQL Server Setup.exe.

  4. When the prerequisites are installed, the Installation Wizard runs the SQL Server Installation Center. To prepare an instance of SQL Server, click Image preparation of a stand-alone instance for SysPrep deployment on the Advanced page.

  5. The System Configuration Checker runs a discovery operation on your computer. To continue, click OK. You can view the details on the screen by clicking Show Details, or as an HTML report by clicking View detailed report.

  6. On the Language Selection page, you can specify the language for your instance of SQL Server if you are installing on a localized operating system and the installation media includes language packs for both English and the language corresponding to the operating system. For more information about cross-language support and installation considerations, see Local Language Versions in SQL Server.

    To continue, click Next.

  7. On the Setup Support Files page, click Install to install the Setup support files.

  8. The System Configuration Checker verifies the system state of your computer before Setup continues. You can view the details on the screen by clicking Show Details, or as an HTML report by clicking View detailed report.

  9. On the Prepare Image Type page, select Perform a new prepare image of SQL Server 2008 R2.

  10. On the License Terms page, read the license agreement, and then select the check box to accept the license terms and conditions. To help improve SQL Server, you can also enable the feature usage option and send reports to Microsoft.

  11. The Prepare Image Type page is displayed only when you have an existing unconfigured prepared instance of SQL Server on the machine. You can choose to prepare a new instance of SQL Server or add sys prep supported features to an existing prepared instance of SQL Server on the machine. For more information on how to add features to a prepared instance of SQL Server see Add Features to a prepared instance.

  12. On the Feature Selection page, select the components for your installation. The features available for SQL Server 2008 R2 SysPrep are: Database Engine, SQL Server Replication, Full-Text Features Reporting Services, Shared Features, and Redistributable Features. A description for each component group appears in the right pane when you highlight the feature name. You can select any combination of check boxes. For more information, see Editions and Components of SQL Server 2008 R2.

  13. On the Instance Configuration page, specify the Instance ID for the Instance. Click Next to continue.

    Instance ID — The Instance ID is used to identify installation directories and registry keys for your instance of SQL Server. This is the case for default instances and named instances. If the prepared instance is completed as a default Instance during the Complete step, the instance name is overwritten as MSSQLSERVER. The Instance ID remains the same as specified.

    Instance root directory — By default, the instance root directory is C:\Program Files\Microsoft SQL Server\100\. To specify a non-default root directory, use the field provided, or click Browse to locate an installation folder. The directory specified in the prepare step will be used during configuration in the Complete step.

    All SQL Server service packs and upgrades will apply to every component of an instance of SQL Server.

    Installed Instances — The grid shows instances of SQL Server that are on the computer where Setup is running.

  14. The Disk Space Requirements page calculates the required disk space for the features that you specify. Then it compares the required space to the available disk space. For more information, see Disk Space Requirements.

  15. The System Configuration Checker will run prepare image rules to validate your computer configuration with the SQL Server features that you have specified. You can view the details on the screen by clicking Show Details, or as an HTML report by clicking View detailed report.

  16. The Ready to Prepare Image page shows a tree view of installation options that were specified during Setup. To continue, click Install.

  17. During installation, the Prepare Image Progress page provides status so that you can monitor installation progress as Setup continues.

  18. After installation, the Complete page provides a link to the summary log file for the installation and other important notes. To complete the SQL Server installation process, click Close.

  19. If you are instructed to restart the computer, do so now. It is important to read the message from the Installation Wizard when you have finished with Setup. For more information, see How to: View and Read SQL Server Setup Log Files.

  20. This completes the prepare step. You may complete the image or deploy the prepared image as described in Considerations for Installing SQL Server Using SysPrep.

Complete Image

Complete a Prepared Instance of SQL Server

  1. If you have a prepared instance of SQL Server included in the image of you machine, you will see a shortcut in the Start Menu. You can also launch the Installation Center and click Image completion of a prepared stand-alone instance on the Advanced page.

  2. The System Configuration Checker runs a discovery operation on your computer. To continue, click OK. You can view the details on the screen by clicking Show Details, or as an HTML report by clicking View detailed report.

  3. On the Language Selection page, you can specify the language for your instance of SQL Server if you are installing on a localized operating system and the installation media includes language packs for both English and the language corresponding to the operating system. For more information about cross-language support and installation considerations, see Local Language Versions in SQL Server.

    To continue, click Next.

  4. On the Setup Support Files page, click Install to install the Setup support files.

  5. The System Configuration Checker verifies the system state of your computer before Setup continues. After the check is complete, click Next to continue. You can view the details on the screen by clicking Show Details, or as an HTML report by clicking View detailed report.

  6. On the Select Prepared Instance page select the prepared instance you want to complete from the drop down box. The prepared instance is displayed as "Unconfigured PreparedInstanceID" where PreparedInstanceID is the instance you select.

    Installed Instances: This grid displays all the instances including any prepared instance on this machine.

  7. On the Product Key page, select an option button to indicate whether you are installing a free edition of SQL Server, or a production version of the product that has a PID key. For more information, see Editions and Components of SQL Server 2008 R2. If you are installing Evaluation edition the 180-day trial period starts when you complete this step.

  8. On the License Terms page, read the license agreement, and then select the check box to accept the license terms and conditions. To help improve SQL Server, you can also enable the feature usage option and send reports to Microsoft.

  9. On the Feature Review page, you will see the selected features and components included in the install during the prepare step. If you wish to add more features to your SQL Server Instance not included in the prepared instance, you must first complete this step to complete the SQL Server Instance, then add the features from the Add Features on the Installation Center.

    Nota

    You can add features that are available for the product version that you are installing. For more information, see Features Supported by the Editions of SQL Server 2008 R2

  10. On the Instance Configuration page, specify the Instance name for the prepared Instance. This is the name of the instance once you have completed the configuration of SQL Server. Click Next to continue.

    Instance ID — The Instance ID is used to identify installation directories and registry keys for your instance of SQL Server. This is the case for default instances and named instances. If the prepared instance is completed as a default Instance during the Complete step, the instance name is overwritten as MSSQLSERVER. The Instance ID remains the same as specified during the Prepare step.

    Instance root directory —The directory specified in the prepare step will be used and cannot be modified in this step.

    All SQL Server service packs and upgrades will apply to every component of an instance of SQL Server.

    Installed Instances — The grid shows instances of SQL Server that are on the computer where Setup is running.

  11. Work flow for the rest of this topic depends on the features that were selected during the prepare step. You might not see all the pages, depending on the selections.

  12. On the Server Configuration — Service Accounts page, specify login accounts for SQL Server services. The actual services that are configured on this page depend on the features that you selected to install.

    You can assign the same login account to all SQL Server services, or you can configure each service account individually. You can also specify whether services start automatically, are started manually, or are disabled. Microsoft recommends that you configure service accounts individually to provide least privileges for each service, where SQL Server services are granted the minimum permissions they have to have to complete their tasks. For more information, see Server Configuration - Service Accounts and Setting Up Windows Service Accounts.

    To specify the same logon account for all service accounts in this instance of SQL Server, provide credentials in the fields at the bottom of the page.

    Security Note   Do not use a blank password. Use a strong password.

    When you are finished specifying login information for SQL Server services, click Next.

  13. Use the Server Configuration — Collation tab to specify non-default collations for the Database Engine and Analysis Services. For more information, see Server Configuration - Collation.

  14. Use the Database Engine Configuration - Account Provisioning page to specify the following:

    • Security Mode — Select Windows Authentication or Mixed Mode Authentication for your instance of SQL Server. If you select Mixed Mode Authentication, you must provide a strong password for the built-in SQL Server system administrator account.

      After a device establishes a successful connection to SQL Server, the security mechanism is the same for both Windows Authentication and Mixed Mode. For more information, see Database Engine Configuration - Account Provisioning.

    • SQL Server Administrators — You must specify at least one system administrator for the instance of SQL Server. To add the account under which SQL Server Setup is running, click Add Current User. To add or remove accounts from the list of system administrators, click Add or Remove, and then edit the list of users, groups, or computers that will have administrator privileges for the instance of SQL Server. For more information, see Database Engine Configuration - Account Provisioning.

    When you are finished editing the list, click OK. Verify the list of administrators in the configuration dialog box. When the list is complete, click Next.

  15. Use the Database Engine Configuration - Data Directories page to specify nondefault installation directories. To install to default directories, click Next.

    Importante

    If you specify non-default installation directories, ensure that the installation folders are unique to this instance of SQL Server. None of the directories in this dialog box should be shared with directories from other instances of SQL Server.

    For more information, see Database Engine Configuration - Data Directories.

  16. Use the Database Engine Configuration - FILESTREAM page to enable FILESTREAM for your instance of SQL Server. For more information, see Database Engine Configuration - Filestream.

  17. Use the Reporting Services Configuration page to specify the kind of Reporting Services installation to create. Options include the following:

    • Native mode default configuration

    • SharePoint mode default configuration

    • Unconfigured Reporting Services installation

  18. For more information about Reporting Services configuration modes, see Report Server Installation Options.

  19. On the Error Reporting page, specify the information that you want to send to Microsoft to help improve SQL Server. By default, option for error reporting is enabled. For more information, see Error Reporting.

  20. The System Configuration Checker will run the complete image rules to validate your computer configuration with the SQL Server configurations that you have specified. You can view the details on the screen by clicking Show Details, or as an HTML report by clicking View detailed report.

  21. The Ready to Complete Image page shows a tree view of installation options that were specified during Setup. To continue, click Install.

  22. During installation, the Complete Image Progress page provides status so that you can monitor installation progress as Setup continues.

  23. After installation, the Complete page provides a link to the summary log file for the installation and other important notes. To complete the SQL Server installation process, click Close.

  24. If you are instructed to restart the computer, do so now. It is important to read the message from the Installation Wizard when you have finished with Setup. For more information, see How to: View and Read SQL Server Setup Log Files.

  25. This step completes the configuration of the prepared instance of SQL Server and you have completed the installation of SQL Server.

Add Features to a Prepared Instance

Add Features to a Prepared Instance of SQL Server

  1. Insert the SQL Server installation media. From the root folder, double-click Setup.exe. To install from a network share, locate the root folder on the share, and then double-click Setup.exe. If the Microsoft SQL Server 2008 R2 Setup dialog box appears, click OK to install the prerequisites, then click Cancel to exit SQL Server installation.

  2. If the .NET Framework 3.5 SP1 installation dialog box appears, select the check box to accept the .NET Framework 3.5 SP1 License Agreement. Click Next. To exit SQL Server installation, click Cancel. When installation of .NET Framework 3.5 SP1 is complete, click Finish.

  3. Windows Installer 4.5 is also required, and might be installed by the Installation Wizard. If you are prompted to restart your computer, restart it, and then restart SQL Server Setup.exe.

  4. When the prerequisites are installed, the Installation Wizard runs the SQL Server Installation Center. To prepare an instance of SQL Server, click Image preparation of a stand-alone instance for SysPrep deployment on the Advanced page.

  5. The System Configuration Checker runs a discovery operation on your computer. To continue, click OK. You can view the details on the screen by clicking Show Details, or as an HTML report by clicking View detailed report.

  6. On the Setup Support Files page, click Install to install the Setup support files.

  7. On the Prepare Image Type page, select Add features to an existing prepared instance of SQL Server 2008 R2 option. Select the specific prepared instance you want to add features to from the drop down list of available prepared instances.

  8. On the Feature Selection page, specify the features you want to add to the specified prepared instance.

  9. The Disk Space Requirements page calculates the required disk space for the features that you specify. Then it compares the required space to the available disk space. For more information, see Disk Space Requirements.

  10. The System Configuration Checker will run prepare image rules to validate your computer configuration with the SQL Server features that you have specified. You can view the details on the screen by clicking Show Details, or as an HTML report by clicking View detailed report.

  11. The Ready to Prepare Image page shows a tree view of installation options that were specified during Setup. To continue, click Install.

  12. During installation, the Prepare Image Progress page provides status so that you can monitor installation progress as Setup continues.

  13. After installation, the Complete page provides a link to the summary log file for the installation and other important notes. To complete the SQL Server installation process, click Close.

  14. If you are instructed to restart the computer, do so now. It is important to read the message from the Installation Wizard when you have finished with Setup. For more information, see How to: View and Read SQL Server Setup Log Files.

Remove Features from a Prepare Instance

Removing features from a prepared instance of SQL Server

  1. To begin the uninstall process, from the Start menu click Control Panel and double click Program and Features.

  2. Double click the SQL Server component to uninstall and click Remove.

  3. Setup support rules will run to verify your computer configuration. Click OK to continue.

  4. On the Select Instance page, select the prepared instance you want to modify. The name of the prepared instance will be displayed as "Unconfigured PreparedInstanceID" where PreparedInstanceID is the instance you select.

  5. On the Select Features page, specify the features to remove from the SQL Server instance you specified. Click Next to continue.

  6. Removal rules will run to verify that the operation can complete successfully.

  7. On the Ready to Remove page, review the list of components and features that will be uninstalled.

  8. The Remove Progress page will display the status of the operation.

  9. On the Complete page you can review the completion status of the operation. Click close to exit the installation wizard.

Uninstalling a Prepared Instance

Uninstall a prepared instance of SQL Server

  1. To begin the uninstall process, from the Start menu click Control Panel and double click Program and Features.

  2. Double click the SQL Server component to uninstall and click Remove.

  3. Setup support rules will run to verify your computer configuration. Click OK to continue.

  4. On the Select Instance page, select the prepared instance you want to modify. The name of the prepared instance will be displayed as "Unconfigured PreparedInstanceID" where PreparedInstanceID is the instance you select.

  5. On the Select Features page, specify the features to remove from the SQL Server instance you specified. Click Next to continue.

  6. Removal rules will run to verify that the operation can complete successfully.

  7. On the Ready to Remove page, review the list of components and features that will be uninstalled.

  8. The Remove Progress page will display the status of the operation.

  9. On the Complete page you can review the completion status of the operation. Click close to exit the installation wizard.

  10. Repeat steps 1 to 9 until all components of SQL Server 2008 R2 have been removed.

Modifying or Uninstalling a Completed Instance of SQL Server.

The process to add or remove features or to uninstall a completed instance of SQL Server is similar to the process to an installed instance of SQL Server. For more information, see the following topics: