Re: SQL Server uses Windows authentication
From: Bob Barrows [MVP] (reb01501_at_NOyahoo.SPAMcom)
Date: 09/16/04
- Next message: joker: "Re: Cannot Generate SSPI Context - help"
- Previous message: Ken Schaefer: "Re: SQL Server uses Windows authentication"
- In reply to: Astra: "Re: SQL Server uses Windows authentication"
- Next in thread: joker: "Re: SQL Server uses Windows authentication"
- Reply: joker: "Re: SQL Server uses Windows authentication"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 16 Sep 2004 09:14:19 -0400
The very first hit in a Google search (I just copied and pasted your error
message into the search field) revealed this:
http://support.microsoft.com/?id=811889
The second one was this:
http://support.microsoft.com/?id=814401
Here are the rest of the search results:
http://www.google.com/search?sourceid=navclient&ie=UTF-8&q=%22Cannot+generate+SSPI+context%22
Bob Barrows
Astra wrote:
> I have used the following DSN-less string as per recent advice:
>
> strDSN = "Provider=sqloledb; Data Source=" & strIP & "; Initial
> Catalog=" & strDB & "; Integrated Security=SSPI"
>
> strIP and strDB integrate into the string correctly, but I get the
> following error message:
>
> Microsoft OLE DB Provider for SQL Server error '80004005'
> Cannot generate SSPI context
>
> /stocklevels.asp, line 83
>
> What am I doing wrong?
>
> Rgds Robbie
>
>
> "Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
> news:O2u4ZQ4mEHA.3428@TK2MSFTNGP11.phx.gbl...
> Are the machine in the same domain?
>
> With Windows Authentication you do not put any credentials in the
> connection string. The connection uses the credentials of whatever
> thread is opening the connection.
>
> Cheers
> Ken
>
> "Astra" <info@NoEmail.com> wrote in message
> news:%23HVZ5YzmEHA.2020@TK2MSFTNGP09.phx.gbl...
>> Hi All
>>
>> Could somebody post me the conn string I would use to enable my ASP
>> page on
>> 1 remote web server to connect to an SQL db on a completely different
>> remote
>> SQL server (windows 2000), which uses Windows authentication.
>>
>> SQL authentication I am fine with, but Windows authen confuses me as
>> to how
>> I put my login details through when the machines are remote.
>>
>> Thanks
>>
>> Robbie
-- Microsoft MVP -- ASP/ASP.NET Please reply to the newsgroup. The email account listed in my From header is my spam trap, so I don't check it very often. You will get a quicker response by posting to the newsgroup.
- Next message: joker: "Re: Cannot Generate SSPI Context - help"
- Previous message: Ken Schaefer: "Re: SQL Server uses Windows authentication"
- In reply to: Astra: "Re: SQL Server uses Windows authentication"
- Next in thread: joker: "Re: SQL Server uses Windows authentication"
- Reply: joker: "Re: SQL Server uses Windows authentication"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|