PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.db.ms-sqlserver > Login failed for user '(null)'. Reason: Not associated with a trustedSQL Server connection.
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Login failed for user '(null)'. Reason: Not associated with a trustedSQL Server connection.

Réponse
 
LinkBack Outils de la discussion
Vieux 19/03/2008, 01h56   #1
Benzine
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Login failed for user '(null)'. Reason: Not associated with a trustedSQL Server connection.

I am getting the below error message from my asp application:

Microsoft OLE DB Provider for SQL Server error '80004005'

Login failed for user '(null)'. Reason: Not associated with a trusted
SQL Server connection.

/CMS/include/conniCom.inc, line 8

Details:

SQL Server 2005
ASP Script
IIS 6.0


I have seen posts about this error many times but in this case it is a
little different.
The error is not related to SQL Mixed Mode authentication not being
setup on the server as this has been done, nor is it to do with
Integrated Windows Security on the IIS server as this has been done
aswell.

Its a little different because my application is hosted on Server A
(IIS Server) and is trying to connect to Server B (SQL Server).

I have tried adding a linked server to Server A from Server B but I
still get the same error.

Can anyone give me some insight on what needs to be done here.

Regards,

Ben
  Réponse avec citation
Vieux 19/03/2008, 06h13   #2
Tom van Stiphout
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.

On Tue, 18 Mar 2008 16:56:56 -0700 (PDT), Benzine <bfausti@gmail.com>
wrote:

What's the content of this line:
/CMS/include/conniCom.inc, line 8

Linked servers don't come into play here, because there is only one
SqlServer: ServerB.

-Tom.


>I am getting the below error message from my asp application:
>
>Microsoft OLE DB Provider for SQL Server error '80004005'
>
>Login failed for user '(null)'. Reason: Not associated with a trusted
>SQL Server connection.
>
>/CMS/include/conniCom.inc, line 8
>
>Details:
>
>SQL Server 2005
>ASP Script
>IIS 6.0
>
>
>I have seen posts about this error many times but in this case it is a
>little different.
>The error is not related to SQL Mixed Mode authentication not being
>setup on the server as this has been done, nor is it to do with
>Integrated Windows Security on the IIS server as this has been done
>aswell.
>
>Its a little different because my application is hosted on Server A
>(IIS Server) and is trying to connect to Server B (SQL Server).
>
>I have tried adding a linked server to Server A from Server B but I
>still get the same error.
>
>Can anyone give me some insight on what needs to be done here.
>
>Regards,
>
>Ben

  Réponse avec citation
Vieux 19/03/2008, 09h48   #3
Erland Sommarskog
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.

Benzine (bfausti@gmail.com) writes:
> Microsoft OLE DB Provider for SQL Server error '80004005'
>
> Login failed for user '(null)'. Reason: Not associated with a trusted
> SQL Server connection.
>
> /CMS/include/conniCom.inc, line 8
>...
>
> I have seen posts about this error many times but in this case it is a
> little different.
> The error is not related to SQL Mixed Mode authentication not being
> setup on the server as this has been done, nor is it to do with
> Integrated Windows Security on the IIS server as this has been done
> aswell.
>
> Its a little different because my application is hosted on Server A
> (IIS Server) and is trying to connect to Server B (SQL Server).


To start with, what is your connection string?

> I have tried adding a linked server to Server A from Server B but I
> still get the same error.


As Tom said, that has nothing to do with it.

--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
  Réponse avec citation
Vieux 19/03/2008, 13h45   #4
Benzine
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Login failed for user '(null)'. Reason: Not associated with atrusted SQL Server connection.

This is the connection string on line 8

Conn.Open "Provider=sqloledb;Data Source=SUS-DB01;Initial
Catalog=iCom;Integrated Security=SSPI;"


On Mar 19, 3:13pm, Tom van Stiphout <no.spam.tom7...@cox.net> wrote:
> On Tue, 18 Mar 2008 16:56:56 -0700 (PDT), Benzine <bfau...@gmail.com>
> wrote:
>
> What's the content of this line:
> /CMS/include/conniCom.inc, line 8
>
> Linked servers don't come into play here, because there is only one
> SqlServer: ServerB.
>
> -Tom.
>
>
>
> >I am getting the below error message from my asp application:

