繁体   English   中英

从SQL Server 2012导出到PostgreSQL的问题

[英]Issue exporting from SQL Server 2012 to PostgreSQL

我正在尝试将SQL Server 2012数据库导出到PostgreSQL 9.3中,但对于浮点列却遇到了奇怪的转换错误。 如果导入忽略了float列,则一切正常(大约30万行),否则得到以下结果:

- Copy in "TABLE_TO_COPY" (Error)

Messagges
Error 0xc020844b: Data Flow Task 1: Exception during data insertion. The message returned by the provider is: Unable to cast object of type 'System.Double' to type 'System.Char[]'.
 (SQL Server Import and Export Wizard)

Errore 0xc0047022: Data Flow Task 1: Error Code SSIS DTS_E_PROCESSINPUTFAILED. Error in method ProcessInput in component "Destination - TABLE_TO_COPY" (94) with code 0xC020844B during the processing of the input "Destination Input" (97). The specified component returned an error from the method ProcessInput.  [...]

Error 0xc02020c4: Data Flow Task 1: Attempt to add a row to the buffer of activity Data flow errored with code 0xC0047020. [...]
 (SQL Server Import and Export Wizard)

Error 0xc0047038: Data Flow Task 1: Error Code SSIS DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on Origin - PATIENT_DIALYSIS_SYMPTOM 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 Management Studio的“导入/导出向导”中存在此问题。 通过使用SSIS,问题就不存在了。

这是我为数据流任务设置的配置:

  • 来源:指向我的SQL Server数据库表的OLE DB
  • 目标:指向我的PostgreSQL表的OCDB连接

SSIS似乎无法将源表创建到原始DB中,因此在设置项目之前我必须这样做。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM