📄 dtspkg.h
字号:
//
// DTSPackage COM Server Header file.
//
#ifndef DTSPackage_H_
#pragma option push -b -a8 -pc -A- /*P_O_Push*/
#define DTSPackage_H_
#ifndef DTSPackageVersion_Major
#define DTSPackageVersion_Major 1
#define DTSPackageVersion_Minor 0
#endif // DTSPackageVersion_Major
#ifndef DTSPackage_VersionOnly
/////////////////////////////////////////////////////////////////////////////////////////
// Constant enumerations.
/////////////////////////////////////////////////////////////////////////////////////////
#ifndef DTSPackage_CONSTANTS_
#define DTSPackage_CONSTANTS_
#ifdef DTSPackage_ODL_
#define DTS_ENUM_BEGIN(tdef, hstring) [helpcontext(H_##tdef), helpstring(hstring)] enum
// item = value, ...
#define DTS_ENUM_END(tdef) tdef, *LP##tdef
#else
#define DTS_ENUM_BEGIN(tdef, hstring) DWORD tdef, *LP##tdef; enum tag##tdef
// item = value, ...
#define DTS_ENUM_END(tdef)
#endif
typedef DTS_ENUM_BEGIN(DTSPackageError, "Error ranges for DTSPackage creation and execution") {
DTSPackage_E_NotImplemented = 1001,
DTSPackage_E_OrdOutOfRange = 1002,
DTSPackage_E_NameNotFound = 1003,
DTSPackage_E_NameDup = 1004,
DTSPackage_E_NoStepsDefined = 1005,
DTSPackage_E_Column_OutOfRange = 1006,
DTSPackage_E_ColumnNeedsNameOrOrdinal = 1007,
DTSPackage_E_WrongCollection = 1008,
DTSPackage_E_DatatypeNotFound = 1009,
DTSPackage_E_NeedConnectionInfo = 1010,
DTSPackage_E_ODBC_NeedConnectionInfo = 1011,
DTSPackage_E_NoStepsToExecute = 1012,
DTSPackage_E_DescribeNeedsQuery = 1013,
DTSPackage_E_ColumnsNotDescribed = 1014,
DTSPackage_E_Step_CyclicDependency = 1015,
DTSPackage_E_UsageBeforeDescribeOnly = 1016,
DTSPackage_E_AxScript_CantInitializeEngine = 1017,
DTSPackage_E_AxScript_RequiredParams = 1018,
DTSPackage_E_AxScript_ParseError = 1019,
DTSPackage_E_AxScript_BadFunctionName = 1020,
DTSPackage_E_AxScript_CantAddGlobals = 1021,
DTSPackage_E_AxScript_RunTimeError = 1022,
DTSPackage_E_BadStepStatusValue = 1023,
DTSPackage_E_BadStepResultValue = 1024,
DTSPackage_E_BadTaskResultValue = 1025,
DTSPackage_E_BadPrecedenceBasis = 1026,
DTSPackage_E_BadStepTask = 1027,
DTSPackage_E_RequireConnectionProperties = 1028,
DTSPackage_E_ConnectionRequiresValidTaskName = 1029,
DTSPackage_E_ConnectionInUse = 1030,
DTSPackage_E_CannotFindConnection = 1031,
DTSPackage_E_PumpTask_RequireXforms = 1032,
DTSPackage_E_PumpTask_RequireSrcAndDestColumns = 1033,
DTSPackage_E_PumpTask_RequireRowsetDataSrcInfo = 1034,
DTSPackage_E_PumpTask_RequireXformServer = 1035,
DTSPackage_E_BadPrecedenceStep = 1036,
DTSPackage_E_CreateProcTask_Timeout = 1037,
DTSPackage_E_BadGUIDValue = 1038,
DTSPackage_E_RequireNameForExecOrStg = 1039,
DTSPackage_E_CantFindVersionInStg = 1040,
DTSPackage_E_CantSetCommandProps = 1041,
DTSPackage_E_BadPriorityClass = 1042,
DTSPackage_E_BadRelativePriority = 1043,
DTSPackage_E_CantFindPackageInStg = 1044,
DTSPackage_E_EncryptStg_CantCreateOrWrite = 1045,
DTSPackage_E_EncryptStg_CantOpenOrRead = 1046,
DTSPackage_E_EncryptStg_HandsOnStg = 1047,
DTSPackage_E_EncryptStg_UnsupportedFlags = 1048,
DTSPackage_E_EncryptStg_PasswordNotMatching = 1049,
DTSPackage_E_EncryptStg_RequirePassword = 1050,
DTSPackage_E_EncryptStg_StreamTooLarge = 1051,
DTSPackage_E_Security_InvalidPassword = 1052,
DTSPackage_E_Security_RequireBothPasswords = 1053,
DTSPackage_E_Security_OperatorNotPriveleged = 1054,
DTSPackage_E_SQLTask_RequireSQL = 1055,
DTSPackage_E_UnknownOleDBProperty = 1056,
DTSPackage_E_RequireConnectionID = 1057,
DTSPackage_E_RequireColumnNameAndOrdinal = 1058,
DTSPackage_E_PropertyStringTooLong = 1059,
DTSPackage_E_CantChangeLoadedPkgName = 1060,
DTSPackage_E_NoXformDispatch = 1061,
DTSPackage_E_CannotPersistProperty = 1062,
DTSPackage_E_ExecutionCanceled = 1063,
DTSPackage_E_FailedOnStepError = 1064,
DTSPackage_E_BadForceMode = 1065,
DTSPackage_E_MultiPackageStgNeedsID = 1066,
DTSPackage_E_BadSQLServerStorageFlags = 1067,
DTSPackage_E_NoPackageDataFromServer = 1068,
DTSPackage_E_NeedDestinationColumnDefinitions = 1069,
DTSPackage_E_DSO_OnlyOneSession = 1070,
DTSPackage_E_DSO_OnlyOneRowset = 1071,
DTSPackage_E_DSO_ProviderStringRequired = 1072,
DTSPackage_E_DSO_CantRelaunchPackage = 1073,
DTSPackage_E_DSO_OnlyOneCommand = 1074,
DTSPackage_E_BadPackageDSORowsetTask = 1075,
DTSPackage_E_AbandonedRowQueueDest = 1076,
DTSPackage_E_DataDrivenQueryTask_RequireXforms = 1077,
DTSPackage_E_NeedDataDrivenQueries = 1078,
DTSPackage_E_NeedDataDrivenQueryAndColumns = 1079,
DTSPackage_E_HostFailedPersistence = 1080,
DTSPackage_E_BadLookupConnectionProvider = 1081,
DTSPackage_E_CreateProcessNullCommandLine = 1082,
DTSPackage_E_GeneralTaskFailure = 1083,
DTSPackage_E_XfrTask_SrcInfoIncomplete = 1084,
DTSPackage_E_XfrTask_DestInfoIncomplete = 1085,
DTSPackage_E_XfrTask_InvalidCopyDataOption = 1086,
DTSPackage_E_XfrTask_InvalidObjectType = 1087,
DTSPackage_E_XfrTask_InvalidObjectName = 1088,
DTSPackage_E_XfrTask_InvalidOwnerName = 1089,
DTSPackage_E_XfrTask_CantCreateDMOObject = 1090,
DTSPackage_E_XfrTask_CantConnectToSrc = 1091,
DTSPackage_E_XfrTask_CantGetSrcDB = 1092,
DTSPackage_E_XfrTask_IndexOutOfRange = 1093,
DTSPackage_E_BadStepScriptResultValue = 1094,
DTSPackage_E_AxScript_CantModifyDuringExecute = 1095,
DTSPackage_E_Repos_NotRegistered = 1100,
DTSPackage_E_Repos_CantScanCatalog = 1101,
DTSPackage_E_Repos_ScannedObjectNotFound = 1102,
DTSPackage_E_Repos_ScannedColumnNotFound = 1103,
DTSPackage_E_Repos_BadStorageFlags = 1104,
DTSPackage_E_Repos_CantParseName = 1105,
DTSPackage_E_Repos_ScannedSchemaNotFound = 1106,
DTSPackage_E_Repos_UnscannedColumnNotFound = 1107,
DTSPackage_E_Repos_DuplicatePackageName = 1108,
DTSPackage_E_Repos_ScanRequiresSchemaRowset = 1109,
DTSPackage_E_Repos_GeneralError = 1110,
DTSPackage_E_Repos_InvalidMetadataOptions = 1111,
DTSPackage_E_Repos_PackageNotFound = 1112,
DTSPackage_E_Lineage_BadOptions = 1120,
DTSPackage_E_Lineage_NoRepositoryContext = 1121,
DTSPackage_E_Lineage_CantOpenRepository = 1122,
DTSPackage_E_Lineage_RepositoryError = 1123,
DTSPackage_E_Lineage_PackageVersionFrozen = 1124,
DTSPackage_E_Lineage_ErrorWritingToRepos = 1125,
DTSPackage_E_Trx_InvalidIsolationLevel = 1130,
DTSPackage_E_Trx_TaskCannotJoinTransaction = 1131,
DTSPackage_E_Trx_ConnCannotJoinTransaction = 1132,
DTSPackage_E_Trx_BeginFailed = 1133,
DTSPackage_E_Trx_StepCommitFailed = 1134,
DTSPackage_E_Trx_PackageCommitFailed = 1135,
DTSPackage_E_Trx_DTCNotAvailable = 1136,
DTSPackage_E_Trx_TrxNoLongerActive = 1137,
DTSPackage_E_MailTask_NoMAPIInterfaceLayer = 1150,
DTSPackage_E_MailTask_CantInitializeMAPI = 1151,
DTSPackage_E_MailTask_LogonFailure = 1152,
DTSPackage_E_MailTask_SendFailure = 1153,
DTSPackage_E_MailTask_NotInitialized = 1154,
DTSPackage_E_MailTask_GeneralFailure = 1155,
DTSPackage_E_BulkInsertTask_RequireTableName = 1156,
DTSPackage_E_BulkInsertTask_RequireDataFile = 1157,
DTSPackage_E_InvalidFastLoadOptions = 1170,
DTSPackage_E_EncryptStg_CantInit = 1171,
DTSPackage_E_NoFastLoadWithDataLink = 1172,
DTSPackage_E_NoFastLoad = 1173,
DTSPackage_E_ProcTaskReturnCodeNotSuccess = 1174,
DTSPackage_E_SaveTo70OrLater = 1175,
DTSPackage_E_SQLServerLicenseError = 1176,
} DTS_ENUM_END(DTSPackageError);
typedef DTS_ENUM_BEGIN(DTSStepExecStatus, "Execution status of this DTSStep") {
DTSStepExecStat_Waiting = 0x0001,
DTSStepExecStat_InProgress = 0x0002,
DTSStepExecStat_Inactive = 0x0003,
DTSStepExecStat_Completed = 0x0004, // Or'd with completion bits below.
} DTS_ENUM_END(DTSStepExecStatus);
typedef DTS_ENUM_BEGIN(DTSStepExecResult, "Execution Result of this DTSStep") {
DTSStepExecResult_Success = 0x0000,
DTSStepExecResult_Failure = 0x0001,
} DTS_ENUM_END(DTSStepExecResult);
typedef DTS_ENUM_BEGIN(DTSStepScriptResult, "Return code from Active Script associated with a step indicating flow of control for task execution") {
DTSStepScriptResult_ExecuteTask = 0x0000,
DTSStepScriptResult_DontExecuteTask = 0x0001,
DTSStepScriptResult_RetryLater = 0x0002,
} DTS_ENUM_END(DTSStepScriptResult);
typedef DTS_ENUM_BEGIN(DTSTaskExecResult, "Execution Result of Task") {
DTSTaskExecResult_Success = 0x0000,
DTSTaskExecResult_Failure = 0x0001,
DTSTaskExecResult_RetryStep = 0x0002,
} DTS_ENUM_END(DTSTaskExecResult);
typedef DTS_ENUM_BEGIN(DTSStepPrecedenceBasis, "Step precedence is based either on Step Status or Result") {
DTSStepPrecedenceBasis_ExecStatus = 0x0000,
DTSStepPrecedenceBasis_ExecResult = 0x0001,
} DTS_ENUM_END(DTSStepPrecedenceBasis);
typedef DTS_ENUM_BEGIN(DTSStepRelativePriority, "Win32 Thread Relative Priority to be used for Step Task") {
DTSStepRelativePriority_Lowest = 0x0001,
DTSStepRelativePriority_BelowNormal = 0x0002,
DTSStepRelativePriority_Normal = 0x0003,
DTSStepRelativePriority_AboveNormal = 0x0004,
DTSStepRelativePriority_Highest = 0x0005,
} DTS_ENUM_END(DTSStepRelativePriority);
typedef DTS_ENUM_BEGIN(DTSPackagePriorityClass, "Win32 Process Priority Class to be used for the package.") {
DTSPriorityClass_Low = 0x0001,
DTSPriorityClass_Normal = 0x0002,
DTSPriorityClass_High = 0x0003,
} DTS_ENUM_END(DTSPackagePriorityClass);
typedef DTS_ENUM_BEGIN(DTSIsolationLevel, "Isolation level at which Package transaction executes (default is ReadCommitted).") {
DTSIsoLevel_Chaos = 0x10,
DTSIsoLevel_ReadUncommitted = 0x100,
DTSIsoLevel_Browse = 0x100,
DTSIsoLevel_CursorStability = 0x1000,
DTSIsoLevel_ReadCommitted = 0x1000,
DTSIsoLevel_RepeatableRead = 0x10000,
DTSIsoLevel_Serializable = 0x100000,
DTSIsoLevel_Isolated = 0x100000
} DTS_ENUM_END(DTSIsolationLevel);
typedef DTS_ENUM_BEGIN(DTSForceMode, "Overrides default handling of associated property") {
DTSForceMode_Default = 0x0000,
DTSForceMode_Always = 0x0001,
DTSForceMode_Never = 0x0002,
} DTS_ENUM_END(DTSForceMode);
typedef DTS_ENUM_BEGIN(DTSErrorMode, "Handling of Error conditions encountered while executing Steps in the Package") {
#ifdef DTSPackage_INTERNAL
DTSErrorMode_Unknown = 0x0000, // Not yet set
#endif // DTSPackage_INTERNAL
DTSErrorMode_Continue = 0x0001, // Log exceptions (if specified) and continue
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -