Solved

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

Posted on 2011-09-17
2
241 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
Introduction: When running hybrid database environments, you often need to query some data from a remote db of any type, while being connected to your MS SQL Server database. Problems start when you try to combine that with some "user input" pass…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

726 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