Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQL Server connection problem using Windows Authentication


SQL Server connection problem using Windows Authentication

Author
Message
lisafox.it
lisafox.it
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
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
sqlbuddy123
sqlbuddy123
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1212 Visits: 2243
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
Perry Whittle
Perry Whittle
SSCrazy Eights
SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)

Group: General Forum Members
Points: 8826 Visits: 16562
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" ;-)
lisafox.it
lisafox.it
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
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
lisafox.it
lisafox.it
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
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.
sqlbuddy123
sqlbuddy123
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1212 Visits: 2243
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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search