Olaf Doschke
Programmer
Now this is a hard nut to crack:
We had Problems to login to an SQL Server 2008 R2 Server via these two connection strings:
But we could connect via the direct IP Adress instead of the server name.
So the issue for sure is a name resolving issue, DNS service. Indeed we found two DNS services running in the domain, but shutting the new (unintended) one down also doesn't resolve the issue. Just as a side note: The SQL Server is quite new on a new Win2008R2 Server.
So far this is not connected to SQL Server (pardon the pun), but now about the hard to crack nut - I wonder about the error messages I got from SQL Server:
1. Connection String (as above, via Windows Authentication) returns Error 18452 - "The user is not associated with a trusted SQL Server connection."
2. Connection String (as above, via SQL Server Authentication) Error 18456 - "Login failed for user '<user name>'."
In the second case the SQL Server Error log tells, error state is 8, password mismatch, but the same password works local and with a remote connection using IP-Adress instead of Servername.
So there are two questions:
1. How does DNS name resolving influence the domain association of the client trying to log in?
2. How does DNS name resolving influence the password transfered to SQL Server, so it's coming in wrong?
We can - for now - live with an IP in the connection string, as the server has a static IP, but it would be nice to know what's going on and how to resolve the issue (sorry for yet another pun).
Bye, Olaf.
We had Problems to login to an SQL Server 2008 R2 Server via these two connection strings:
Code:
1. Driver={SQL Server Native Client 10.0};Server=servername;DATABASE=tempdb;Trusted_Connection=Yes
2. Driver={SQL Server Native Client 10.0};Server=servername;DATABASE=tempdb;Trusted_Connection=No;Uid=...;Pwd=...
But we could connect via the direct IP Adress instead of the server name.
So the issue for sure is a name resolving issue, DNS service. Indeed we found two DNS services running in the domain, but shutting the new (unintended) one down also doesn't resolve the issue. Just as a side note: The SQL Server is quite new on a new Win2008R2 Server.
So far this is not connected to SQL Server (pardon the pun), but now about the hard to crack nut - I wonder about the error messages I got from SQL Server:
1. Connection String (as above, via Windows Authentication) returns Error 18452 - "The user is not associated with a trusted SQL Server connection."
2. Connection String (as above, via SQL Server Authentication) Error 18456 - "Login failed for user '<user name>'."
In the second case the SQL Server Error log tells, error state is 8, password mismatch, but the same password works local and with a remote connection using IP-Adress instead of Servername.
So there are two questions:
1. How does DNS name resolving influence the domain association of the client trying to log in?
2. How does DNS name resolving influence the password transfered to SQL Server, so it's coming in wrong?
We can - for now - live with an IP in the connection string, as the server has a static IP, but it would be nice to know what's going on and how to resolve the issue (sorry for yet another pun).
Bye, Olaf.