dbTalk Databases Forums  

Import text file fails with buffer error

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Import text file fails with buffer error in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
SA
 
Posts: n/a

Default Import text file fails with buffer error - 07-12-2004 , 01:29 PM






Hi all:

I am trying to import a csv file into a SQL Server table. (It's a bit more
involved than that, with an ActiveX script doing the transformation).

The first 265 rows are done just fine, but then the process stops with the
error

Data for source column 1 ('Col001') is too large for the specified buffer
size.

The target is an nvarchar field with 255 chars. So, everywhere I use Col001
and Col003, I have

Left(DTSSource("Col001"), 255) ' with Col001 changed in Col003 where
appropriate

Row 266 in the source file is a row with more than 255 characters. At this
time, I don't really care about those characters. I don't understand why
this error occurs or how to get rid of it.

--

Sven




Reply With Quote
  #2  
Old   
SA
 
Posts: n/a

Default Re: Import text file fails with buffer error -- Follow up - 07-12-2004 , 01:36 PM






I've now changed the field in my SQL table to ntext, but the results are the
same.

--

Sven


"SA" <informatica (AT) freemail (DOT) nl> wrote

Quote:
Hi all:

I am trying to import a csv file into a SQL Server table. (It's a bit more
involved than that, with an ActiveX script doing the transformation).

The first 265 rows are done just fine, but then the process stops with the
error

Data for source column 1 ('Col001') is too large for the specified buffer
size.

The target is an nvarchar field with 255 chars. So, everywhere I use
Col001
and Col003, I have

Left(DTSSource("Col001"), 255) ' with Col001 changed in Col003
where
appropriate

Row 266 in the source file is a row with more than 255 characters. At this
time, I don't really care about those characters. I don't understand why
this error occurs or how to get rid of it.

--

Sven






Reply With Quote
  #3  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Import text file fails with buffer error -- Follow up - 07-12-2004 , 02:06 PM



It is not about your destination it is about the driver.

http://support.microsoft.com/default...b;EN-US;281517


Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
www.konesans.com - for all your consultancy needs




Reply With Quote
  #4  
Old   
SA
 
Posts: n/a

Default Re: Import text file fails with buffer error -- Follow up - 07-12-2004 , 02:29 PM



Allan:

Thanks for your reply. I found that KB article before, but thought it didn't
apply, since I am importing a text file?

Oddly enough, it doesn't happen when I execute the package, only when I test
the transformation.

--

Sven


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
It is not about your destination it is about the driver.

http://support.microsoft.com/default...b;EN-US;281517


Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
www.konesans.com - for all your consultancy needs






Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.