Compartilhar via


Walkthrough: Installing and Configuring SQL Server 2008 R2 Express with Advanced Services

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

The WCF RIA Services walkthroughs assume that you have SQL Server 2008 and the AdventureWorks database installed. SQL Server 2008 R2 Express with Advanced Services is the minimum required version for the installation and use of the required AdventureWorks databases. The normal SQL Server 2008 R2 Express version does not have the required services. This walkthrough outlines the steps needed to create an instance of SQL Server 2008 R2 Express with Advanced Services.

The procedure for installing the AdventureWorks database is outlined in the Walkthrough: Installing the AdventureWorks OLTP and LT sample databases topic.

Warning

Visual Studio 2010, the Silverlight Runtime and SDK, and WCF RIA Services and the WCF RIA Services Toolkit must also be installed to use the RIA Services walkthroughs. The installation points for these programs are provided in the Prerequisites for WCF RIA Services topic.

Warning

The AdventureWorks database installer only functions with an instance of SQL Server that was newly created with SQL Server 2008 R2 Express with Advanced Services or any retail version of SQL Server 2008 R2. It does not work properly on upgraded instances.

Installing and Configuring SQL Server 2008 R2 Express with Advanced Services

Tip

It is recommended that for these walkthroughs you install a completely new instance of SQL Server 2008 R2 Express with Advanced Services.

To install a new instance of SQL Server 2008 R2 Express

  1. Download the correct version of SQL Server 2008 R2 Express with Advanced Services for your OS architecture (x86 or x64).

  2. When the download completes, click on Run

    After the Installer extracts the required files, the SQL Server Installation Center appears.

  3. In the left panel, select Installation, then click New installation or add features to an existing installation.

    The SQL Server 2008 R2 Setup dialog appears, initializes the setup files, and Runs a rule check.

  4. On the Installation Type screen, select New installation or add shared features and click Next.

  5. Check I accept the license terms, and click Next.

    Note

    A restart might be required at this point if files affected have operations pending.

  6. Click Select All, and then click Next.

  7. If this is the first installation of SQL Server on this machine, you can select Default instance, otherwise select Named instance.

    Type in an instance name (that you can remember), and click Next.

    Tip

    SQL Server instance names are generally written in all caps, as a single word.

  8. Leave the default settings for Server Configuration and click Next.

  9. On the Account Provisioning tab, select (the default) Windows authentication mode, and click Add Current User.

  10. On the FILESTREAM tab, check Enable FILESTREAM for Transact-SQL access, check Enable FILESTREAM for file I/O streaming access, and click Next.

  11. Leave the default settings for Reporting Services Configuration and click Next.

  12. Leave the default settings for Error Reporting and click Next.

  13. When the installation completes, click Next and then click Close.

Now that the installation of the new instance is complete, it needs to be configured. These configuration settings enable the connections needed to access the SQL Server Instance.

Configure Your New Instance of SQL Server for the Installation of the AdventureWorks Databases

  1. Click on the Start Menu, select All Programs, Microsoft SQL Server 2008 R2, Configuration Tools, and click SQL Server Configuration Manager.

    The SQL Server Configuration Manager window will open.

  2. In the left pane select SQL Server Services, and right click on your SQL Server (<InstanceName>) instance. In the pop up menu select Properties.

    Important

    "<InstanceName>" is a placeholder and needs to be replaced with the actual name of the instance you are working with.

    The SQL Server (<InstanceName>) Properties dialog is now open.

  3. On the FILESTREAM tab ensure that Enable FILESTREAM for Transact-SQL access and Enable FILESTREAM for file I/O streaming access are both checked.

  4. Click OK.

  5. Back in the SQL Server Configuration Manager, ensure that SQL Full-test Filter Daemon Launcher (<InstanceName>) is running. If it is not running, right click on it, and select Start.

  6. In the left pane of the SQL Server Configuration Manager, expand SQL Server Network Configuration, and click Protocols for <InstanceName>.

  7. Double-click on Named Pipes, and in the Named Pipes Properties dialog that appears, select Yes in the dropdown next to Enabled. Click OK.

  8. Repeat the previous step for TCP/IP protocol as well to enable it. Accept the default values for the Keep Alive and Listen All properties.

  9. In the left pane of the SQL Server Configuration Manager, select SQL Server Services again, right click on SQL Server (<InstanceName>) in the right pane, and select Restart.

    Tip

    It is best practice, after modifying the configuration of an SQL Server instance to restart the instance, so that the changes which were made are available.

The installation and configuration of your SQL Server 2008 R2 Express with Advanced Services instance is now complete. You are now ready to install the AdventureWorks OLTP and LT sample databases. The step for installing the database is provided in the Walkthrough: Installing the AdventureWorks OLTP and LT sample databases topic.