Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SQL Server connection problem using Windows Authentication Expand / Collapse
Author
Message
Posted Thursday, March 27, 2014 3:59 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, March 28, 2014 3:42 PM
Points: 3, Visits: 5
Hi Folks,

Problem - Unable to connect to SQL Server 2008 using Windows Authentication from Windows XP Client Systems. The SQL Server is configured in a NEC Cluster. The problem occurs only when I connect to the Virtual cluster Database Name/IP Address. But I am able to connect using hostname(SQL_Primary)/IP Address(192.168.10.101) using windows Authentication.

Observation - The virtual hostname is registered in DNS and it is resolving without any problem. But, when I was trying various options, I figured out by adding the following entry to 'c:\windows\system32\drivers\etc\hosts' file in my Windows XP client, it works fine.

192.168.10.203 "SQL_Virtual" SQL_Virtual.ABC.COM
"SQL_Virtual" is my Virtual Failover Database name and it is not the default database instance name.
Questions:

1. I couldn't figure out why it is working with the above entry in my host file?

2. How to add this in DNS server?

Thanks guys,

Lisa
Post #1555687
Posted Thursday, March 27, 2014 5:53 PM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Friday, August 29, 2014 1:14 PM
Points: 1,194, Visits: 2,217
What error do you get when you try to connect to the Virtual Instance ? And do you use static port for the SQL instance or dynamic ports ?

--
SQLBuddy
Post #1555710
Posted Friday, March 28, 2014 6:34 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 9:47 AM
Points: 6,306, Visits: 13,605
lisafox.it (3/27/2014)
Observation - The virtual hostname is registered in DNS and it is resolving without any problem.


What command are you using to test the name resolution?


lisafox.it (3/27/2014)
But, when I was trying various options, I figured out by adding the following entry to 'c:\windows\system32\drivers\etc\hosts' file in my Windows XP client, it works fine.

implies that name resolution is possibly not ok


[quote]lisafox.it (3/27/2014)
2. How to add this in DNS server?/quote]
You will need to consult your system admin to check\complete this for you.

One thing to check on the client is the DNS search suffix list on the NIC advanced properties, ensure that any domains you need to search are listed here


-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs"
Post #1555862
Posted Friday, March 28, 2014 12:15 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, March 28, 2014 3:42 PM
Points: 3, Visits: 5
What error do you get when you try to connect to the Virtual Instance ?

"Cannot connect to SQL_VIRTUAL
Additional Information
Cannot generate SSPI context (Microsoft SQL Server)"

And do you use static port for the SQL instance or dynamic ports ?

Port 1433

Lisa
Post #1556103
Posted Friday, March 28, 2014 12:32 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, March 28, 2014 3:42 PM
Points: 3, Visits: 5
What command are you using to test the name resolution?
C:\> Nslookup SQL_Virtual
Resolves both forward lookup and reverse lookup
C:\> NSlookup SQL_Virtual.ABC.COM
Resolves both forward lookup and reverse lookup
implies that name resolution is possibly not ok[i]

I dont disagree. But, I am wondering why only for Windows Authentication in SQL Enterprise Manager and also in ODBC DSN configuration? The name resolution seems to be working fine while using SQL Authentication .
One thing to check on the client is the DNS search suffix list on the NIC advanced properties, ensure that any domains you need to search are listed here
I tried adding abc.com, but it did not help.
Post #1556109
Posted Friday, March 28, 2014 2:09 PM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Friday, August 29, 2014 1:14 PM
Points: 1,194, Visits: 2,217
lisafox.it (3/28/2014)
What error do you get when you try to connect to the Virtual Instance ?

"Cannot connect to SQL_VIRTUAL
Additional Information
Cannot generate SSPI context (Microsoft SQL Server)"

And do you use static port for the SQL instance or dynamic ports ?

Port 1433

Lisa


Could you check the SQL Server Errors logs for a more detailed error message ? Usually if you check this message or a bunch of messages before this login failure you can get some clue.

Also check the Windows system\application log for any messages when this error occurs.

BTW, Is this a new cluster installation or it has been working for some time and started getting this issue recently ?

--
SQLBuddy
Post #1556144
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse