Results 1 to 2 of 2

Thread: windows service or windows form app?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489

    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).

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    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
  •  



Click Here to Expand Forum to Full Width