Try connecting via <ipaddress>,<portnumber> instead of instance name.
xxx.xxx.xxx.xxx,9999
> Hi, I hope someone may be able to offer some suggestions here
>
[quoted text clipped - 40 lines]
> For help, click:
> http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&
EvtID=-1&LinkId=20476
sloan - 31 Dec 2008 14:52 GMT
Yeah, I was about to say the same thing:
http://www.connectionstrings.com/sql-server-2005
Search for "1433" and you'll find the most anal of the connection strings.
IP Address and Port Number as Eric wrote.
> Try connecting via <ipaddress>,<portnumber> instead of instance name.
> xxx.xxx.xxx.xxx,9999
[quoted text clipped - 51 lines]
>> For help, click:
>> http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&
EvtID=-1&LinkId=20476
sloan - 31 Dec 2008 15:04 GMT
PS
You can also look at this key in the registry to see if anything weird is
going on:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\Client\ConnectTo
I wouldn't change anything manually, but it will show you how Sql Server
stores some of the info.
If there isn't anything at that key, then go to:
COntrol Panel / Admin / ODBC / System DSN (tab)
Add a temporary ODBC source. Use Sql Server, and put parameters in. Make
sure you click "Client Configuration" button and put in a IP address (under
"Server Name" and port number (uncheck the "dynamic port" thing).
The ODBC thing is a cheap way to experiment with how you're connecting to
the database.
If you add a ODBC connection, you can delete it later. But if you add
something, it should show up in the registry under the above key.
Just some tidbits from years past.
> Yeah, I was about to say the same thing:
>
[quoted text clipped - 62 lines]
>>> For help, click:
>>> http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&
EvtID=-1&LinkId=20476
Nigel Ainscoe - 31 Dec 2008 15:31 GMT
Now that is interesting Eric - and thanks to you too Sloan
It connected straight away, which suggests to me that it is some sort of
DNSy type of name resolution problem. I will look at the registry settings
that Sloan mentioned and see if that gives me any clues.
I'll let you know.
Regards,
Nigel Ainscoe
> Try connecting via <ipaddress>,<portnumber> instead of instance name.
> xxx.xxx.xxx.xxx,9999
[quoted text clipped - 51 lines]
>> For help, click:
>> http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&
EvtID=-1&LinkId=20476
Erland Sommarskog - 31 Dec 2008 15:55 GMT
> Now that is interesting Eric - and thanks to you too Sloan
>
[quoted text clipped - 3 lines]
>
> I'll let you know.
To be able to translate the instance name to a port, you need to have
contact with the SQL Brower Service. This service must be running, and
you must have UDP port 1434 open.

Signature
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
Nigel Ainscoe - 31 Dec 2008 16:13 GMT
Erland, yo da maan (as a stereotypical American cousin might say),
connection by name is working a treat.
You learn something new every day. Not one of the online articles I have
googled has mentioned that the browser service listens on 1434 - or maybe I
just didn't see it.. :-(
Thanks a lot
Nigel Ainscoe
>> Now that is interesting Eric - and thanks to you too Sloan
>>
[quoted text clipped - 8 lines]
> contact with the SQL Brower Service. This service must be running, and
> you must have UDP port 1434 open.