[英]Postgresql to Sql Server 2008 Table Transfer
我正在使用postgresql(Pgadmin版本1.18.0),我使用查詢將三個(我只需要3個表)表(包含在線交易信息)數據導出為csv格式
copy to 'D:\orders\new\users.csv' DELIMITER ';' CSV HEADER
使用查詢,我得到了完美的結果。 現在,我打開ssms(Sql Server 2008),並使用“導入和導出數據”選項,通過使用“平面文件服務數據源”將users.csv文件導入到sql server 2012。 最后,當我單擊“完成”按鈕時,它會引發以下錯誤消息
--Error 0xc02020a1: Data Flow Task 1: Data conversion failed. The data conversion for
column "address" returned status value 4 and status text "Text was truncated or one or
more characters had no match in the target code page.".
(SQL Server Import and Export Wizard)
--Error 0xc020902a: Data Flow Task 1: The "Source - users_csv.Outputs[Flat File Source
Output].Columns[address]" failed because truncation occurred, and the truncation row
disposition on "Source - users_csv.Outputs[Flat File Source Output].Columns[address]"
specifies failure on truncation. A truncation error occurred on the specified object
of the specified component.
(SQL Server Import and Export Wizard)
--Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The
PrimeOutput method on Source - users_csv returned error code 0xC0202092. 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)
請幫幫我。 抱歉,如果不清楚。
感謝您的期待。
問候,Keerthi
您的數據大小超過了字段大小。 擴展目標表中地址字段的大小。 如果仍然出現錯誤,請檢查“導入和導出向導”中的“高級”選項。 您可以在那里設置每個列的OutputColumnWidth。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.