共用方式為


EngineThreads 屬性

Gets or sets the number of threads a data flow task uses.

命名空間:  Microsoft.SqlServer.Dts.Pipeline.Wrapper
組件:  Microsoft.SqlServer.DTSPipelineWrap (在 Microsoft.SqlServer.DTSPipelineWrap.dll 中)

語法

'宣告
Public Overridable Property EngineThreads As Integer
    Get
    Set
'用途
Dim instance As MainPipeClass
Dim value As Integer

value = instance.EngineThreads

instance.EngineThreads = value
public virtual int EngineThreads { get; set; }
public:
virtual property int EngineThreads {
    int get ();
    void set (int value);
}
abstract EngineThreads : int with get, set
override EngineThreads : int with get, set
function get EngineThreads () : int
function set EngineThreads (value : int)

屬性值

型別:System. . :: . .Int32
The number of threads the data flow task can use during execution.

實作

IDTSPipeline100. . :: . .EngineThreads

備註

The default value for this property is 5. The value of 1 is not permitted.

This property provides a suggestion to the data flow engine about the number of threads to use. However, the engine will not use more threads than it needs, regardless of the value of this property. The engine may also use more threads than specified in this property, if necessary to avoid concurrency issues.

For more information, see 執行計劃和緩衝區配置.

For a brief discussion of this property and related properties that can be used to optimize the performance of the Data Flow task, see 改善資料流程的效能.