![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
We have the following in the hosts file 10.10.9.2 lvac03dmz 10.10.9.20 lvac09dmz 10.10.9.2 dmzserver We can connect to the database (same on both .2,.20 getting ready for migrating to new server we want to change the alias dmzserver in the future to .20) using any of the following in the connection string 10.10.9.2\sqlexpress, lvac03dmz\sqlexpress, 10.10.9.20\sqlexpress, lvac09dmz\sqlexpress it will not connect using dmzserver\sqlexpress |
|
Also on some workstations all of the above works. only on a couple of 4 xp workstations does it fail. |
#3
| |||
| |||
|
|
firebalrog (barrettpa... (AT) gmail (DOT) com) writes: We have the following in the hosts file 10.10.9.2 lvac03dmz 10.10.9.20 lvac09dmz 10.10.9.2 dmzserver We can connect to the database (same on both .2,.20 getting ready for migrating to new server we want to change the alias dmzserver in the future to .20) using any of the following in the connection string 10.10.9.2\sqlexpress, lvac03dmz\sqlexpress, 10.10.9.20\sqlexpress, lvac09dmz\sqlexpress it will not connect using dmzserver\sqlexpress And the error message is? Also on some workstations all of the above works. only on a couple of 4 xp workstations does it fail. Which version of SQL Server? What client software is there on the client? One thing I can think of is that there are SQL Server specific alias point in the wrong direction. Run CLICONFG.EXE on the problematic machines and see what you find. -- Erland Sommarskog, SQL Server MVP, esq... (AT) sommarskog (DOT) 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/prodinf...ons/books.mspx |
#4
| |||
| |||
|
|
At home now but as I recall the error message was a login timeout. |
|
But what is interesting is the fact that it connects to both machines when using the specific IP or the true server name but fails when you use the dmzserver alias that is in hosts or as a cname in the dns server. |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
Well cliconfig shows working computer is identical to the ones that can only connect by the actual computer name or IP. No alias setup, all dll version numbers and dates are identical. Just in case it was unclear dmzserver is an additional entry in the hosts file or as a cname in the dns server. On some computers if you use dmzserver as the server name in the connection string it will connect and on some others it still will not connect. But the IP is identical to the working host entries or A records in the dns server. The application works on all computers if you use lvac03dmz but will not work on some of the computers if you use dmzserver. Is it possible that there is some other windows dll at play here that is not related directly to the sql native client? All of the workstations are XP with all security patches and sp3 installed. |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
Exact error message is as follows. Unhandled Execption has occurred.... A network-related or instance-specific error occurred while establishing a connection to sqlserver the server was not found ow was not accessible. Verify that the instance name is correct and that sql server is configured to allow remote connections (Provider: Named pipes) Provider Error 40- Could not open a connection to sql server). |
#9
| |||
| |||
|
|
firebalrog (barrettpaulj (AT) gmail (DOT) com) writes: Exact error message is as follows. Unhandled Execption has occurred.... A network-related or instance-specific error occurred while establishing a connection to sqlserver the server was not found ow was not accessible. Verify that the instance name is correct and that sql server is configured to allow remote connections (Provider: Named pipes) Provider Error 40- Could not open a connection to sql server). OK, so this means that the machines are not able to make contact with SQL Server. Since PING seems to work, this means they cannot be confused about where the machine is located. (But doublecheck that PING DMZSERVER actually gives the correct IP address.) The one thing I could guess on is some network restriction. Maybe there is some funny Active Directory setting which bans contact to DMZSERVER for these machines? (But what I know about Active Directory fits on a fingernail - and leaves most of the nail empty.) The error message says Named Pipes, could that be a clue? Then again, I think Named Pipes usually appears in these error messages, because it is the last attempt. Did you try connecting directly on the IP address to test the effect of that? -- Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) 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/prodinf...ons/books.mspx |
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |