Re: Unable to establish connection to sql database using trusted account

From: Greg Merideth (beta-gm_at_forwardtechnology.net)
Date: 07/27/04


Date: 27 Jul 2004 13:16:02 -0700


"ssr" <ssr@lubrizol.com> wrote in message news:<4f6a01c473e9$19861b90$a301280a@phx.gbl>...
> We were unable to establish a connection to a database on
> a sql server using a trusted account. The sql database is
> on a different server than SharePoint. When attempting
> the connection, the sql log shows the following error
> message:
>
> Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'
>
> How can you tell the identity of the account that is used
> to create the connection?
>
> If we use a standard account, passing it a user name and
> password, we are able to connect. This however, is not
> condoned by our security department.

Add the account NT AUTHORITY\ANONYMOUS LOGON into SQL server and give
it access to the databases/tables that you need to access from the
Sharepoint machine. Then in the connection string use

server=myserver;integrated security=sspi;database=sharepointdb;

then Sharepoint will talk to SQL without putting usernames/pw's in the
connection string.



Relevant Pages

  • Re: SQL account rights
    ... Please advice what is the best, suitable rights rather than domain admin ... Warren Brunk - MCITP - SQL 2005, ... Add it as a login to the SQL Server ... files, or backups, make sure that the service account has Full ...
    (microsoft.public.sqlserver.security)
  • Re: provider: Named Pipes Provider, error: 40 - Could not open a c
    ... I have tried connecting to Sql Management Studio and it worked pretty much ... An error has occurred while establishing a connection to the server. ... under the default settings SQL Server does not allow remote connections. ... I have a sql server install / database on the web server. ...
    (microsoft.public.sqlserver.connect)
  • RE: Logging in in background
    ... wold take all kinds of modifictions as I'd need to be checking that each SQL ... my database and all have connection strings associated with them. ... I suspect that there is also an issue on the SQL Server side as I keep ...
    (microsoft.public.access.modulesdaovba)
  • Re: User authentication
    ... There are 2 SQL Server 2005 ... 1 SQL Server 2000 installed on another server ... Windows account instead to run backup jobs. ...
    (microsoft.public.sqlserver.clients)
  • .Net framework error
    ... Unfortunately the information is very limited and usually the report just ... The application is a front end for a SQL Server 2005 Express database, ... connection string in the app config file. ...
    (microsoft.public.dotnet.languages.vb)