下午好,
我有一个我无法弄清楚的困境。我正在尝试在 SQL 数据库表中导入平面文件,但遇到了问题。我在 SQL 中的列是出生日期 DOB 的日期时间列。提供给我的提取平面文件将此列作为日期...因此当我导入 SQL 时,我得到:
Messages
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 SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "Invalid date format".
(SQL Server Import and Export Wizard)
Error 0xc020901c: Data Flow Task 1: There was an error with input column "DOB" (212) on input "Destination Input" (147). 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 "input "Destination Input" (147)" failed because error code 0xC020907A occurred, and the error row disposition on "input "Destination Input" (147)" 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)
我试图弄清楚如何将 00:00:00.000 之类的随机时间添加到平面文件中的每个 DOB 中。例如,他们发送给我 1983-11-30 但我想使用 1983-11-30 00:00:00.000
有没有办法做到这一点,或者有人知道我能做什么吗?提前致谢