Schedule timer to be executed once a month - C#

后端 未结 2 590
故里飘歌
故里飘歌 2021-01-29 01:42

I need to transfer some data from SQL Server to MySQL, once a month. I have already done this transfer stuff, but I don\'t know (and I have not found out on the internet) how to

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-29 02:00

    This sounds like something you should set-up as a scheduled task or a SQL server job rather than having a process run for a month via a timer?

    Links:

    • SQL Server job in 2008
    • Schedule windows task

    I guess you could also setup a task as a windows service and check the last time you did the update via a setting in the database, but that seems like overkill. From the sound of it you already have a C# app setup that does the job, so I would just make a scheduled windows task.

提交回复
热议问题