【发布时间】:2018-04-21 16:58:29
【问题描述】:
在过去的一周里,我一直致力于在 SSIS 中创建一个包,它将从 Access 数据库中提取、转换数据,然后将数据加载到 SQL Server 数据库中。最初,我创建了两个单独的包来处理从 Access 中的同一个表迁移数据位,对其进行转换,然后将其加载到 SQL Server 中的两个不同表中。这些是单独工作的,但现在我试图将它们折叠成一个包。
根据我的调查,这是非常可行的(拥有一个包含两个源和目标的数据流的包),但由于某种原因,我无法让它工作。查看我得到的错误代码,人们建议使用数据转换,但我之前遇到过关于我使用数据转换解决的数据类型的错误。
我运行包时SSIS向我抛出的错误如下:
Error: 0xC0202009 at Data Flow Task, InfoTable [52]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "Unspecified error".
Error: 0xC020901C at Data Flow Task, InfoTable [52]: There was an error with InfoTable.Inputs[OLE DB Destination Input].Columns[Copy of Parameter] on InfoTable.Inputs[OLE DB Destination Input]. The column status returned was: "The value violated the integrity constraints for the column.".
Error: 0xC0209029 at Data Flow Task, InfoTable [52]: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "InfoTable.Inputs[OLE DB Destination Input]" failed because error code 0xC020907D occurred, and the error row disposition on "InfoTable.Inputs[OLE DB Destination Input]" specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information about the failure.
Error: 0xC0047022 at Data Flow Task, SSIS.Pipeline: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "InfoTable" (52) failed with error code 0xC0209029 while processing input "OLE DB Destination Input" (65). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. There may be error messages posted before this with more information about the failure.
提前感谢您提供的任何帮助!
【问题讨论】:
-
我现在知道这不是重复的。首先,我看到您最近的 2 个问题看起来像是重复的,然后在您的个人资料页面上,我将这里的问答误认为是两个(重复)问题。不过,您确实需要提供更多信息,例如“当我运行数据库时”的确切含义以及 minimal reproducible example 的其余部分。
标签: sql-server ms-access ssis database-migration error-code