Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server SSIS更新SQL任务的ole db命令有问题_Sql Server_Ssis_Sql Update_Datediff - Fatal编程技术网

Sql server SSIS更新SQL任务的ole db命令有问题

Sql server SSIS更新SQL任务的ole db命令有问题,sql-server,ssis,sql-update,datediff,Sql Server,Ssis,Sql Update,Datediff,我有一个包含2个计算列的表,我在OLEDB命令中为update table编写了一个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 n

我有一个包含2个计算列的表,我在OLEDB命令中为update table编写了一个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源和配置。然后问题解决了

错误是什么?(请进入问题)。提供的屏幕截图有助于显示包的哪一部分出现故障。但是,转到Output选项卡(右下角,当前显示调用堆栈)。复制其中的所有文本,单击编辑您的问题并将其粘贴到其中。感谢您的帮助。我将输出错误消息添加到文本中,这不是输出窗口中的所有内容。