当从Excel导入数据到sql Server中,可能会出现以下问题:
对于指定的缓冲区大小而言,源列的数据太大
解决方案如下:
sql Server从 Excel表中前几行数据判断数据类型和长度,因此前几行的数据写得短些,以后导入不会出现问题。
==========================================
Hi,
I have a problem of importing excel data into the sql database. When I import the database (finish all importing steps), it tell me "Fail to copy 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 lines have the same problem. So, can I change the importing buffer size in sql 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 sql server importing the data?
----------------------------------------------------------------
Because the sql will specify the buffer size on that column field of the first eight rows. So, I moved the field which have many character to the second row. Then it works.
Thanks for help :) @H_404_32@ @H_404_32@
==========================================
Data for source column is too large for the specified buffer size...