主页>技术社区>IT 技术>数据库>SQL Server>SQL教程

SQL Server, 对于指定的缓冲区大小而言,源列的数据太大

eIT.com.cn 2022/11/26 23:24:38 阅读 51 次

打印



当从Excel导入数据到 Server中,可能会出现以下问题:
对于指定的缓冲区大小而言,源列的数据太大


案如下:

Server从 Excel表中前几行数据判断数据类型和长度,因此前几行的数据写得短些,以后导入不会出现问题。

==========================================

Hi,

I have a problem of importing excel data into the database. When I import the database (finish all importing steps), it tell me "Fail to y 1 table" and I go to view the error message say that "Error at Source for Row number 19. Errors encountered so fat in the task: 1. Data for source column 2 ('Notes') is too large for the specified buffer size."

I try to remove that line record but still have many li have the same problem. So, can I change the importing buffer size in Server to make me import data becomes successful??

Thanks a lot.
----------------------------------------------------------------
you're probably loading it to a pre-made table right? I'm assuming you have a varchar field that isn't large enough. Try maxing it out to 8000 to make sure. It's kind of a pain to load in batch. It always makes me nervous
----------------------------------------------------------------
Thanks for reply. I try it but I got the same error message. Is it need to set more bigger buffer size for server importing the data?
----------------------------------------------------------------

@H__28@
Oh... I got it.
Because the will specify the buffer size on that column field of the ft eight rows. So, I moved the field which have many chcter to the second row. Then it works.
Thanks for help :)

==========================================
Data for source column is too large for the specified buffer size...


Hello there,

I have and small excel file, which when I try to import into
Server will give an error "Data for source column 4 is too large for
the specified buffer size"

I have four columns in the excel file, one of the column contains a
large chunk of data so I created a table in Server and changed the
type of the field to text so I accomodate this field but still
no luck.

Any suggestions as to how to go about this.

Thanks in advance,
Srikanth pai

----------------------------------------------------------------
How are you importing? bcp, dts or what?
We are currently using bcp to import text fields without any problems.
I have used also used dts for importing text fields in the past.

----------------------------------------------------------------
Hello there,

I am using DTS to import the excel file...

Thanks,
Srikanth Pai

----------------------------------------------------------------
Pai,

Some suggestions for you.

(1) Try using bcp.
(2) Try with a manually created file and see if you can work out the
differences between your sample file and the prblem file. It maybe
some data, eg quotes or control chars that are
(3) Send me email containing your schema and a sample data file
(cutdown to the 2meg hotmail limit) and I'll have a look.
----------------------------------------------------------------
Thanks promised one for everything, what I did here was saved the
excel file as a .txt file and then imported the file sucessfully, I
have never tried bcp?

----------------------------------------------------------------
FYI all, I had problems exporting to from Access. So by exporting
to text (from access) and then to using DTS...it worked!
==========================================

总结

以上是为你收集整理的全部内容。

如果觉得网站内容还不错,欢迎将推荐给好友。






相关内容


热门栏目


特别声明


最新资讯
热讯排行



合作媒体友情链接
生活常识小贴士 软件开发教程 智慧城市生活网 息县通生活服务[移动版] 息县商圈[移动版] 美食菜谱
健康养生 法律知识 科技频道 电影影讯 留学考研学习 星座生肖|解梦说梦




关于我们 | 联系我们 | 合作媒体 | 使用条款 | 隐私权声明 | 版权声明

      Copyright © 2023 eIT.com.cn. All Rights Reserved. 豫ICP备2022012332号