>
> >Microsoft OLE DB Provider for SQL Server error '80004005'

>
> >Login failed for user '(null)'. Reason: Not associated with a trusted
> >SQL Server connection.

>
> >/CMS/include/conniCom.inc, line 8

>
> >Details:

>
> >SQL Server 2005
> >ASP Script
> >IIS 6.0

>
> >I have seen posts about this error many times but in this case it is a
> >little different.
> >The error is not related to SQL Mixed Mode authentication not being
> >setup on the server as this has been done, nor is it to do with
> >Integrated Windows Security on the IIS server as this has been done
> >aswell.

>
> >Its a little different because my application is hosted on Server A
> >(IIS Server) and is trying to connect to Server B (SQL Server).

>
> >I have tried adding a linked server to Server A from Server B but I
> >still get the same error.

>
> >Can anyone give me some insight on what needs to be done here.

>
> >Regards,

>
> >Ben- Hide quoted text -

>
> - Show quoted text -


  Réponse avec citation
Vieux 19/03/2008, 13h46   #5
Benzine
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Login failed for user '(null)'. Reason: Not associated with atrusted SQL Server connection.

On Mar 19, 3:13pm, Tom van Stiphout <no.spam.tom7...@cox.net> wrote:
> On Tue, 18 Mar 2008 16:56:56 -0700 (PDT), Benzine <bfau...@gmail.com>
> wrote:
>
> What's the content of this line:
> /CMS/include/conniCom.inc, line 8
>
> Linked servers don't come into play here, because there is only one
> SqlServer: ServerB.
>
> -Tom.
>
>
>
> >I am getting the below error message from my asp application:

>
> >Microsoft OLE DB Provider for SQL Server error '80004005'

>
> >Login failed for user '(null)'. Reason: Not associated with a trusted
> >SQL Server connection.

>
> >/CMS/include/conniCom.inc, line 8

>
> >Details:

>
> >SQL Server 2005
> >ASP Script
> >IIS 6.0

>
> >I have seen posts about this error many times but in this case it is a
> >little different.
> >The error is not related to SQL Mixed Mode authentication not being
> >setup on the server as this has been done, nor is it to do with
> >Integrated Windows Security on the IIS server as this has been done
> >aswell.

>
> >Its a little different because my application is hosted on Server A
> >(IIS Server) and is trying to connect to Server B (SQL Server).

>
> >I have tried adding a linked server to Server A from Server B but I
> >still get the same error.

>
> >Can anyone give me some insight on what needs to be done here.

>
> >Regards,

>
> >Ben- Hide quoted text -

>
> - Show quoted text -


This is my connection string.

Conn.Open "Provider=sqloledb;Data Source=SUS-DB01;Initial
Catalog=iCom;Integrated Security=SSPI;"

Ben
  Réponse avec citation
Vieux 19/03/2008, 16h18   #6
Tom van Stiphout
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.

On Wed, 19 Mar 2008 04:45:50 -0700 (PDT), Benzine <bfausti@gmail.com>
wrote:

Probably a bad connection string. "Integrated Security=SSPI" means
that it uses Windows Authentication rather than SQL Server
Authentication. For that to work the user of the IIS process would
have to have access to the db, and it most likely does not.
Create a new user (e.g. MyWebAppUser), give it access to the database,
and put this username/password in the connection string, and take the
Integrated Security out.
Details of the connection string: www.connectionstrings.com

-Tom.


>This is the connection string on line 8
>
>Conn.Open "Provider=sqloledb;Data Source=SUS-DB01;Initial
>Catalog=iCom;Integrated Security=SSPI;"
>
>
>On Mar 19, 3:13pm, Tom van Stiphout <no.spam.tom7...@cox.net> wrote:
>> On Tue, 18 Mar 2008 16:56:56 -0700 (PDT), Benzine <bfau...@gmail.com>
>> wrote:
>>
>> What's the content of this line:
>> /CMS/include/conniCom.inc, line 8
>>
>> Linked servers don't come into play here, because there is only one
>> SqlServer: ServerB.
>>
>> -Tom.
>>
>>
>>
>> >I am getting the below error message from my asp application:

>>
>> >Microsoft OLE DB Provider for SQL Server error '80004005'

>>
>> >Login failed for user '(null)'. Reason: Not associated with a trusted
>> >SQL Server connection.

