all groups > sql server odbc > june 2005 >
You're in the

sql server odbc

group:

strange ODBC connection problems


strange ODBC connection problems Patrick Peters
6/27/2005 12:50:36 PM
sql server odbc:
We have a mysterious problem connecting to a SQL database with ODBC. Here's
a little background on our environment:
- We're connecting to a named instance of SQL 2000 on a Win 2003 Server
cluter. The virtual server name and the instance name are the same (so the
nomenclature to describe the instance would be something like "FRED\FRED".
- The client is Windows XP, SP1.
- We're trying to set all this up without using WINS, so there are no WINS
resolutions for for the server cluster or any of its virtual servers.

So, we try to set up a System DSN with a connect string that looks like
"FRED.TEST.DOM\FRED" and ODBC can't connect. I can use nslookup to resolve
FRED.TEST.DOM without a problem. I can ping FRED.TEST.DOM. I can
substitute FRED's IP address in the server name field ("10.20.30.40\FRED")
and it works like a charm.

I've set up a sniffer to see what's going on. When I specify
"FRED.TEST.DOM\FRED" the client is trying its best to resolve FRED using
WINS, broadcasting for name resolution, etc. It's completely ignoring the
fact that I gave it a fully qualified domain name to work with. If I could
just beat ODBC into doing DNS resolution, I'd be in great shape.

I've looked around for examples of how to connect to a named instance using
a DNS name, but I can't find an example of this anywhere.

Does anyone have an idea?

Thanks

Pat
patrick.peters (AT) orametrix.com

Re: strange ODBC connection problems Terry
6/27/2005 1:33:32 PM
Do you have the netbios protocol installed on the SQL server? IIRC it is
required when using named pipes as a connection method.

--Terry

[quoted text, click to view]

Re: strange ODBC connection problems Terry
6/27/2005 1:42:15 PM
http://support.microsoft.com/?kbid=839269

[quoted text, click to view]

Re: strange ODBC connection problems Patrick Peters
6/27/2005 1:53:25 PM
We're using TCP for our connection, not named pipes.

Also, I should explain why we're trying to avoid using WINS. Everything I
read says that WINS is for backward compatibility. This is a new server, so
we're trying to go in "clean" so we don't have to worry about divorcing it
from WINS someday.

Thanks

Pat

[quoted text, click to view]

Re: strange ODBC connection problems Patrick Peters
6/27/2005 1:55:37 PM
We're running XP SP1 on the client--no firewall.

Pat

[quoted text, click to view]

Re: strange ODBC connection problems Terry
6/27/2005 2:30:22 PM
Cluster Nodes and Windows Domains

All nodes in the cluster must be members of the same domain and able to
access a domain controller and a Domain Name System (DNS) server, as well as
a WINS server. The nodes should not be configured as domain controllers if
you are going to install SQL Server, as you may encounter some problems,
including the fact that domain controller functionality (such as Active
Directory) is not cluster aware, so all information will be local. This
impacts things such as a directory enabled program's ability to publish
under the virtual server's computer object, which does not work in a
cluster. A WINS server is still required for Windows 2000/SQL Server 2000 in
a clustered environment if name resolution of virtual resource is required.

http://www.microsoft.com/technet/prodtechnol/sql/2000/maintain/failclus.mspx

[quoted text, click to view]

Re: strange ODBC connection problems Patrick Peters
6/27/2005 2:37:02 PM
Thanks for the pointer. I had missed that part. We're using Windows Server
2003, but I suspect the issues are the same.

Guess I'm gonna have to use WINS anyway. Bummer...

Pat

[quoted text, click to view]

AddThis Social Bookmark Button