Setup SQL Server for TFS

Visual Studio Team Foundation Server 2012 v4

SQL R2 installation

How to set up SQL Server

First you install and configure SQL Server 2008 R2 for Team Foundation Server with reporting. Then you apply service pack 1 for SQL Server 2008 R2 and configure Windows Server to recover analysis services on failure.


Make sure the default collation settings in SQL Server match the existing settings from the SQL Server instance that you're migrating from. For more information, see: SQL Server Collation Requirements for Team Foundation Server

Required Permissions

To perform these procedures, you must be a member of the Administrators security group on Windows Server.

Install SQL Server

  1. Launch setup.exe on the SQL Server DVD.

  2. On the SQL Server Installation Center page, choose Installation, and then choose New installation or add features to an existing installation.

    SQL Server New installation
  3. On the Setup Support Rules page, choose OK.

  4. On the Product Key page, type your product key or specify a free edition and then choose Next.

  5. On the License Terms page, accept the license agreement and choose Next.

  6. On the Setup Support Files page, choose Install.

  7. On the Setup Support Rules page, choose Next.

    Safely ignore the firewall warning

    A Windows Firewall warning might appear here, but you can safely ignore this warning. TFS automatically adds an exception for Windows Firewall during upgrade.

  8. On the Setup Role page, choose SQL Server Feature Installation and then choose Next.

  9. On the Feature Selection page, select the check boxes for the following components and then choose Next:

    SQL Server feature selection for TFS
    • Database Engine Services (required for Team Foundation Server)

    • Full-Text Search (required for Team Foundation Server)

    • Analysis Services (required for reporting)

    • Reporting Services (required for reporting)

    • Management Tools - Basic (Management Tools -Complete automatically selects itself when you click Basic and this is fine)

  10. On the Installation Rules page, choose Next.

  11. On the Instance Configuration page, choose Default instance. If you choose Named instance, type the name of the instance. Choose Next.

    Choose the default instance
  12. On the Disk Space Requirements page, choose Next.

  13. On the Server Configuration page, choose Use the same account for all SQL Server services, and enter NT AUTHORITY\NETWORK SERVICE in Account Name for every service.

    Use Network Service for all SQL Server services
  14. In the Startup Type column, verify that Automatic appears for all services that you can edit, and then choose Next.

  15. On the Database Engine Configuration page, choose Windows authentication mode, choose Add Current User, and then choose Next.

    Choose Windows authentication mode
  16. On the Analysis Services Configuration page, choose Add Current User, and then choose Next.

  17. On the Reporting Services Configuration page, choose Install the native mode default configuration, and then choose Next.

    Configure Reporting Services
  18. Optional) On the Error and Usage Reporting page, specify whether to send information about errors and then choose Next.

  19. On the Installation Rules page, choose Next.

  20. On the Ready to Install page, review the list of components to be installed, and then choose Install.

    The Installation Progress page shows the status of each component.

  21. On the Complete page, choose Close.


Update SQL Server 2008 R2

TFS 2012.4 introduces a new SQL Server requirement for TFS 2012: SQL Server 2008 R2 now requires service pack 1 (SP1). Previously, SP1 was only strongly recommended for some SQL Server editions, but now all SQL Server 2008 R2 editions require SP 1.

Configure Analysis Services to recover on failure

Analysis Services properties

You should configure the Windows service for Analysis Services to restart itself if it fails.

To configure Analysis Services to recover

  1. Open the Services control panel (Start >Administrative tools >Services).

  2. Right-click the Windows service for SQL Server Analysis Services (MSSQLSERVER), and then choose Properties. If you are using a named instance of Analysis Services, the instance name appears in parenthesis

    Select the Windows service for Analysis Services
  3. Choose Recovery.

  4. In the First failure list, choose Restart the Service.

  5. In the Second failure list, choose Restart the Service.

  6. In the Subsequent failures list, choose Restart the Service, and then choose OK.

Next Step: Set up SharePoint

If you don't skip the portal setup, you have two options for how to deal with SharePoint (if you don't want to deal with SharePoint, you can move on to step 4, Back up and Restore Data for TFS):

Use the same SharePoint site for TFS that you have right now

If your old SharePoint server is still up and running, you can continue to use it. Go to the SharePoint server and uninstall old extensions, and then install the new extensions before you upgrade TFS. If SharePoint and the previous version of TFS were on the same computer, you have to uninstall the entire TFS 2010 application tier. In the new upgraded configuration, the only TFS component on the SharePoint server will be the TFS extensions for SharePoint.

For more information, see: Use the same SharePoint site for TFS that you have right now

install new TFS extensions

Move SharePoint to New Hardware for TFS

New for this version of TFS, you can install SharePoint Foundation using the TFS extensions for SharePoint wizard. The TFS wizard will install a fresh copy of SharePoint using the installation of SQL Server you just set up, and then configure the TFS extensions for the new installtion of TFS. After you install SharePoint, you'll detach its content database to prepare for the migration of the data from your previous SharePoint installation in step 4, Back up and Restore Data.

For more information: Move SharePoint to New Hardware for TFS

install new SharePoint 2010