本文介绍了访问/ SQL /计划任务问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 - 我不确定在哪个论坛发帖,所以我从这里开始。 我会尽量保持简短但有一点背景:

Hi - I am not sure which forum to post this on so I am starting here.  I will try to keep it brief but a little background is necessary:

我有一个计划任务,用于调用批处理文件(批处理文件从服务器获取文件并打开mdb文件。 
在该.mdb文件中,导入数据,然后对该数据运行Access查询,然后通过Access DB打开SQL服务器,并将数据加载到SQL)。

I have a scheduled task that runs to call a batch file (the batch file gets files from a server and opens an mdb file. In that .mdb file, data is imported, then Access queries run on that data and then SQL server is opened through Access DB and data is loaded to SQL).

最近,我注意到该程序正在运行,但SQL负载是没有发生。 因此,除了SQL加载之外,所有其他任务都正确执行。


现在,我发现如果我打电话给.mdb文件直接来自计划任务,而不是调用批处理文件,然后整个操作运行,SQL确实被加载。



所以,似乎问题是,如果我从计划任务调用批处理文件,那么它将不会加载SQL但如果我从计划任务调用mdb文件,它将加载SQL。


请告知您是否需要更多信息,请告知我是否应将其包含在其他论坛中。

Please advise if you need more information and please advise if I should include this on a different forum.



谢谢,



JenG



推荐答案

你提到过"问题是,如果我从计划任务调用批处理文件
,那么它将不会加载SQL,但如果我从计划任务调用mdb文件,它将加载SQL
"。在这里,我需要与您确认是否检查了日志。是否显示错误?有错误我们可以找到
这个问题的原因。请与我们分享。

You have mentioned that "problem is that if I call a batch file from the scheduled task then it will not load SQL but if I call an mdb file from the scheduled task, it will load SQL". Here I need to confirm with you that have you check the log. Is it displays some errors? With the errors we can find the cause of this issue. Please share it with us.

问候

Deepak


这篇关于访问/ SQL /计划任务问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 00:34