简体   繁体   中英

Windows Task Scheduler and sdf Database

I have a relatively simple C# application which grabs some data from a website and writes it into an sdf database file.

The application itself works just fine - however if i run the application as a scheduled task with the windows task scheduler it does not add anything to the database (it still shows up as running in the task manager, as intended).

So just to clarify it again: Manually starting the exe works just fine (click or command window), but starting it as a task (no matter if scheduled or manually) it runs but does not add anything to the database.

What differences are there between starting an exe manually compared to a task which has a "start program" action?

Sadly this is not really the perfect answer for the question, but I have now got it working by using an SQL Server (MS-SQL 2014 Express).

Apparently .sdf files and the windows task scheduler aren't best friends.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM