SQL Server 导出错误:0xc0202009、0xc0209029 和 0xc0047022

发布于 2024-09-20 00:44:57 字数 2096 浏览 2 评论 0原文

我正在尝试从 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

猫性小仙女 2024-09-27 00:44:57

我把这归因于微软是个白痴。

我有一些日期字段。除 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$

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文