SSIS 利用C#计入简单日志

string path = this.Dts.Variables["v_path_phdi"].Value.ToString() + "\\Log.txt";
using (StreamWriter sw = new StreamWriter(path, true))
{
sw.WriteLine("报错");
}

Dts.TaskResult = (int)ScriptResults.Success;

posted @ 2017-08-31 14:04  p01114245  阅读(162)  评论(0)    收藏  举报