问题描述
对于所有数据库天才,
希望您可以将导入Excel文件到SQL Server 2005时遇到的错误对我有所帮助.
这是错误:
To all database genius out there,
I hope you can help me with this error I encountered when importing excel file to SQL Server 2005.
This is the error:
Executing (Error)
Messages
Error 0xc020901c: Data Flow Task 1: There was an error with output column "Description" (21) on output "Excel Source Output" (9). The column status returned was: "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 "output column "Description" (21)" failed because truncation occurred, and the truncation row disposition on "output column "Description" (21)" 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 component "Source - 'Data $'" (1) returned error code 0xC020902A. 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)
幸运的是,我暗示了问题所在:这是因为excel中的数据类型只能容纳nvarchar 255,而在导入时,它超出了nvarchar 255,并且包含特殊字符,例如:'',;;.和汉字.
问题是,我用光了解决方案.
预先感谢您的帮助.
感谢.
Luckily I have a hint what the problem is all about : It is because data type in excel can only accommodate nvarchar 255, and when I import it, it is beyond nvarchar 255, and that it contains special characters like : '',; and chinese characters.
The thing is, I ran out of solutions.
Thank you in advance for those who will help.
Appreciate it.
推荐答案
幸运的是,我暗示了问题所在:这是因为excel中的数据类型只能容纳nvarchar 255,而在导入时,它超出了nvarchar 255,并且包含特殊字符,例如:'',;;.和汉字.
问题是,我用光了解决方案.
预先感谢您的帮助.
谢谢.
Luckily I have a hint what the problem is all about : It is because data type in excel can only accommodate nvarchar 255, and when I import it, it is beyond nvarchar 255, and that it contains special characters like : '',; and chinese characters.
The thing is, I ran out of solutions.
Thank you in advance for those who will help.
Appreciate it.
这篇关于从Excel导入数据到SQL时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!