Вы находитесь на странице: 1из 5

How to: Install SQL Server 2008 (Setup) http://msdn.microsoft.com/en-us/library/ms143219(SQL.100).

aspx

How to: Install SQL Server 2008 (Setup)


SQL Server 2008

The SQL Server Installation Wizard provides a single feature tree for installation of all SQL Server components so that you do not have to install the following components
individually:

Database Engine

Analysis Services

Reporting Services

Integration Services

Replication

Management tools

Connectivity components

Sample databases, samples, and SQL Server Books Online

These additional topics document other ways to install SQL Server 2008:

How to: Install SQL Server 2008 from the Command Prompt.

How to: Create a New SQL Server Failover Cluster (Setup).

How to: Upgrade to SQL Server 2008 (Setup).

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

Note
For local installations, you must run Setup as an administrator. If you install SQL Server from a remote share, you must use a domain
account that has read and execute permissions on the remote share.

Note
You may need to apply cumulative updates to the original media before you install SQL Server 2008, if you are affected by a known issue in
the setup program. For more information about known issues and detailed instructions, see How to update SQL Server 2008 Setup by
running a newer version of the SQL Server 2008 Setup support files.

Note
Exit antivirus software while installing SQL Server, or if you are applying service packs or cumulative updates to an instance of SQL Server.

To install SQL Server 2008

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 Setup dialog box appears, click OK to install the prerequisites, then click Cancel to exit SQL Server 2008
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 2008 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 2008 setup.exe.

4. When the prerequisites are installed, the Installation Wizard will run the SQL Server Installation Center. To create a new installation of SQL Server 2008, click New
Installation or Add Features to an Existing Installation.

5. The System Configuration Checker will run a discovery operation on your computer. To continue, click OK. Setup log files are created for your installation. For more
information, see How to: View and Read SQL Server Setup Log Files.

6. 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.

7. On the License Terms page, read the license agreement, and then select the check box to accept the license terms and conditions.

8. The Installation Wizard will install SQL Server prerequisites if they are not already on the computer. These include the following:

.NET Framework 3.5 SP1

SQL Server Native Client

SQL Server Setup Support Files

To install prerequisites, click Install.

9. The System Configuration Checker will verify the system state of your computer before Setup continues.

10. On the Feature Selection page, select the components for your installation. A description for each component group appears in the right pane after you select the
feature name. You can select any combination of check boxes. For more information, see Editions and Components of SQL Server 2008.

You can also specify a custom directory for shared components by using the field at the bottom of the Feature Selection page. To change the installation path for
shared components, either update the path in the field at the bottom of the dialog box, or click Browse to move to an installation directory. The default installation
path is C:\Program Files\Microsoft SQL Server\100\.

11. On the Instance Configuration page, specify whether to install a default instance or a named instance. For more information, see Instance Configuration. Click Next
to continue.

Instance ID — By default, the instance name is used as the Instance ID. This is used to identify installation directories and registry keys for your instance of SQL

1 of 5 26-12-2010 21:19
How to: Install SQL Server 2008 (Setup) http://msdn.microsoft.com/en-us/library/ms143219(SQL.100).aspx

Server. This is the case for default instances and named instances. For a default instance, the instance name and instance ID would be MSSQLSERVER. To use a
nondefault instance ID, select the Instance ID check box and provide a value.

Note
Typical stand-alone instances of SQL Server 2008, whether default or named instances, do not use a nondefault value for the Instance
ID check box.

Instance root directory — By default, the instance root directory is C:\Program Files\Microsoft SQL Server\100\. To specify a nondefault root directory, use the
field provided, or click Browse to locate an installation folder.

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

Detected instances and features — The grid shows instances of SQL Server that are on the computer where Setup is running. If a default instance is already
installed on the computer, you must install a named instance of SQL Server 2008.

12. 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 Cost Summary.

13. Work flow for the rest of this topic depends on the features that you have specified for your installation. You might not see all the pages, depending on your
selections.

14. 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 SQL 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.

15. Use the Server Configuration — Collation tab to specify nondefault collations for the Database Engine and Analysis Services. For more information, see SQL
Server Configuration - Collation.

16. 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.

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

Important
If you specify nondefault 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.

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

19. Use the Analysis Services Configuration — Account Provisioning page to specify users or accounts that will have administrator permissions for Analysis Services. You
must specify at least one system administrator for Analysis Services. 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 Analysis Services. For more information, see Analysis Services 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.

20. Use the Analysis Services Configuration — Data Directories page to specify nondefault installation directories. To install to default directories, click Next.

Important
If you specify nondefault 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 Analysis Services Configuration - Data Directories.

21. 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

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

