Howto configure sql express to allow remote connections

This is fifth in the series – MOSS Scripted Installation.

In previous posts, I wrote about pre-requisites and a brief overview on config.xml. Next we saw, how MOSS 2007 could be installed silently with SQL Server 2005 Express Edition.

It was a small step. This post is about allowing remote connections to SQL Server 2005 Express Edition. If you ever need to move sql database, attach pre-configured database or detach existing database, you will need to enable remote connections in sql server 205 express edition. It is disabled by default.

You can do this using SQL Server Area Configuration.

Configuring SQL Server Area Configuration for remote connections

To do this, follow these steps:

1.Click Start, point to Programs, point to Microsoft SQL Server 2005, point to Configuration Tools, and then click SQL Server Surface Area Configuration.

2.On the SQL Server 2005 Surface Area Configuration page, click Surface Area Configuration for Services and Connections.

3.On the Surface Area Configuration for Services and Connections page, expand Database Engine, click Remote Connections, click Local and remote connections, click the appropriate protocol to enable for your environment, and then click Apply.
Note Click OK when you receive the following message:

Changes to Connection Settings will not take effect until you restart the Database Engine service.

4.On the Surface Area Configuration for Services and Connections page, expand Database Engine, click Service, click Stop, wait until the MSSQLSERVER service stops, and then click Start to restart the MSSQLSERVER service.

Enabling SQL Browser Service

Additionally, you need to enable the SQL Browser Service to make remote connections.

Warning These steps may increase your security risk. These steps may also make your computer or your network more vulnerable to attack by malicious users or by malicious software such as viruses.

1.Click Start, point to Programs, point to Microsoft SQL Server 2005, point to Configuration Tools, and then click SQL Server Surface Area Configuration.

2.On the SQL Server 2005 Surface Area Configuration page, click Surface Area Configuration for Services and Connections.

3.On the Surface Area Configuration for Services and Connections page, click SQL Server Browser, click Automatic for Startup type, and then click Apply.
Note When you click the Automatic option, the SQL Server Browser service starts automatically every time that you start Microsoft Windows.

4.Click Start, and then click OK.

These are manual steps. If you want to script both these steps, watch out for the next post.

Related KB

join our mailing list to get our free newsletter
* indicates required field

6 Comments so far »

  1. How to enable SQL Browser Service using a script | Alpesh Nakars' Blogosphere said,

    Wrote on September 25, 2007 @ 12:07 am

    [...] to configure SQL Server 2005 Express edition to allow remote connections and also enable SQL Browser [...]

  2. Carl Taylor said,

    Wrote on December 9, 2007 @ 10:06 am

    This really helped and fixed the problem. Other web references had you doing a lot of manual things. I didn’t see the ability to set the authentication to mixed mode or to enable remote connections in the installation dialogs. If it wasn’t there, it should have been.

    Thanks for the valuable post

  3. MOSS Command Line Installation Round Up | Alpesh Nakars' Blogosphere said,

    Wrote on March 27, 2008 @ 5:51 am

    [...] 5 Howto configure sql express to allow remote connections [...]

  4. rg said,

    Wrote on August 24, 2008 @ 12:39 am

  5. Chris said,

    Wrote on May 11, 2009 @ 9:55 am

    Thanks a lot! Really helped setting up our sql server after a rebuild.

  6. Alpesh said,

    Wrote on May 27, 2009 @ 10:19 pm

    No worries. Glad it helped.

Comment RSS · TrackBack URI

Leave a Comment

Name: (Required)

E-mail: (Required)

Website:

Comment:

Microsoft SharePoint 2010 Unleashed