Configuring Remote Access to SQL 2005 on Windows 2003 Server
I’ve recently had to install and setup SQL 2005 Express edition on a Windows 2003 server. My goal was to remotely access the SQL 2005 instance for a few applications I’ve been building. The Windows firewall was preventing me from accessing my databases remotely so I had to do some changes to it to fix this issue. Below are the steps I took to fix this issue:
First, you’ll need to get the instance id of your SQL 2005 Server. Follow the steps outlined below to accomplish this:
- Click on Start
- Click on SQL Server Configuration Manager
- Select Server 2005 Services
- Right click SQL Server and choose ‘Properties’
- Click on the Advanced Tab
- Take note of the Instance ID as you’ll need this when adding exceptions on the firewall
- Click on OK
- Go to SQL Server Configuration Manager
- Select SQL Server 2005 Services
- Right click SQL Server Browser and choose properties
- Click on the Service Tab
- Choose Automatic for the Start Mode
- Click on OK
To allow remote connections, you must add a few exceptions to the firewall. To create an exception for SQL 2005 follow these steps:
- Click on Start -> Control Panel -> Windows Firewall
- Click on the Exceptions Tab
- Click on Add Program
- Browse to c:\Program Files\Microsoft SQL Server\MSQL.1\MSSQL\Binn\sqlserv.exe (where MSSQL.1 is the name of your Instance ID).
- Click on OK
To add an exception for the SQL Server Browser Service in the Firewall, follow these steps:
- In the Windows Firewall, click on the Exceptions tab
- Click on Add Program
- Browse to c:\Program Files\Microsoft SQL Server\90\Shared\sqlbrowser.exe
- Click on OK
Remote Access thru TCP/IP
If you need to access the sql server remotely by using TCP/IP, follow the steps outlined below:
- Click on Start
- Click on SQL Server Configuration Manager
- Expand the SQL Server 2005 Network Configuration
- Right click TCP/IP and choose ‘Enable’
- Select SQL Server 2005 Services
- Right click the SQL Server (INSTANCENAME) and choose ‘Restart’
Leave a comment