22. On the Error and Usage Reporting page, specify the information that you want to send to Microsoft that will help improve SQL Server. By default, options for
error reporting and feature usage are enabled. For more information, see Error and Usage Report Settings.

23. The System Configuration Checker will run one more set of rules to validate your computer configuration with the SQL Server features that you have specified.

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

2 of 5 26-12-2010 21:19
How to: Install SQL Server 2008 (Setup) http://msdn.microsoft.com/en-us/library/ms143219(SQL.100).aspx

25. During installation, the Installation Progress page provides status so that you can monitor installation progress as Setup continues.

26. 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.

27. 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.

Next Steps
Configure your new SQL Server installation

To reduce the attackable surface area of a system, SQL Server selectively installs and enables key services and features. For more information, see Understanding
Surface Area Configuration on MSDN.

For more information about how to use graphical tools and command prompt utilities, see Configuring SQL Server 2008.

See Also
Tasks

How to: Upgrade to SQL Server 2008 (Setup)

Concepts

How to: View and Read SQL Server Setup Log Files
How to: Install SQL Server 2008 from the Command Prompt

Community Content

Microsoft SQL Server 2008 SP2 is supported on Windows XP SP3

Hello,

Even when under system requirements on the download page of Microsoft SQL Server 2008 Service Pack 2 is not showing Windows XP SP3 as supported, it has been
confirmed that SP2 is supported on Windows XP SP3.

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=8FBFC1DE-D25E-4790-88B5-7DDA1F1D4E17&displaylang=en

http://social.msdn.microsoft.com/Forums/en-US/sqlsetupandupgrade/thread/71097cca-522a-4bc4-a946-3b54339a1e05

Regards,

Alberto Morillo
SQLCoffee.com

10/18/2010 10/18/2010
Alberto Morillo Alberto Morillo

Hardware Sizing Microsoft SQL Server

Hello,

If you would like to know about resources for hardware sizing Microsoft SQL Server, please see the following link:

http://www.sqlcoffee.com/Tips0012.htm

Regards,

Alberto Morillo
SQLCoffee.com

8/25/2010 8/11/2010
Alberto Morillo Alberto Morillo

SQL Server 2008 setup fails to complete when instance name contains Arabic characters

Please refer to the following KB for further information:

SQL Server 2008 setup fails to complete when instance name contains Arabic characters - http://support.microsoft.com/?kbid=2001727

The error message is:

The following error has occurred:


The MOF compiler could not connect with the WMI server. This is either because of a semantic error such as an incompatibility with the existing WMI repository or an actual
error such as the failure of the WMI server to start.
For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=10.0.1600.22&
EvtType=0x429FDFA3%25400x0A2FBD17%25401211%25401

6/9/2010 9/14/2009
Thomas Lee Ramu_K

3 of 5 26-12-2010 21:19
How to: Install SQL Server 2008 (Setup) http://msdn.microsoft.com/en-us/library/ms143219(SQL.100).aspx

Watch an example video installation and learn more

To watch a comprehensive video example installation of SQL Server 2008 Express with Tools, please visit: http://www.csharpuniversity.com/category/sql-server-
installation-and-config/

A couple of tips:

If you are integrating with ASP.NET and ADO.NET, using Mixed Mode authentication in SQL Server may eliminate some headaches associated with Windows
Authentication. If you use SQL Server Authentication when connecting from ADO.NET, the connection works similar to the way that a connection to Oracle or MySQL
works. You have to pass the user/pass credentials in the connection string.
Use a non-administrative account to run the SQL Server service. I created a regular user account called "SQL Server Service" and configured that account to be used
during the SQL Server installation.

6/9/2010 12/13/2008
Thomas Lee CSharpUniversity.com

SQL server 2008 setup, restart

I'm currently installing SQL Server 2008 and I'm about to complete the installation phase on a clients server, I'm now prompted with the following "You must restart the
computer to complete SQL Server Setup", I cannot restart the server at this time, if I click on OK will this restart the server automatically? (which is what I don't want to
happen) or can this be done at a later date i.e. after hours?

I'm getting a syntax error when attempting to use CASE to set the value of a bit parameter to 0 or 1. Is there any particular reason for this?

[tfl - 09 06 10] Hi - and thanks for your post. You should post questions like this to the MSDN Forums at
http://forums.microsoft.com/msdn or the MSDN Newsgroups at http://www.microsoft.com/communities/newsgroups/en-us/. You are much more likely get a quicker response using the forums than throu
.NET Framework : http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.dotnet.framework
PowerShell : http://groups.google.com/group/microsoft.public.windows.powershell/topics?pli=1
SQL Server : http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.sqlserver%2C&
Visual Studio : http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.vstudio%2C&
Windows : http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.windows%2C&
All Public : http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public%2C&

