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,684 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
  • 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 68

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 68

Expert Comment

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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I have put this article together as i needed to get all the information that might be available already into one general document that could be referenced once without searching the Internet for the different pieces. I have had a few issues where…
Preface There are many applications where some computing systems need have their system clocks running synchronized within a small margin and eventually need to be in sync with the global time. There are different solutions for this, i.e. the W3…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

746 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

13 Experts available now in Live!

Get 1:1 Help Now