>>
>> >/CMS/include/conniCom.inc, line 8

>>
>> >Details:

>>
>> >SQL Server 2005
>> >ASP Script
>> >IIS 6.0

>>
>> >I have seen posts about this error many times but in this case it is a
>> >little different.
>> >The error is not related to SQL Mixed Mode authentication not being
>> >setup on the server as this has been done, nor is it to do with
>> >Integrated Windows Security on the IIS server as this has been done
>> >aswell.

>>
>> >Its a little different because my application is hosted on Server A
>> >(IIS Server) and is trying to connect to Server B (SQL Server).

>>
>> >I have tried adding a linked server to Server A from Server B but I
>> >still get the same error.

>>
>> >Can anyone give me some insight on what needs to be done here.

>>
>> >Regards,

>>
>> >Ben- Hide quoted text -

>>
>> - Show quoted text -

  Réponse avec citation
Vieux 20/03/2008, 00h27   #7
Erland Sommarskog
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.

Benzine (bfausti@gmail.com) writes:
> This is the connection string on line 8
>
> Conn.Open "Provider=sqloledb;Data Source=SUS-DB01;Initial
> Catalog=iCom;Integrated Security=SSPI;"


And the service account for IIS is?

--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
  Réponse avec citation
Vieux 20/03/2008, 02h06   #8
Benzine
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Login failed for user '(null)'. Reason: Not associated with atrusted SQL Server connection.

On Mar 20, 1:18am, Tom van Stiphout <no.spam.tom7...@cox.net> wrote:
> On Wed, 19 Mar 2008 04:45:50 -0700 (PDT), Benzine <bfau...@gmail.com>
> wrote:
>
> Probably a bad connection string. "Integrated Security=SSPI" means
> that it uses Windows Authentication rather than SQL Server
> Authentication. For that to work the user of the IIS process would
> have to have access to the db, and it most likely does not.
> Create a new user (e.g. MyWebAppUser), give it access to the database,
> and put this username/password in the connection string, and take the
> Integrated Security out.
> Details of the connection string:www.connectionstrings.com
>
> -Tom.
>
>
>
> >This is the connection string on line 8

>
> >Conn.Open "Provider=sqloledb;Data Source=SUS-DB01;Initial
> >Catalog=iCom;Integrated Security=SSPI;"

>
> >On Mar 19, 3:13pm, Tom van Stiphout <no.spam.tom7...@cox.net> wrote:
> >> On Tue, 18 Mar 2008 16:56:56 -0700 (PDT), Benzine <bfau...@gmail.com>
> >> wrote:

>
> >> What's the content of this line:
> >> /CMS/include/conniCom.inc, line 8

>
> >> Linked servers don't come into play here, because there is only one
> >> SqlServer: ServerB.

>
> >> -Tom.

>
> >> >I am getting the below error message from my asp application:

>
> >> >Microsoft OLE DB Provider for SQL Server error '80004005'

>
> >> >Login failed for user '(null)'. Reason: Not associated with a trusted
> >> >SQL Server connection.

>
> >> >/CMS/include/conniCom.inc, line 8

>
> >> >Details:

>
> >> >SQL Server 2005
> >> >ASP Script
> >> >IIS 6.0

>
> >> >I have seen posts about this error many times but in this case it is a
> >> >little different.
> >> >The error is not related to SQL Mixed Mode authentication not being
> >> >setup on the server as this has been done, nor is it to do with
> >> >Integrated Windows Security on the IIS server as this has been done
> >> >aswell.

>
> >> >Its a little different because my application is hosted on Server A
> >> >(IIS Server) and is trying to connect to Server B (SQL Server).

>
> >> >I have tried adding a linked server to Server A from Server B but I
> >> >still get the same error.

>
> >> >Can anyone give me some insight on what needs to be done here.

>
> >> >Regards,

>
> >> >Ben- Hide quoted text -

>
> >> - Show quoted text -- Hide quoted text -

>
> - Show quoted text -


This is not an option as the Windows user is used to log changes made
to the asp application.
Just a bit of other information the application I have built is
running on a companies intranet site thus all users are setup to
access the db.
Also the error message has only appeared due to the change of
enviornment, orignally the IIS and SQL server were running on the same
box. Now that the sql server has been moved to a separate box I am
getting this error. (Note: The 2 servers are still under the same
domain)

