Solved

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

Posted on 2011-09-17
2
242 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
 
LVL 1

Author Closing Comment

by:FaheemAhmadGul
ID: 36554730
Many thanks.
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Naughty Me. While I was changing the database name from DB1 to DB_PROD1 (yep it's not real database name ^v^), I changed the database name and notified my application fellows that I did it. They turn on the application, and everything is working. A …
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…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

707 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