如何解决SSIS 使用问题 ole db 命令更新 SQL 任务
我有一个包含 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.
解决方法
我再次更改了我的 OLE DB 源和配置。然后问题解决了 Data flow diagram OLE DB Command
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。