屬性運算式中的列舉常數

適用於:SQL Server Azure Data Factory 中的 SSIS Integration Runtime

如果屬性運算式包含來自列舉值成員清單的值,運算式必須使用列舉值成員的數值來取代成員的易記名稱。 例如,如果運算式設定了 LoggingMode 屬性,您就必須使用數值 2 來取代易記名稱 Disabled。

此主題列出相當於列舉值易記名稱的數值,但僅限屬性運算式中常用之成員所屬的列舉值。 Integration Services 物件模型包含其他許多列舉元,您在設計物件模型程式以程式設計方式建置套件,或是對自訂套件元素 (例如工作和資料流程元件) 進行編碼時,都會使用這些列舉元。

除了套件和套件物件適用的自訂屬性以外,SQL Server Data Tools (SSDT) 中的 [屬性] 視窗還包含一組可用於套件、工作以及「Foreach 迴圈」、「For 迴圈」和「序列」等容器的屬性。 由列舉程式值設定的通用屬性會列在 [通用屬性] 區段中:ForceExecutionResultLoggingModeIsolationLevelTransaction Option

下列章節提供有關列舉常數的資訊:

套件

Foreach 迴圈列舉值

工作

維護計畫工作

Common Properties

套件

下列表格列出使用來自列舉值的值所設定之封裝屬性的易記名稱和數值相等項。

PackageType 屬性:使用來自 DTSPackageType 列舉的值進行設定。

DTSPackageType 中的易記名稱 數值
預設 0
DTSWizard 1
DTSDesigner 2
SQLReplication 3
DTSDesigner100 5
SQLDBMaint 6

CheckpointUsage 屬性:使用來自 DTSCheckpointUsage 列舉的值進行設定。

DTSCheckpointUsage 中的易記名稱 數值
永不 0
IfExists 1
一律 2

PackagePriorityClass 屬性:使用來自 DTSPriorityClass 列舉的值進行設定。

DTSPriorityClass 中的易記名稱 數值
預設 0
AboveNormal 1
正常 2
BelowNormal 3
閒置 4

ProtectionLevel 屬性:使用來自 DTSProtectionLevel 列舉的值進行設定。

DTSProtectionLevel 中的易記名稱 數值
DontSaveSensitive 0
EncryptSensitiveWithUserKey 1
EncryptSensitiveWithPassword 2
EncryptAllWithPassword 3
EncryptAllWithUserKey 4
ServerStorage 5

優先順序條件約束

EvalOp 屬性:使用來自 DTSPrecedenceEvalOp 列舉的值進行設定。

DTSPrecedenceEvalOp 中的易記名稱 數值
運算式 1
條件約束 2
ExpressionAndConstraint 3
ExpressionOrConstraint 4

Value 屬性:使用來自 DTSExecResult 列舉的值進行設定。

易記名稱 數值
Success 0
失敗 1
Completion 2
已取消 3

Foreach 迴圈列舉值

「Foreach 迴圈」包含一組列舉值,其屬性可由屬性運算式設定。

Foreach ADO 列舉值

Type 屬性:使用來自 ADOEnumerationType 列舉的值進行設定。

ADOEnumerationType 中的易記名稱 數值
EnumerateTables 0
EnumerateAllRows 1
EnumerateRowsInFirstTable 2

Foreach NodeList 列舉值

SourceDocumentTypeInnerXPathStringSourceTypeOuterXPathStringSourceType 屬性:使用來自 SourceType 列舉的值進行設定。

SourceType 中的易記名稱 數值
FileConnection 0
變數 1
DirectInput 2

EnumerationType 屬性:使用來自 EnumerationType 列舉的值進行設定。

EnumerationType 中的易記名稱 數值
導覽器 0
節點 1
NodeText 2
ElementCollection 3

InnerElementType 屬性:使用來自 InnerElementType 列舉的值進行設定。

InnerElementType 中的易記名稱 數值
導覽器 0
節點 1
NodeText 2

工作

Integration Services 包含許多工作,其屬性可由屬性運算式設定。

Analysis Services 執行 DDL 工作

SourceType 屬性:使用來自 DDLSourceType 列舉的值進行設定。

