Solved

Error Connecting Remotely to SQL Server 2008 Express on a Virtual Server

Posted on 2011-09-17
2
237 Views
Last Modified: 2012-05-12
I have opened a Virtual Server Account with a Web hosting company. On the Virtual Server that I have been provided by this Company I have installed SQL Server 2008 Express Edition and put a Database on this Server. I would like to be able to connect to this Server Remotely, but when I try doing this I get the following error:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

I have spoken to the technical support for my Virtual Server and they have advised me the following:
You will have to make sure that port 1433 is open on firewall and make sure that you set the port to static MSSQL configuration for TCP/IP connection and set it to 1433.

I have tried doing the above (opening port 1433), but I am not sure how to do this and whether I have been able to do this or not. I am also not sure how to set the port to static MSSQL configuration for TCP/IP connection and set it to 1433.
I would be grateful for help with this.
Please note that the Operating System on my Virtual Server is Windows Server 2008 R2 Standard.
0
Comment
Question by:FaheemAhmadGul
2 Comments
 
LVL 5

Accepted Solution

by:
VENKAT KOKULLA earned 300 total points
Comment Utility
To open a port in the Windows firewall for TCP access
 
1.
On the Start menu, click Run, type WF.msc, and then click OK.

2.
In the Windows Firewall with Advanced Security, in the left pane, right-click Inbound Rules, and then click New Rule in the action pane.

3.
In the Rule Type dialog box, select Port, and then click Next.

4.
In the Protocol and Ports dialog box, select TCP. Select Specific local ports, and then type the port number of the instance of the Database Engine, such as 1433 for the default instance. Click Next.

5.
In the Action dialog box, select Allow the connection, and then click Next.

6.
In the Profile dialog box, select any profiles that describe the computer connection environment when you want to connect to the Database Engine, and then click Next.

7.
In the Name dialog box, type a name and description for this rule, and then click Finish.

 
To open access to SQL Server when using dynamic ports
 
1.
On the Start menu, click Run, type WF.msc, and then click OK.

2.
In the Windows Firewall with Advanced Security, in the left pane, right-click Inbound Rules, and then click New Rule in the action pane.

3.
In the Rule Type dialog box, select Program, and then click Next.

4.
In the Program dialog box, select This program path. Click Browse, and navigate to the instance of SQL Server that you want to access through the firewall, and then click Open. By default, SQL Server is at C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Binn\Sqlservr.exe. Click Next.

5.
In the Action dialog box, select Allow the connection, and then click Next.

6.
In the Profile dialog box, select any profiles that describe the computer connection environment when you want to connect to the Database Engine, and then click Next.

7.
In the Name dialog box, type a name and description for this rule, and then click Finish.
0
 

Author Closing Comment

by:FaheemAhmadGul
Comment Utility
Many thanks.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now