带有问题 ole db 命令的 SSIS 更新 SQL 任务
SSIS update SQL task with problem ole db command
我有一个带有 2 个计算列的 table,我在 OLE DB 命令中写了一个 SQL 命令用于更新 table
但是 运行 有错误
UPDATE [dbo].[FctRides]
SET
[trip finish]= case when [Finish] is null then [Expire] else [Finish] end
,[trip duration] = DATEDIFF("MI",[Start],(case when [Finish] is null then [Expire] else [Finish] end))
,[VendorId] =?
,[VehicleId] =?
,[RegionId] = ?
,[Status] = ?
,[Book] = ?
,[Start] = ?
,[Finish] = ?
,[Expire] =?
,[SourceId] = ?
,[DestinationId] = ?
,[Distance] = ?
,[Tariff] =?
,[Cost] = ?
,[Deleted] = ?
WHERE [RideId]=?
输出消息是
Information: 0x40043009 at bicycle_fact_rides, SSIS.Pipeline: Cleanup phase is beginning.
Task failed: bicycle_fact_rides
Warning: 0x80019002 at Package: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised (3) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
SSIS package "C:\Users\Shahram\source\repos\ssis bicycle\ssis bicycle\Package.dtsx" finished: Failure.
我更改了我的 OLE DB 源并重新配置。然后问题解决了
Data flow diagram
OLE DB Command
我有一个带有 2 个计算列的 table,我在 OLE DB 命令中写了一个 SQL 命令用于更新 table
但是 运行 有错误
UPDATE [dbo].[FctRides]
SET
[trip finish]= case when [Finish] is null then [Expire] else [Finish] end
,[trip duration] = DATEDIFF("MI",[Start],(case when [Finish] is null then [Expire] else [Finish] end))
,[VendorId] =?
,[VehicleId] =?
,[RegionId] = ?
,[Status] = ?
,[Book] = ?
,[Start] = ?
,[Finish] = ?
,[Expire] =?
,[SourceId] = ?
,[DestinationId] = ?
,[Distance] = ?
,[Tariff] =?
,[Cost] = ?
,[Deleted] = ?
WHERE [RideId]=?
输出消息是
Information: 0x40043009 at bicycle_fact_rides, SSIS.Pipeline: Cleanup phase is beginning.
Task failed: bicycle_fact_rides
Warning: 0x80019002 at Package: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised (3) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
SSIS package "C:\Users\Shahram\source\repos\ssis bicycle\ssis bicycle\Package.dtsx" finished: Failure.
我更改了我的 OLE DB 源并重新配置。然后问题解决了 Data flow diagram OLE DB Command