Solved

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

Posted on 2008-10-16
6
429 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
[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
  • 2
6 Comments
 
LVL 39

Accepted Solution

by:
BrandonGalderisi earned 500 total points
ID: 22735964
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
ID: 22774599
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
ID: 22776267
Is the SQL browser service running on that box?
0
 

Author Comment

by:lambch0p
ID: 22892974
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

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Encryption question 2 66
Order by but want it in specific order 2 37
Passing value to a stored procedure 8 112
CROSS APPLY 4 62
INTRODUCTION: While tying your database objects into builds and your enterprise source control system takes a third-party product (like Visual Studio Database Edition or Red-Gate's SQL Source Control), you can achieve some protection using a sing…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

730 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