DDLSourceType 中的易記名稱 數值
DirectInput 0
FileConnection 1
變數 2

大量插入工作

DataFileType 屬性:使用來自 DTSBulkInsert_DataFileType 列舉的值進行設定。

DTSBulkInsert_DataFileType 中的易記名稱 數值
DTSBulkInsert_DataFileType_Char 0
DTSBulkInsert_DataFileType_Native 1
DTSBulkInsert_DataFileType_WideChar 2
DTSBulkInsert_DataFileType_WideNative 3

執行 SQL 工作

ResultSetType 屬性:使用來自 ResultSetType 列舉的值進行設定。

ResultSetType 中的易記名稱 數值
ResultSetType_None 1
ResultSetType_SingleRow 2
ResultSetType_Rowset 3
ResultSetType_XML 4

SqlStatementSourceType 屬性:使用來自 SqlStatementSourceType 列舉的值進行設定。

SqlStatementSourceType 中的易記名稱 數值
DirectInput 1
FileConnection 2
變數 3

檔案系統工作

Operation 屬性:使用 DTSFileSystemOperation 列舉的值進行設定。

DTSFileSystemOperation 中的易記名稱 數值
CopyFile 0
MoveFile 1
DeleteFile 2
RenameFile 3
SetAttributes 4
CreateDirectory 5
CopyDirectory 6
MoveDirectory 7
DeleteDirectory 8
DeleteDirectoryContent 9

Attributes 屬性:使用 DTSFileSystemAttributes 列舉的值進行設定。

DTSFileSystemAttributes 中的易記名稱 數值
正常 0
封存 1
Hidden 2
唯讀 4
系統 8

FTP 工作

Operation 屬性:使用 DTSFTPOp 列舉的值進行設定。

DTSFTPOp 中的易記名稱 數值
Send 0
接收 1
DeleteLocal 2
DeleteRemote 3
MakeDirLocal 4
MakeDirRemote 5
RemoveDirLocal 6
RemoveDirRemote 7

Message Queue Task

MessageType 屬性:使用來自 MQMessageType 列舉的值進行設定。

MQMessageType 中的易記名稱 數值
DTSMQMessageType_String 0
DTSMQMessageType_DataFile 1
DTSMQMessageType_Variables 2
DTSMQMessagType_StringMessageToVariable 3

StringCompareType 屬性:使用來自 MQStringMessageCompare 列舉的值進行設定。

MQStringMessageCompare 中的易記名稱 數值
DTSMQStringMessageCompare_None 0
DTSMQStringMessageCompare_Exact 1
DTSMQStringMessageCompare_IgnoreCase 2
DTSMQStringMessageCompare_Contains 3

TaskType 屬性:使用來自 MQType 列舉的值進行設定。

MQType 中的易記名稱 數值
DTSMQType_Sender 0
DTSMQType_Receiver 1

傳送郵件工作

MessageSourceType 屬性:使用來自 SendMailMessageSourceType 列舉的值進行設定。

SendMailMessageSourceType 中的易記名稱 數值
DirectInput 0
FileConnection 1
變數 2

Priority 屬性:使用來自 MailPriority 列舉的值進行設定。

MailPriority 中的易記名稱 數值
1
正常 3
5

傳送資料庫工作

Action 屬性:使用來自 TransferAction 列舉的值進行設定。

TransferAction 中的易記名稱 數值
複製 0
移動 1

Method 屬性:使用來自 TransferMethod 列舉的值設定。

TransferMethod 中的易記名稱 數值
DatabaseOffline 0
DatabaseOnline 1

傳送錯誤訊息工作

IfObjectExists 屬性:使用來自 IfObjectExists 列舉的值設定。

IfObjectExists 中的易記名稱 數值
FailTask 0
Overwrite 1
跳過 2

傳送作業工作

IfObjectExists 屬性:使用來自 IfObjectExists 列舉的值設定。

IfObjectExists 中的易記名稱 數值
FailTask 0
Overwrite 1
跳過 2

傳送登入工作

IfObjectExists 屬性:使用來自 IfObjectExists 列舉的值設定。

