【问题标题】:Develop an SSIS Custom Component with two sources and one target开发具有两个源和一个目标的 SSIS 自定义组件
【发布时间】:2020-12-17 19:34:47
【问题描述】:

我正在开发我的第一个 SSIS 自定义组件,我需要它有两个源和一个输出,但是当我部署该组件时,结果发现我双击它并且“高级编辑器”没有出现,所以我不能在我的输出中添加列。 我认为问题可能是我添加输入列的方式。我正在“ProvideComponentProperties()”方法中创建我的列。这是正确的方法吗? 这是我的一些代码

       public override void ProvideComponentProperties()
        {
            this.ComponentMetaData.UsesDispositions = true;

            // Input data flow 0
            var input0 = this.ComponentMetaData.InputCollection.New();
            input0.Name = "Input 0";
            input0.Description = "Input 0 description";
            input0.HasSideEffects = false;
            input0.ErrorRowDisposition = DTSRowDisposition.RD_RedirectRow;
            input0.ErrorOrTruncationOperation = "ValidationFailure";

            // Input data flow 1
            var input1 = this.ComponentMetaData.InputCollection.New();
            input1.Name = "Input 1";
            input1.Description = "Input 1 description";
            input1.HasSideEffects = false; 
            input1.ErrorRowDisposition = DTSRowDisposition.RD_RedirectRow;
            input1.ErrorOrTruncationOperation = "ValidationFailure";

            // Async output
            var output1 = this.ComponentMetaData.OutputCollection.New();
            output1.Name = "Output";
            output1.Description = "My output";
            output1.HasSideEffects = false;
            output1.SynchronousInputID = 0;
            output1.ExclusionGroup = 0;

            var col1 = ComponentMetaData.CustomPropertyCollection.New();
            col1.Name = "My custom property 1";
            var col2 = ComponentMetaData.CustomPropertyCollection.New();
            col2.Name = "My custom property 2";
        }

我正在使用 Visual Studio 2012 和 .NET Framework 4。

【问题讨论】:

    标签: c# sql-server-2012 ssis-2012


    【解决方案1】:
    猜你喜欢
    • 1970-01-01
    • 2014-08-13
    • 1970-01-01
    • 2012-05-12
    • 2018-04-22
    • 1970-01-01
    • 2015-06-11
    • 2011-08-26
    • 1970-01-01
    相关资源
    最近更新 更多