Re: Windows Services and SQL Server
- From: "Willy Denoyette [MVP]" <willy.denoyette@xxxxxxxxxx>
- Date: Fri, 4 May 2007 15:34:09 +0200
"Diogo Alves" <DiogoAlves@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:DCD9B11E-BED4-4DD0-AB45-4EDE0E432F3C@xxxxxxxxxxxxxxxx
Greetings everyone,Windows services that run in the "Local Service" or "Network Service" account, authenticate using the machine account with a $ appended on the network.
I am trying to access my SQL Server 2005 database with a windows service,
the problem is that I can't access it!
It says ERROR [28000] [Microsoft][ODBC SQL Server Driver][SQL Server]Login
failed for user 'ONEWORLD\N5DALVES$'.
ONEWORLD is my domain, N5DALVES is my computer name.... the $ appears there
like magic...
in the SQL Server I don't have that user... I have ONEWORLD\DALVES...
that's my username in the intranet...
How can I avoid this? I tried to use this connection string:
1. By running your service in a domain account, or
2. When running in a W2K AD domain, you can grant the machine account
(domain\machinename) access rights to the SQL Server database.
DSN=MyDataSource;Uid=TimeFiveUser;Pwd=_TimeFiveUser_;
I'm using ODBC Drivers
Why using legacy ODBC drivers when there are managed stacks available for most DB's systems on the market?
Willy.
.
- Prev by Date: Re: save bit as 0 or 1not true or false
- Next by Date: Re: New to C#
- Previous by thread: Re: Windows Services and SQL Server
- Next by thread: Re: Windows Services and SQL Server
- Index(es):
Relevant Pages
|