Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Scheduling tasks

Scheduling tasks

Scheduled Pinned Locked Moved .NET (Core and Framework)
databasewcfquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 1 Offline
    1 Offline
    1sabine8
    wrote on last edited by
    #1

    Hi, I need to get data from SQL and write it on an application using the application's web services. I need this to be scheduled. What's best to do? Write a Windows Service and schedule it or write a console application and schedule it in the Task Scheduler? Thanks in advance

    L D 2 Replies Last reply
    0
    • 1 1sabine8

      Hi, I need to get data from SQL and write it on an application using the application's web services. I need this to be scheduled. What's best to do? Write a Windows Service and schedule it or write a console application and schedule it in the Task Scheduler? Thanks in advance

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      I'd go for the console-application, read the records in a DataTable and pump them one by one to the WebService of the application that you're going to export to. That's easily scheduled through the Windows Task Scheduler, and easy to understand (therefore, easy to maintain) You can run a console-application as a service and effectively delay this decision. There are some freeware-tools out and about that can help in this regard. --edit-- Question was about a Windows-service, not webservice..

      I are troll :)

      modified on Wednesday, March 4, 2009 3:39 AM

      1 Reply Last reply
      0
      • 1 1sabine8

        Hi, I need to get data from SQL and write it on an application using the application's web services. I need this to be scheduled. What's best to do? Write a Windows Service and schedule it or write a console application and schedule it in the Task Scheduler? Thanks in advance

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        Depending on the frequency you need to run this you would do either. If you have to run this query many times a day, then a service might be in order. If it's just one or two times a day, then a console app launched through the Task Scheduler would be a better choice.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups