【发布时间】:2016-04-26 09:10:55
【问题描述】:
我需要一些有关 SQL Server 2014 目录的帮助。 我正在开发一个 SSIS 包,该包将从一个脚本任务开始,该任务将检查源文件是否存在。 如果需要的文件不存在,我需要将成功作为打包结果返回,但还需要在日志中写一条消息,说明没有源文件或其他东西.. 这是我的测试
String FilePathEXOR = Dts.Variables["$FilePath"].Value.ToString() + "\\" + DateTime.Now.ToString("yyyyMMdd") + ".csv";
if (!File.Exists(FilePathEXOR))
{
Dts.Variables["User::VAR_BOOL_File_Verif_EXOM"].Value = false;//Variable that will tell if we continue or not the package execution
Dts.TaskResult = (int)ScriptResults.Success;
//Writing Some message in the catalogue saying that we've passed the package to success but there was no integration because we didn't find the Source files
}
谢谢...
【问题讨论】:
标签: error-handling ssis sql-server-2014 catalog