Lock variables in Script Task using C#

后端 未结 1 654
攒了一身酷
攒了一身酷 2021-01-28 12:27

I\'m running a SQL Server Agent Job which has a script task with Microsoft Visual C# 2008 which is below:

public void Main()
{
        string filepath;
        f         


        
相关标签:
1条回答
  • 2021-01-28 13:04

    Try converting your bool to an int.

    Dts.Variables["User::FileExistsFlg"].Value = Convert.ToInt32(File.Exists(filepath));
    
    0 讨论(0)
提交回复
热议问题