Windows任务计划程序不会从C#控制台应用程序写入SQL数据库

Windows任务计划程序不会从C#控制台应用程序写入SQL数据库

问题描述:

Hello



这是我从未做过的事情如果这是一个愚蠢的问题我会道歉。



我有一个ac #console应用程序,当它在本地运行时它可以很好地工作。但是,当我尝试从任务调度程序中运行它时,它会运行,但它不会写入SQL数据库。



我的文件夹具有读写权限。此任务也以管理员身份运行并具有最高权限。当我检查任务历史记录时,它说完了
没有错误。




任何帮助都将受到赞赏 



谢谢

您好,

您是否进行过任何尝试并将服务调试到写操作发生的位置?通过调试,这意味着写入事件日志,看看是否在try / catch语句中抛出任何异常。

Have you made any attempts and debugging the service to where the write operations occurs? By debugging this would mean writing to the event log, see if there are any exceptions thrown if in a try/catch statement.

像这样的东西