Solved

Connection problem non-standard port Microsoft, Sql Server, 2005, Named Instances

Posted on 2008-10-16
6
426 Views
Last Modified: 2012-05-05
Hi,

We have a server running SQL 2000 & 2005.  The 2005 server has named instances, running on various ports.

If we try to connect to one of the named instances (using query analyzer for example), the connection fails saying the server is unavilable or does not exist.

If we go into the Sql Client Network Utility (or modify the advanced connection properties in an ODBC connection to turn off 'dynamically determine port') and manually set it to the correct port, the connection works.  That's fine, and makes sense.

If we then set client network utility or the odbc connection back to their previous settings, the connection still works.

Can anyone explain this behaviour?  Why do the client machines 'remember' the connection details for subsequent attempts, yet fail to work the first time?

We are trying to find a way to make every connection work first time without having to go through the fudgey process of connecting once manually.

Thanks

Mick
0
Comment
Question by:lambch0p
  • 2
  • 2
6 Comments
 
LVL 39

Accepted Solution

by:
BrandonGalderisi earned 500 total points
Comment Utility
What I can say is that the port may be different each time you start the named instance so you don't want that.  Rather, ensure that the SQL Browser is running on your SQL Server and just attach by name without specifying the port.  Think of SQL Browser as the traffic cop for incoming connections.  It listens on port 1434 I believe and directs you to the correct port for the requested instance.
0
 

Author Comment

by:lambch0p
Comment Utility
Thx Brandon.

The ports are manually specified, so they are always the same when the instance starts.

M
0
 
LVL 39

Expert Comment

by:BrandonGalderisi
Comment Utility
Is the SQL browser service running on that box?
0
 

Author Comment

by:lambch0p
Comment Utility
Hi Brandon,

Sorry for the slow response.  Just checked with our DBA, and the browser service is running.  Also got him to confirm that the ports ARE specified manually.

Thx

M
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

There are some very powerful Data Management Views (DMV's) introduced with SQL 2005. The two in particular that we are going to discuss are sys.dm_db_index_usage_stats and sys.dm_db_index_operational_stats.   Recently, I was involved in a discu…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

771 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

15 Experts available now in Live!

Get 1:1 Help Now