簡體   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