Re: Windows Service Login Failed when accessing SQL.
From: Sam Santiago (ssantiago_at_n0spam-SoftiTechture.com)
Date: 11/02/04
- Next message: David: "Remoting configuration file for two objects."
- Previous message: Namratha Shah \(Nasha\): "Article : Resource File Generator (Resgen.exe .Net FrameWork Tools Series)"
- In reply to: Evan Camilleri: "Windows Service Login Failed when accessing SQL."
- Next in thread: Evan Camilleri: "Re: Windows Service Login Failed when accessing SQL."
- Reply: Evan Camilleri: "Re: Windows Service Login Failed when accessing SQL."
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 2 Nov 2004 11:06:43 -0800
SQL Authentication should work since you specify the login ID and password
in the connection string. Create a user (other than sa) on SQL Server that
explicitly is set to use SQL Authentication, not Windows auth, and try that
user from your application. Also, test outside the application that you can
connect to the SQL Server DB successfully. If that fails, post some code
and a stack trace since that might provide more insight.
Thanks,
Sam
-- _______________________________ Sam Santiago ssantiago@n0spam-SoftiTechture.com http://www.SoftiTechture.com _______________________________ "Evan Camilleri" <evan@holistic.com.mt.nospam> wrote in message news:%23PUvTFQwEHA.1292@TK2MSFTNGP10.phx.gbl... > Windows Service Login Failed when accessing SQL. > > I have a problem for a Windows Service to login on an SQL server (different > machine) - neither Windows Authentication nor SQL Authentication worked. > LOGIN FAILED FOR USER sa (for example). > > If SQL Server is on the same PC of the Windows Service the connection works > OK. > > The same code works in a Windows Form using same user and authentication > methods to the SQL Server on a different machine. > > Thanks for any help! > > Evan Camilleri > >
- Next message: David: "Remoting configuration file for two objects."
- Previous message: Namratha Shah \(Nasha\): "Article : Resource File Generator (Resgen.exe .Net FrameWork Tools Series)"
- In reply to: Evan Camilleri: "Windows Service Login Failed when accessing SQL."
- Next in thread: Evan Camilleri: "Re: Windows Service Login Failed when accessing SQL."
- Reply: Evan Camilleri: "Re: Windows Service Login Failed when accessing SQL."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|