【发布时间】:2021-03-01 19:38:41
【问题描述】:
我有一个包含 2 个计算列的表,我在 OLE DB 命令中编写了一个 SQL 命令来更新表
但运行时出错
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.
【问题讨论】:
-
错误是什么? (请edit提问)。
-
提供的屏幕截图有助于显示包的哪些部分失败。但是,转到输出选项卡(右下角,当前显示调用堆栈)。复制其中的所有文本,单击问题上的编辑并将其粘贴到那里。
-
感谢您的帮助。我将输出错误消息添加到文本中
-
这不是输出窗口中的全部内容。
标签: sql-server ssis sql-update datediff