6/9/2010 10/29/2009
Thomas Lee SQLUser99

VS.NET 2008 Trial Setup failed: cab15.cab file error.

I have downloaded VS.NET 2008 180 days trial.


I have an error during VS.NET 2008 setup:
cab15.cab file. Setup failed.
Please send your techincal help.

I'm getting a syntax error when attempting to use CASE to set the value of a bit parameter to 0 or 1. Is there any particular reason for this?

[tfl - 09 06 10] Hi - and thanks for your post. You should post questions like this to the MSDN Forums at
http://forums.microsoft.com/msdn or the MSDN Newsgroups at http://www.microsoft.com/communities/newsgroups/en-us/. You are much more likely get a quicker response using the forums than throu
.NET Framework : http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.dotnet.framework
PowerShell : http://groups.google.com/group/microsoft.public.windows.powershell/topics?pli=1
SQL Server : http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.sqlserver%2C&
Visual Studio : http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.vstudio%2C&
Windows : http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.windows%2C&
All Public : http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public%2C&

6/9/2010 9/13/2008
Thomas Lee Sachinp

Dynamic, Local Online TV Guide [?]

It's all very well and good - but I am devoid of examples of throughput, results aka the end product and light at night's end.

What can result by virtue of my SQL Server 2008 Express installation?

Server management and business intelligence development are vague descriptions indeed. I would like to see what it is, specifically, that SQL can do (along with my use of
Visual Basic application development).

Can it help me develop a local Online TV guide for my town's Video on Demand cable TV?

I hope so.

I'm getting a syntax error when attempting to use CASE to set the value of a bit parameter to 0 or 1. Is there any particular reason for this?

[tfl - 09 06 10] Hi - and thanks for your post. You should post questions like this to the MSDN Forums at
http://forums.microsoft.com/msdn or the MSDN Newsgroups at http://www.microsoft.com/communities/newsgroups/en-us/. You are much more likely get a quicker response using the forums than throu
.NET Framework : http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.dotnet.framework
PowerShell : http://groups.google.com/group/microsoft.public.windows.powershell/topics?pli=1
SQL Server : http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.sqlserver%2C&
Visual Studio : http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.vstudio%2C&
Windows : http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.windows%2C&
All Public : http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public%2C&

6/9/2010 11/28/2008
Thomas Lee Pete.Moss

Install fails in a compressed directory with an "Attributes do not match" error.

4 of 5 26-12-2010 21:19
How to: Install SQL Server 2008 (Setup) http://msdn.microsoft.com/en-us/library/ms143219(SQL.100).aspx

If you try to install on/in a compressed directory the installation fails with an "Attributes do not match error".

6/9/2010 8/27/2008
Thomas Lee Chief_Plasma

Install fails when VS 2008 sp1 isn't present

True, this is stated elsewhere in the documentation, but in step 5 The System Configuration Checker doesn't warn about this.

The prerequisites installs .NET 3.5 sp1, but if you have VS 2008 installed you don't get the warning until step 23 when The System Configuration Checker is run again.

4/20/2010 9/23/2008
Stanley Roark Leifons

How to install SQL Server 2008 R2

Hello,

If you would like to see a step-by-step guide on how to install SQL Server 2008 R2, please visit the following link:

http://www.sqlcoffee.com/SQLServer2008_0013.htm

Regards,

Alberto Morillo
SQLCoffee.com

3/8/2010
Alberto Morillo

Developer - Wait for VS2008 SP1 RTM!

If you try to install SQL 2008 Dev on a machine with VS2008, you most likely will fail while you need VS2008 SP1 RTM - which is not released yet.

The problem is described in KB956139 (http://support.microsoft.com/kb/956139).

Installing VS2008 SP1 Beta does not help.

1/30/2010 8/8/2008
Thomas Lee Niels Grove-Rasmussen

List repeats

The list under To Install SQL Server 2008 seems to repeat. I could not see any differences at the first look, but if there are differences then the second list needs a title.

[Tai Yee - MSFT] Yes, unfortunately there is an MSDN bug which is causing the list to be duplicated. The source content that the SQL Server documentation team dropped
to MSDN for publishing does not contain this duplication. I filed a bug to MSDN about it, but it looks like the fix will not be available until January 2009, sorry.

More information -- the problem is with lists that are within collapsable sections. If you collapse the list by clicking the list heading ("To Install SQL Server 2008"), one of the
duplicated lists is removed, so that is a workaround until the fix gets applied.

11/6/2008 10/26/2008
Tai Yee - MSFT kozsu

5 of 5 26-12-2010 21:19

Вам также может понравиться