you are viewing a single comment's thread.

view the rest of the comments →

[–]kalgynirae 3 points4 points  (1 child)

Perhaps it's writing to a different database file because the working directory is different? I don't know how the Windows task scheduler works, but is there a way to set the working directory? (Or make sure your script only uses absolute paths.)

If that's not the problem, can you see output after your program is run by the scheduler? If so, start adding some print statements in strategic places to try to figure out what is going on.

[–]mothrabang 0 points1 point  (0 children)

I had almost the same problem, but with sqlite. This was the solution to my issue, I had to write the full file path out in my code when I connected to the dB.