简体   繁体   English

SSIS-将数据从Excel导出到sql表

[英]SSIS - Export data from Excel to sql table

When i am trying to export data from excel to sql table using ssis,the all rows are inserted . 当我尝试使用ssis将数据从excel导出到sql表时,将插入所有行。 But,when i am inserting a data of length greater than 255 to excel it's giving truncation error. 但是,当我插入长度大于255的数据以达到最佳效果时,会出现截断错误。 In output column i altered it to 500. in External column input i can't alter it. 在输出列中,我将其更改为500。在外部列输入中,我无法更改它。 In my excel sheet there is 2808 rows..but when this error is generating its only inserting 1632 rows and whole other rows are getting truncated.... If any one knows about this,please help me..I am really stuck on this.... 在我的Excel工作表中有2808行..但是当此错误生成时,它仅插入1632行,而其他所有行都被截断了。...如果有人知道这一点,请帮助我。 ....

Thanks.. 谢谢..

Try sorting your data by length eg longest first. 尝试按长度对数据排序,例如最长的。 Excel import/export is very buggy in SSIS. Excel导入/导出在SSIS中非常容易出错。 Sometimes the only option is to write VBA script and run it from excel itself 有时唯一的选择是编写VBA脚本并从excel本身运行

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

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