locked
create task schedule desktop application RRS feed

  • Question

  • Hello Guys.

    i want to develop a application which update my database periodically.

    at first users create simple a taks(like settle to a bank account). then the application should automatically run this tasks and update accounts.

    one more thing: users use the web base application to create the tasks but a desktop application should run and manage all tasks.

    I'm new in c# and i will appreciate if you can explain with sample application.

    Thank you guys.

    Sunday, May 11, 2014 11:16 AM

Answers

  • There is no difference between a web application and a desktop application.  

    1) Web Application : Has a web interface and connects to a HTML Service/Server/File.

    2) Desktop Application :  Doesn't have a web interface.

    The backend processing of both the web application and desktop application are the same.  With either a web or desktop application you can create a scheduled task.  Any program can run as a schedule task as long as all the input and output are fully defined and doesn't require a user input.

    http://stackoverflow.com/questions/7394806/creating-scheduled-tasks

     


    jdweng

    • Marked as answer by Bouki Monday, May 12, 2014 3:24 AM
    Sunday, May 11, 2014 11:35 AM

All replies

  • There is no difference between a web application and a desktop application.  

    1) Web Application : Has a web interface and connects to a HTML Service/Server/File.

    2) Desktop Application :  Doesn't have a web interface.

    The backend processing of both the web application and desktop application are the same.  With either a web or desktop application you can create a scheduled task.  Any program can run as a schedule task as long as all the input and output are fully defined and doesn't require a user input.

    http://stackoverflow.com/questions/7394806/creating-scheduled-tasks

     


    jdweng

    • Marked as answer by Bouki Monday, May 12, 2014 3:24 AM
    Sunday, May 11, 2014 11:35 AM
  • Thank you so much dear Joel.

    i have another question about Trigger:

    as i found out, after user creating a new task, a new trigger should add.

    am i right?

    now if i want to handle all of the tasks with my desktop application i should create a (task service) for each user or what?

    do you have another sample which run a trigger on database?

    i guess this could be helpful.

    thanks again.

    Sunday, May 11, 2014 12:20 PM
  • Normally schedule tasks are run with admin credentials.  The standard admin account may not have the same environmental variables settings so you may want to create a special user account with admin credentials to run schedules tasks.  Depending on the version of windows you are using that setup of the admin account will be different.

    jdweng

    • Proposed as answer by ryguy72 Wednesday, May 14, 2014 3:54 PM
    Sunday, May 11, 2014 12:56 PM