sql - 将 Excel 电子表格作为表格错误导入 sql

标签 sql excel datetime import

我正在尝试将 Excel 电子表格导入 SQL 中的新表,但是当我尝试执行上述操作时,我收到一个错误,我认为这是一个日期时间格式错误,但我已尝试更改它,但仍然可以得到它,任何人都可以在下面提供帮助是表。

`Copying to 'Drawings and Documents register$' (Error)

Messages
Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x00040EDA.
(SQL Server Import and Export Wizard)

Error 0xc0209029: Data Flow Task 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "input "Destination Input" (70)" failed because error code 0xC020907B occurred, and the error row disposition on "input "Destination Input" (70)" 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 - 'Drawings and Documents register$'" (59) failed with error code 0xC0209029 while processing input "Destination Input" (70). 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 component "Source - 'Drawings and Documents register$'" (1) 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)

最佳答案

可能有很多事情出错了,您是否尝试过在已验证数据的单行上导入?

您可能正在尝试将字符串插入整数列或将 Null 值插入不允许 Null 的列中......

关于sql - 将 Excel 电子表格作为表格错误导入 sql,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18332227/

相关文章:

python - 为什么python datetime类有 'fromtimestamp'方法,没有 'totimestamp'方法?

Excel 日期时间从 YYYYMMDDHHMMSS 转换为 DD/MM/YYYY HH :MM:SS

mysql - 复合mysql Select After outer join

SQL Server,将秒转换为分钟、小时、天

mysql - 想改进 SQL 查询

java - 如何将变量设置为 Apache POI 迭代数据值

excel - 计算同一工作簿中不同工作表中不同列中特定颜色文本的单元格

vba - Excel VBA - 自动筛选(2 列/2 个条件)复制与条件不匹配的行

javascript - c# 和 javascript 之间的夏令时问题

mysql - 检查 SQL 查询中是否使用了索引?