ChewDoggie
Programmer
G'Day !
I'm having trouble connecting to a database from a Windows Service app that I'm writing. When I compile the app and then register it as a service via the 'sc' command at the command prompt and then attempt to start it, I get an error
When I check the event viewer, I can see the error is "Login Failed for user 'AnnAbuser'"
Can anyone give me clues as to why the database connection fails when I run this as a service, but it connects OK whilst debugging in VS ?
Thanks !
Chew
10% of your life is what happens to you. 90% of your life is how you deal with it.
I'm having trouble connecting to a database from a Windows Service app that I'm writing. When I compile the app and then register it as a service via the 'sc' command at the command prompt and then attempt to start it, I get an error
Error 1067: The process terminated unexpectedly
When I check the event viewer, I can see the error is "Login Failed for user 'AnnAbuser'"
Can anyone give me clues as to why the database connection fails when I run this as a service, but it connects OK whilst debugging in VS ?
Thanks !
Chew
10% of your life is what happens to you. 90% of your life is how you deal with it.