Ben
  Réponse avec citation
Vieux 20/03/2008, 06h44   #9
Tom van Stiphout
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.

On Wed, 19 Mar 2008 22:27:10 +0000 (UTC), Erland Sommarskog
<esquel@sommarskog.se> wrote:

IUSR_<machinename> for IIS5 (Win2000), and for IIS6 (Win2003) the
situation is a bit murkier. See this article:
http://www.microsoft.com/technet/pro....mspx?mfr=true

-Tom.


>Benzine (bfausti@gmail.com) writes:
>> This is the connection string on line 8
>>
>> Conn.Open "Provider=sqloledb;Data Source=SUS-DB01;Initial
>> Catalog=iCom;Integrated Security=SSPI;"

>
>And the service account for IIS is?

  Réponse avec citation
Vieux 20/03/2008, 06h47   #10
Tom van Stiphout
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.

On Wed, 19 Mar 2008 17:06:04 -0700 (PDT), Benzine <bfausti@gmail.com>
wrote:

Seems like you left out a little tidbit of information that your
webapp is (most likely) running under Windows Authentication.
Sorry, I like the specs to be accurate the first time. Good day.

-Tom.


>On Mar 20, 1:18am, Tom van Stiphout <no.spam.tom7...@cox.net> wrote:
>> On Wed, 19 Mar 2008 04:45:50 -0700 (PDT), Benzine <bfau...@gmail.com>
>> wrote:
>>
>> Probably a bad connection string. "Integrated Security=SSPI" means
>> that it uses Windows Authentication rather than SQL Server
>> Authentication. For that to work the user of the IIS process would
>> have to have access to the db, and it most likely does not.
>> Create a new user (e.g. MyWebAppUser), give it access to the database,
>> and put this username/password in the connection string, and take the
>> Integrated Security out.
>> Details of the connection string:www.connectionstrings.com
>>
>> -Tom.
>>
>>
>>
>> >This is the connection string on line 8

>>
>> >Conn.Open "Provider=sqloledb;Data Source=SUS-DB01;Initial
>> >Catalog=iCom;Integrated Security=SSPI;"

>>
>> >On Mar 19, 3:13pm, Tom van Stiphout <no.spam.tom7...@cox.net> wrote:
>> >> On Tue, 18 Mar 2008 16:56:56 -0700 (PDT), Benzine <bfau...@gmail.com>
>> >> wrote:

>>
>> >> What's the content of this line:
>> >> /CMS/include/conniCom.inc, line 8

>>
>> >> Linked servers don't come into play here, because there is only one
>> >> SqlServer: ServerB.

>>
>> >> -Tom.

>>
>> >> >I am getting the below error message from my asp application:

>>
>> >> >Microsoft OLE DB Provider for SQL Server error '80004005'

>>
>> >> >Login failed for user '(null)'. Reason: Not associated with a trusted
>> >> >SQL Server connection.

>>
>> >> >/CMS/include/conniCom.inc, line 8

>>
>> >> >Details:

>>
>> >> >SQL Server 2005
>> >> >ASP Script
>> >> >IIS 6.0

>>
>> >> >I have seen posts about this error many times but in this case it is a
>> >> >little different.
>> >> >The error is not related to SQL Mixed Mode authentication not being
>> >> >setup on the server as this has been done, nor is it to do with
>> >> >Integrated Windows Security on the IIS server as this has been done
>> >> >aswell.

>>
>> >> >Its a little different because my application is hosted on Server A
>> >> >(IIS Server) and is trying to connect to Server B (SQL Server).

>>
>> >> >I have tried adding a linked server to Server A from Server B but I
>> >> >still get the same error.

>>
>> >> >Can anyone give me some insight on what needs to be done here.

>>
>> >> >Regards,

>>
>> >> >Ben- Hide quoted text -

>>
>> >> - Show quoted text -- Hide quoted text -

>>
>> - Show quoted text -

>
>This is not an option as the Windows user is used to log changes made
>to the asp application.
>Just a bit of other information the application I have built is
>running on a companies intranet site thus all users are setup to
>access the db.
>Also the error message has only appeared due to the change of
>enviornment, orignally the IIS and SQL server were running on the same
>box. Now that the sql server has been moved to a separate box I am
>getting this error. (Note: The 2 servers are still under the same
>domain)
>
>Ben

  Réponse avec citation
