|
-
Apr 20th, 2004, 03:13 PM
#1
Thread Starter
Frenzied Member
windows service or windows form app?
I have to write something that will query a database every morning at the same time and email specified addresses. I was wondering which is better to use: a windows service (which I'd have to do some reading up on), or a standard application with an interface (I DONT need an interface, fyi).
-
Apr 20th, 2004, 08:27 PM
#2
I wonder how many charact
Well, if this is just a one-shot, no deployment type of situation, you should definitely do the service, which would allow the query to run without anyone being logged in, which a windows application would require.
Then again, you could use task scheduler to run a program at specified times... but anyway...
Just remember:
you can't debug a service by starting it in the IDE, but must attach the debugger to the service once its started.
Log any maintenance or error information to the system event log.
As always (in case you didn't know it existed, which i doubt):
http://msdn.microsoft.com/library/de...plications.asp
Last edited by nemaroller; Apr 20th, 2004 at 08:33 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|