Re: Cannot Generate SSPI Context - help
From: Manohar Kamath [MVP] (mkamath_at_TAKETHISOUTkamath.com)
Date: 09/15/04
- Previous message: Mike: "Re: How do you SELECT a list of words with commas in SQL from a column?"
- In reply to: Laphan: "Re: Cannot Generate SSPI Context - help"
- Next in thread: Astra: "Re: Cannot Generate SSPI Context - help"
- Reply: Astra: "Re: Cannot Generate SSPI Context - help"
- Reply: joker: "Re: Cannot Generate SSPI Context - help"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 15 Sep 2004 15:03:27 -0500
Almost correct...
The IUSR_<> account on the machine, should have Windows authentication
rights on the remote SQL server. That way, you do not include the userid and
password in the connection string. When a connection is "trusted," it means
the user who is requesting the connection is a user on the SQL server as
well.
--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"Laphan" <news@DoNotEmailMe.co.uk> wrote in message
news:uyxcVo0mEHA.392@tk2msftngp13.phx.gbl...
> Dear Manohar
>
> Thanks for your reply.
>
> If I'm reading your email right, they do have Administrator set up as a
> Windows authenticated user that connects to an SQL Server DB successfully.
> I know this because they have a remote user that connects via a software
> router to an ODBC connection on the SQL Server and this remote user uses
> Administrator and the relevant password to get in.
>
> However when I tried to the Administrator and relevant password in my
> connection string I received the exact same error message as below.
>
> How would one connect to a remote SQL Server using Windows authen?
>
> Rgds
>
> Robbie
>
>
> Manohar Kamath [MVP] <mkamath@TAKETHISOUTkamath.com> wrote in message
> news:OPlUqA0mEHA.3352@TK2MSFTNGP15.phx.gbl...
> The user context (as in the NT name) of the connection should be
registered
> with the remote SQL server as a windows authentication user. Have you done
> this?
>
> --
> Manohar Kamath
> Editor, .netWire
> www.dotnetwire.com
>
>
> "Astra" <info@NoEmail.com> wrote in message
> news:e%23U5UHzmEHA.2708@TK2MSFTNGP10.phx.gbl...
> > Hi Bob
> >
> > Thanks for coming back to me. Now I get the following error:
> >
> > Microsoft OLE DB Provider for SQL Server error '80004005'
> >
> > Login failed for user 'rob'. Reason: Not associated with a trusted SQL
> > Server connection.
> >
> > /stocklevels.asp, line 82
> >
> > Any ideas why?
> >
> > Rgds
> >
> > Robbie
> >
> >
> >
> > "Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message
> > news:uafTp1ymEHA.2908@TK2MSFTNGP12.phx.gbl...
> > Astra wrote:
> > > Hi All
> > > strDSN = "Driver={SQL Server};Server=" & strIP & ";Address=" & strIP &
> >
> > Don't use ODBC! Use a SQLOLEDB connection string
> > (www.able-consulting.com/ado_conn.htm). It may not solve this specific
> > problem, but it will prevent others.
> >
> > > Microsoft OLE DB Provider for ODBC Drivers error '80004005'
> > See this article:
> > http://www.aspfaq.com/show.asp?id=2009
> >
> >
> > Bob Barrows
> > --
> > 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.
> >
> >
> >
>
>
>
>
- Previous message: Mike: "Re: How do you SELECT a list of words with commas in SQL from a column?"
- In reply to: Laphan: "Re: Cannot Generate SSPI Context - help"
- Next in thread: Astra: "Re: Cannot Generate SSPI Context - help"
- Reply: Astra: "Re: Cannot Generate SSPI Context - help"
- Reply: joker: "Re: Cannot Generate SSPI Context - help"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|