Solved

error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance ...

Posted on 2009-07-14
6
7,698 Views
Last Modified: 2012-06-27
I have setup Microsoft SQL Server 2005 Express Edition on a Windows 2003 SBS Server running ISA 2004. I get the following error message when I try to connect to the sql server remotely

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: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)

I have enabled remote connections in the configuration of SQL to allow remote connections. I am guessing it has something to do with the ISA 2004 Server stopping the port. Do i need to create an access rule for SQL Server 2005 Express Edition to allow the sql port which I have made 4657. If so how do I do this
0
Comment
Question by:magicsolutions
[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
6 Comments
 
LVL 26

Expert Comment

by:tigin44
ID: 24856929
check the firewall settings. if its enabled then you should create the exclude list entries for the firewall settings.
0
 
LVL 70

Accepted Solution

by:
Qlemo earned 400 total points
ID: 24857572
If you are not setting up that port in the connect string on client, 1433/tcp (standard SQL data port) and 1434/udp (SQL Browser) will be used. The latter is responsible for dynamic negotiation of the non-standard ports with the client.
You will have to
  • fix the port in TCP properties of MSSQL
  • have SQL Browser service running
  • allow for 1434/udp and your MSSQL port in ISA
to have a smooth working set.
0
 
LVL 7

Assisted Solution

by:wilje
wilje earned 100 total points
ID: 24861056
SQL Server 2005 Express is installed as a named instance instead of the default instance.  When you have named instances, the named instance by default uses dynamic port assignment when it starts.  That means, SQL Server will be listening on whatever port was assigned when the service started.
The SQL Browser service is the service that tells clients connecting to the server by instance name (e.g. SERVER\SQLEXPRESS) what port to use.  If the SQL Browser service is not enabled and running, you cannot connect to that instance without specifying the port.
You can either enable the SQL Browser service or set the port for that instance.  If you set the port for that instance, you have to connect using the port number in your connection string.
0
 
LVL 70

Expert Comment

by:Qlemo
ID: 25121634
Isn't that just adding some (useful) details to my post?
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

717 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