SQL Server 导出错误:0xc0202009、0xc0209029 和 0xc0047022
我正在尝试从 SQL Server 导出一些信息。 SQL 在 SQL Management Studio 中运行良好,但是当我尝试导出时,它会出现以下错误。 我之前遇到过类似的问题,添加该
SET ANSI_WARNINGS OFF
行修复了它。这次该线路不起作用。
编辑: 我尝试过使用 SQL SELECT * FROM Table
但仍然收到错误。
SQL 基本上是:
SELECT [Table]
, CASE WHEN [UserID] IS NULL THEN '' ELSE [UserID] END AS [UserID]
, CASE WHEN [fieldname] IS NULL THEN '' ELSE [fieldname] END AS [fieldname]
, CASE WHEN [fieldname] IS NULL THEN '' ELSE [fieldname] END AS [fieldname]
, CASE WHEN [fieldname] IS NULL THEN '' ELSE [fieldname] END AS [fieldname]
... more ...
, CASE WHEN [fieldname] IS NULL THEN '' ELSE [fieldname] END AS [fieldname]
CASE WHEN [fieldname] IS NULL THEN '' ELSE [fieldname] END AS [fieldname]
FROM Table
错误:
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" (174)" failed because error code 0xC020907B occurred, and the error row disposition on "input "Destination Input" (174)" 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 - Query" (163) failed with error code 0xC0209029 while processing input "Destination Input" (174). 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)
I'm trying to export some information from SQL Server. The SQL runs fine in the SQL Management Studio, but when I try to export it gives me the following errors.
I've had issues similar to this before and adding the
SET ANSI_WARNINGS OFF
line fixed it. That line is not working this time.
EDIT:
I've tried with the SQL SELECT * FROM Table
and still get the error.
The SQL is basically:
SELECT [Table]
, CASE WHEN [UserID] IS NULL THEN '' ELSE [UserID] END AS [UserID]
, CASE WHEN [fieldname] IS NULL THEN '' ELSE [fieldname] END AS [fieldname]
, CASE WHEN [fieldname] IS NULL THEN '' ELSE [fieldname] END AS [fieldname]
, CASE WHEN [fieldname] IS NULL THEN '' ELSE [fieldname] END AS [fieldname]
... more ...
, CASE WHEN [fieldname] IS NULL THEN '' ELSE [fieldname] END AS [fieldname]
CASE WHEN [fieldname] IS NULL THEN '' ELSE [fieldname] END AS [fieldname]
FROM Table
Errors:
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" (174)" failed because error code 0xC020907B occurred, and the error row disposition on "input "Destination Input" (174)" 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 - Query" (163) failed with error code 0xC0209029 while processing input "Destination Input" (174). 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)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我把这归因于微软是个白痴。
我有一些日期字段。除 1790 年以来的日期外,所有日期都可以正常导出。如果我将所有早于 1800 年的日期转换为空白,则导出可以正常工作。
这些错误与这个问题有什么关系,你明白了。
一路走好 M$
I'm chalking this up to Microsoft being an idiot.
I have some fields that are dates. The dates all work just fine for the export with the exception of on date from 1790. If i convert all dates older than 1800 to blank, the export works just fine.
How any of those errors relates to the issue, you got me.
Way to go M$