如何以编程方式为 DataFlow 设置 AutoAdjustBufferSize 属性?
How to programmatically set the AutoAdjustBufferSize property for a DataFlow?
如何以编程方式为 DataFlow 设置 AutoAdjustBufferSize 属性?即
MainPipe mp = ((TaskHost)p.Executables.Add("DTS.Pipeline")).InnerObject as MainPipe;
mp.AutoAdjustBufferSize = true;
MainPipe only implements the IDTSPipeline100 interface. AutoAdjustBufferSize is not available on the IDTSPipeline100 interface but is available on the IDTSPipeline130界面。因此,您可以执行以下操作之一:
IDTSPipeline130 mp = ((TaskHost)p.Executables.Add("DTS.Pipeline")).InnerObject as IDTSPipeline130;
mp.AutoAdjustBufferSize = true;
或
MainPipe mp = ((TaskHost)p.Executables.Add("DTS.Pipeline")).InnerObject as MainPipe;
(mp as IDTSPipeline130).AutoAdjustBufferSize = true;
“130”classes/interfaces 扩展了一些 SSIS 功能,但仅适用于 SQL Server 2016+;如果您添加了 Microsoft.SQLServer.DTSPipelineWrap 程序集
的 v4.0_13.0.0.0 版本,IDTSPipeline130 itnerface 将可用
如何以编程方式为 DataFlow 设置 AutoAdjustBufferSize 属性?即
MainPipe mp = ((TaskHost)p.Executables.Add("DTS.Pipeline")).InnerObject as MainPipe;
mp.AutoAdjustBufferSize = true;
MainPipe only implements the IDTSPipeline100 interface. AutoAdjustBufferSize is not available on the IDTSPipeline100 interface but is available on the IDTSPipeline130界面。因此,您可以执行以下操作之一:
IDTSPipeline130 mp = ((TaskHost)p.Executables.Add("DTS.Pipeline")).InnerObject as IDTSPipeline130;
mp.AutoAdjustBufferSize = true;
或
MainPipe mp = ((TaskHost)p.Executables.Add("DTS.Pipeline")).InnerObject as MainPipe;
(mp as IDTSPipeline130).AutoAdjustBufferSize = true;
“130”classes/interfaces 扩展了一些 SSIS 功能,但仅适用于 SQL Server 2016+;如果您添加了 Microsoft.SQLServer.DTSPipelineWrap 程序集
的 v4.0_13.0.0.0 版本,IDTSPipeline130 itnerface 将可用