dbTalk Databases Forums  

Sql server authentication not set

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Sql server authentication not set in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Raghuraman
 
Posts: n/a

Default Sql server authentication not set - 05-03-2005 , 01:27 PM






Hi ,

am new to sqlserver 2000.I want to connect to my sqlserver which is a
remote machine.I want to connect to sqlserver by sqlserver
authentication.Even though i added the available sqlserver in my
client as it shows, it is connected only by windows[nt)
authentication.Why it is showing so ?.

* But it is connected via Query analyzer in sqlauthentication.


I want to connect this sqlserver to my asp.net .

Is the connection string as follows is right ,if no pls correct me,
---------
Persist Security Info=False;Integrated
Security=SSPI;database=NORTHWIND;server=IISSERVER; User id=sa"
---------

It shows the error .

Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.

I ve'nt mentioned any authentication mechanisym in my query string
..From the error it defaultly accepts the NT authentication.How can i
over ride this to sql authentication.

Pls tell me the procedures should be made to connect to sqlserver in
sql authentication.

Thx & Regards
Raghu

Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Sql server authentication not set - 05-03-2005 , 04:34 PM






Raghuraman (raghuraman_ace (AT) rediffmail (DOT) com) writes:
Quote:
am new to sqlserver 2000.I want to connect to my sqlserver which is a
remote machine.I want to connect to sqlserver by sqlserver
authentication.Even though i added the available sqlserver in my
client as it shows, it is connected only by windows[nt)
authentication.Why it is showing so ?.

* But it is connected via Query analyzer in sqlauthentication.


I want to connect this sqlserver to my asp.net .

Is the connection string as follows is right ,if no pls correct me,
---------
Persist Security Info=False;Integrated
Security=SSPI;database=NORTHWIND;server=IISSERVER; User id=sa"
---------

It shows the error .

Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.

I ve'nt mentioned any authentication mechanisym in my query string
You've mentioned twice: Integrated Security and User id. Of which the
first takes precendence, so rip that out of the connection string.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp


Reply With Quote
  #3  
Old   
Raghu Raman
 
Posts: n/a

Default Re: Sql server authentication not set - 05-09-2005 , 01:49 AM



Dear Erland Sommarskog,

Thx 4 that.Though i 've eliminated, the user id from my connection
string since , it has the integrated security,It again tells the same
error that the sql server does not exist.

pls tell me what to do.

Regards
Raghu




*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #4  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Sql server authentication not set - 05-09-2005 , 02:27 AM



Raghu Raman (raghuraman_ace (AT) rediffmail (DOT) com) writes:
Quote:
Thx 4 that.Though i 've eliminated, the user id from my connection
string since , it has the integrated security,It again tells the same
error that the sql server does not exist.
The error message you posted was "Login failed for user 'NT
AUTHORITY\ANONYMOUS LOGON'". If you are now getting "SQL Server does not
exist or access denied", you are further from your goals than before,
because you are not even reaching the server. In this case, the first
thing to do is make sure that SQL Server is running.

These sort of problems are very difficult to diagnose from a distance,
and with terse information, it's even more difficult.
--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.