【问题标题】:Error 0xc0202009 while importing a text file to SQL Server using Microsoft SQL Server Management Studio 17使用 Microsoft SQL Server Management Studio 17 将文本文件导入 SQL Server 时出现错误 0xc0202009
【发布时间】:2026-02-24 02:50:01
【问题描述】:

我正在尝试使用 sql server management studio 17 将 200k 行的文本文件导入 sql server。但它显示以下错误:

Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available.  Source: "Microsoft OLE DB Provider for SQL Server"  Hresult: 0x80004005  Description: "Invalid character value for cast specification.".
 (SQL Server Import and Export Wizard)

Error 0xc020901c: Data Flow Task 1: There was an error with Destination - DimStudent.Inputs[Destination Input].Columns[DateOfBirth] on Destination - DimStudent.Inputs[Destination Input]. The column status returned was: "Conversion failed because the data value overflowed the specified type.".
 (SQL Server Import and Export Wizard)


Error 0xc0209029: Data Flow Task 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "Destination - DimStudent.Inputs[Destination Input]" failed because error code 0xC020907A occurred, and the error row disposition on "Destination - DimStudent.Inputs[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.
 (SQL Server Import and Export Wizard)

Error 0xc0047022: Data Flow Task 1: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "Destination - DimStudent" (158) failed with error code 0xC0209029 while processing input "Destination Input" (171). 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.
 (SQL Server Import and Export Wizard)

Error 0xc02020c4: Data Flow Task 1: The attempt to add a row to the Data Flow task buffer failed with error code 0xC0047020.
 (SQL Server Import and Export Wizard)

Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on Source - DimStudent_txt returned error code 0xC02020C4.  The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.
 (SQL Server Import and Export Wizard)

我是新手。如果有人能告诉我如何解决这个问题,那就太好了。

【问题讨论】:

    标签: sql-server sql-server-2008 ssis sql-server-2012


    【解决方案1】:

    错误信息指出:

    "Conversion failed because the data value overflowed the specified type.".
    

    由于某种原因,其中一行的值不适合目标表。您没有指定数据类型,但我猜输出列可能不是正确的日期/时间列。

    但是,在不知道表格设置和/或查看某些数据的情况下,我们只能猜测。

    【讨论】:

      最近更新 更多