IfObjectExists 中的易記名稱 數值
FailTask 0
Overwrite 1
跳過 2

LoginsToTransfer 屬性:使用來自 LoginsToTransfer 列舉的值進行設定。

LoginsToTransfer 中的易記名稱 數值
AllLogins 0
SelectedLogins 1
AllLoginsFromSelectedDatabases 2

傳送主要預存程序工作

IfObjectExists 屬性:使用來自 IfObjectExists 列舉的值設定。

IfObjectExists 中的易記名稱 數值
FailTask 0
Overwrite 1
跳過 2

傳送 SQL Server 物件工作

ExistingData 屬性:使用來自 ExistingData 列舉的值設定。

ExistingData 中的易記名稱 數值
取代 0
附加 1

Web 服務工作

OutputType 屬性:使用來自 DTSOutputType 列舉的值進行設定。

DTSOutputType 中的易記名稱 數值
檔案 0
變數 1

WMI 資料讀取器工作

OverwriteDestination 屬性:使用來自 OverwriteDestination 列舉的值設定。

OverwriteDestination 中的易記名稱 數值
OverwriteDestination 0
AppendToDestination 1
KeepOriginal 2

OutputType 屬性:使用來自 OutputType 列舉的值進行設定。

OutputType 中的易記名稱 數值
DataTable 0
PropertyValue 1
PropertyNameAndValue 2

DestinationType 屬性:使用來自 DestinationType 列舉的值進行設定。

DestinationType 中的易記名稱 數值
FileConnection 0
變數 1

WqlQuerySourceType 屬性:使用來自 QuerySourceType 列舉的值進行設定。

QuerySourceType 中的易記名稱 數值
FileConnection 0
DirectInput 1
變數 2

WMI 事件監看員 ActionAtEvent 屬性:使用來自 ActionAtEvent 列舉的值進行設定。

ActionAtEvent 中的易記名稱 數值
LogTheEventAndFireDTSEvent 0
LogTheEvent 1

ActionAtTimeout 屬性:使用來自 ActionAtTimeout 列舉的值進行設定。

ActionAtTimeout 中的易記名稱 數值
LogTimeoutAndFireDTSEvent 0
LogTimeout 1

AfterEvent 屬性:使用來自 AfterEvent 列舉的值進行設定。

AfterEvent 中的易記名稱 數值
ReturnWithSuccess 0
ReturnWithFailure 1
WatchfortheEventAgain 2

AfterTimeout 屬性:使用來自 AfterTimeout 列舉的值進行設定。

AfterTimeout 中的易記名稱 數值
ReturnWithSuccess 0
ReturnWithFailure 1
WatchfortheEventAgain 2

WqlQuerySourceType 屬性:使用來自 QuerySourceType 列舉的值進行設定。

QuerySourceType 中的易記名稱 數值
FileConnection 0
DirectInput 1
變數 2

XML 工作

OperationType 屬性:使用來自 DTSXMLOperation 列舉的值進行設定。

DTSXMLOperation 中的易記名稱 數值
Validate 0
XSLT 1
XPATH 2
合併 3
Diff 4
Patch 5

SourceTypeSecondOperandTypeXPathSourceType 屬性:使用來自 DTSXMLSourceType 列舉的值進行設定。

DTSXMLSourceType 中的易記名稱 數值
FileConnection 0
變數 1
DirectInput 2

DestinationTypeDiffGramDestinationType 屬性:使用來自 DTSXMLSaveResultTo 列舉的值進行設定。

DTSXMLSaveResultTo 中的易記名稱 數值
FileConnection 0
變數 1

ValidationType 屬性:使用來自 DTSXMLValidationType 列舉的值進行設定。

DTSXMLValidationType 中的易記名稱 數值
DTD 0
XSD 1

XPathOperation 屬性:使用來自 DTSXMLXPathOperation 列舉的值進行設定。

DTSXMLXPathOperation 中的易記名稱 數值
評估 0
1
NodeList 2

DiffOptions 屬性:使用來自 DTSXMLDiffOptions 列舉的值進行設定。 此列舉值中的選項不會互斥。 若要使用多個選項,請提供要套用之選項的逗號分隔清單。

