Solved

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

Posted on 2011-09-17
2
238 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
ID: 36554524
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
ID: 36554730
Many thanks.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

943 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

7 Experts available now in Live!

Get 1:1 Help Now