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 set a timer that executes this transfer a specific day every month. I don't want just to set a timer interval in milliseconds because the number of days vary from one month to another.
Any help is appreciated...
You could use the Windows Task Scheduler for this kind of work. Look here for command line options of
Schtasks
(there's tons of them)Example 1:
Example 2:
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:
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.