DTSXMLDiffOptions 中的易記名稱 數值
None 0
IgnoreChildOrder 1
IgnoreComments 2
IgnorePI 4
IgnoreWhitespace 8
IgnoreNamespaces 16
IgnorePrefixes 32
IgnoreXmlDecl 64
IgnoreDtd 128

DiffAlgorithm 屬性:使用來自 DTSXMLDiffAlgorithm 列舉的值進行設定。

DTSXMLDiffAlgorithm 中的易記名稱 數值
自動 0
快速 1
精確 2

維護計畫工作

Integration Services 包含一組工作,用以執行要在維護計畫和 Integration Services 套件中使用的 SQL Server 工作。

SQL Server 不支援以程式設計方式處理這些工作,而且程式設計參考文件也不包括這些工作及其列舉元的 API 文件。

所有維護工作

所有維護工作都使用下列列舉來設定指定的屬性。

DatabaseSelectionType 屬性:使用來自 DatabaseSelection 列舉的值進行設定。

DatabaseSelection 中的易記名稱 數值
None 0
全部 1
系統 2
User 3
特定 4

TableSelectionType 屬性:使用來自 TableSelection 列舉的值進行設定。

TableSelection 中的易記名稱 數值
None 0
全部 1
特定 2

ObjectTypeSelection 屬性:使用來自 ObjectType 列舉的值進行設定。

ObjectType 中的易記名稱 數值
Table 0
檢視 1
TableView 2

備份資料庫工作

DestinationCreationType 屬性:使用來自 DestinationType 列舉的值進行設定。

DestinationType 中的易記名稱 數值
自動 0
手動 1

ExistingBackupsAction 屬性:使用來自 ActionForExistingBackups 列舉的值設定。

ActionForExistingBackups 中的易記名稱 數值
附加 0
Overwrite 1

BackupAction 屬性:使用來自 BackupTaskType 列舉的值進行設定。 此屬性可搭配 BackupIsIncremental 屬性使用,以定義工作執行的備份類型。

BackupTaskType 中的易記名稱 數值
資料庫 0
檔案儲存體 1
Log 2

BackupDevice 屬性:使用來自 SQL Server 管理物件 (SMO) DeviceType 列舉的值進行設定。

DeviceType 中的易記名稱 數值
LogicalDevice 0
磁帶 1
檔案 2
Pipe 3
VirtualDevice 4

維護清除工作

FileTypeSelected 屬性:使用來自 FileType 列舉的值進行設定。

FileType 中的易記名稱 數值
FileBackup 0
FileReport 1

OlderThanTimeUnitType 屬性:使用來自 TimeUnitType 列舉的值進行設定。

TimeUnitType 中的易記名稱 數值
Day 0
1
Month 2
Year 3

更新統計資料工作

UpdateType 屬性:使用來自 SQL Server 管理物件 (SMO) StatisticsTarget 列舉的值進行設定。

StatisticsTarget 中的易記名稱 數值
資料行 1
索引 2
全部 3

通用屬性

封裝、工作以及「Foreach 迴圈」、「For 迴圈」和「時序」等容器可以使用下列列舉來設定指定的屬性。

ForceExecutionResult 屬性:使用來自 DTSForcedExecResult 列舉的值設定。

DTSForcedExecResult 中的易記名稱 數值
None -1
Success 0
失敗 1
Completion 2

IsolationLevel 屬性:由 .NET Framework IsolationLevel 列舉設定。 如需詳細資訊,請參閱 MSDN Library中的<.NET Framework 類別庫>。

LoggingMode 屬性:使用來自 DTSLoggingMode 列舉的值進行設定。

DTSLoggingMode 中的易記名稱 數值
UseParentSetting 0
啟用 1
已停用 2

TransactionOption 屬性:使用來自 DTSTransactionOption 列舉的值進行設定。

DTSTransactionOption 中的易記名稱 數值
NotSupported 0
支援 1
必要 2

新增或變更屬性運算式

另請參閱

在封裝中使用屬性運算式
Integration Services (SSIS) 封裝
Integration Services 容器
Integration Services 工作
優先順序條件約束