Vieux 20/03/2008, 11h54   #11
Erland Sommarskog
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.

Benzine (bfausti@gmail.com) writes:
> This is not an option as the Windows user is used to log changes made
> to the asp application.
> Just a bit of other information the application I have built is
> running on a companies intranet site thus all users are setup to
> access the db.
> Also the error message has only appeared due to the change of
> enviornment, orignally the IIS and SQL server were running on the same
> box. Now that the sql server has been moved to a separate box I am
> getting this error. (Note: The 2 servers are still under the same
> domain)


I would guess that the service account for IIS has to be a domain account.
But this seems more to be an issue with IIS than SQL Server, so you
may be better of asking in an IIS forum.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
  Réponse avec citation
Vieux 20/03/2008, 13h57   #12
Damien
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Login failed for user '(null)'. Reason: Not associated with atrusted SQL Server connection.

On Mar 20, 12:06am, Benzine <bfau...@gmail.com> wrote:
> On Mar 20, 1:18am, Tom van Stiphout <no.spam.tom7...@cox.net> wrote:
> > On Wed, 19 Mar 2008 04:45:50 -0700 (PDT), Benzine <bfau...@gmail.com>
> > wrote:

>
> > Probably a bad connection string. "Integrated Security=SSPI" means
> > that it uses Windows Authentication rather than SQL Server
> > Authentication. For that to work the user of the IIS process would
> > have to have access to the db, and it most likely does not.
> > Create a new user (e.g. MyWebAppUser), give it access to the database,
> > and put this username/password in the connection string, and take the
> > Integrated Security out.
> > Details of the connection string:www.connectionstrings.com

>
> > -Tom.

>
> > >This is the connection string on line 8

>
> > >Conn.Open "Provider=sqloledb;Data Source=SUS-DB01;Initial
> > >Catalog=iCom;Integrated Security=SSPI;"

>
> > >On Mar 19, 3:13pm, Tom van Stiphout <no.spam.tom7...@cox.net> wrote:
> > >> On Tue, 18 Mar 2008 16:56:56 -0700 (PDT), Benzine <bfau...@gmail.com>
> > >> wrote:

>
> > >> What's the content of this line:
> > >> /CMS/include/conniCom.inc, line 8

>
> > >> Linked servers don't come into play here, because there is only one
> > >> SqlServer: ServerB.

>
> > >> -Tom.

>
> > >> >I am getting the below error message from my asp application:

>
> > >> >Microsoft OLE DB Provider for SQL Server error '80004005'

>
> > >> >Login failed for user '(null)'. Reason: Not associated with a trusted
> > >> >SQL Server connection.

>
> > >> >/CMS/include/conniCom.inc, line 8

>
> > >> >Details:

>
> > >> >SQL Server 2005
> > >> >ASP Script
> > >> >IIS 6.0

>
> > >> >I have seen posts about this error many times but in this case it isa
> > >> >little different.
> > >> >The error is not related to SQL Mixed Mode authentication not being
> > >> >setup on the server as this has been done, nor is it to do with
> > >> >Integrated Windows Security on the IIS server as this has been done
> > >> >aswell.

>
> > >> >Its a little different because my application is hosted on Server A
> > >> >(IIS Server) and is trying to connect to Server B (SQL Server).

>
> > >> >I have tried adding a linked server to Server A from Server B but I
> > >> >still get the same error.

>
> > >> >Can anyone give me some insight on what needs to be done here.

>
> > >> >Regards,

>
> > >> >Ben- Hide quoted text -

>
> > >> - Show quoted text -- Hide quoted text -

>
> > - Show quoted text -

>
> This is not an option as the Windows user is used to log changes made
> to the asp application.
> Just a bit of other information the application I have built is
> running on a companies intranet site thus all users are setup to
> access the db.
> Also the error message has only appeared due to the change of
> enviornment, orignally the IIS and SQL server were running on the same
> box. Now that the sql server has been moved to a separate box I am
> getting this error. (Note: The 2 servers are still under the same
> domain)
>
> Ben


http://groups.google.com/group/micro...e73517ca3f3c9e

Not that I'm lazy :-)

Damien
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h24.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,29402 seconds with 20 queries