You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AtlantaMDF
Okay. There has to be an easier way. I am convinced I am making this
too hard.
If I go to MS/Excel and open the CSV file, I get no errors.
If I use MS/Access to open a CSV file, I am asked a few questions but,
in general, I see the data with no errors.
Why then am I overwhelmed with truncation errors (and others) when
attempting to use SSIS or BULK INSERT?
How do you load YOUR data? What do you use? What works? What are
the best practices? This seems silly but I am being frustrated over a
"simple" data load. Your comments are welcome.
Many thanks.
David Andrew Vaughan
Hong Zhang
unread,
Nov 10, 2009, 2:52:12 PM11/10/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to atlan...@googlegroups.com
David,
In SSIS, did you specify the column length or data type for your destination table? SSIS has some default column type/width which may cause the truncation of your data.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AtlantaMDF
Let me understand the issue. What exactly are you trying to do ---
extract data from a table as csv?
If you are extracting data as csv and the file does not exist then you
will not receive any truncation errors.
Please explain
Donald Wert
unread,
Nov 10, 2009, 7:36:20 PM11/10/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to atlan...@googlegroups.com
The truncation messages indicates that at least some of the data in the CSV file is too long for columns in the target table. Does the target table already exist or are you creating it on the fly? Are you getting messages on all columns or specific ones? If you can narrow it down to one or two specific columns it would be useful to open the CSV file in Excel and use the len() function against the offending column(s) to see what lengths you get. If you are creating the table on the fly there's a chance that when SSIS samples the data it's not seeing records with the overly-long values so it assigns lengths that are too short. Same with numbers. If it sees integers in the first few rows but there are decimal values on down, you will get errors.
On Tue, Nov 10, 2009 at 1:45 PM, VaughanDA <vaug...@gmail.com> wrote: