dbTalk Databases Forums  

Flatfile delimiters

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


Discuss Flatfile delimiters in the microsoft.public.sqlserver.dts forum.



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

Default Flatfile delimiters - 03-16-2009 , 02:22 PM






Hi All,

I’m working with a rather unpredictable client at present.
They provide us CSV files from a Linux based platform, which sometimes
conform to good CSV rules and sometime don't.

Most of the time their data looks like:

"TeleohoneNumber","TimeOfCall","City","Custome r"
"3185551234","01/01/2009 01:01:00","Shreveoport","John Smith"
"3185551234","01/01/2009 01:01:00","Shreveoport","John Smith"
"3185551234","01/01/2009 01:01:00","Shreveoport","John Smith"
"3185551234","01/01/2009 01:01:00","Shreveoport","John Smith"

When it does I'm able to set a (") qualifier and remove the quotes from the
file.
However, sometimes they send data that looks like:

"TeleohoneNumber","TimeOfCall","City","Custome r"
"3185551234","01/01/2009 01:01:00","Shreveoport","John,Smith"
"3185551234","01/01/2009 01:01:00","Shreveoport","John,Smith"
"3185551234","01/01/2009 01:01:00","Shreveoport","John,Smith"
"3185551234","01/01/2009 01:01:00","Shreveoport","John,Smith"

(Note the extra comma in the customer name)
They claim that they have no control over this data, and cannot strip it out.

My question is, how can I use CoulumnDelimiter field in the advanced tab of
the Flat File Connection Manager Editor to tell SSIS to ignore these extra
commas?

Thanks in advanced.

John Rossitter


Reply With Quote
  #2  
Old   
Atul Thakor
 
Posts: n/a

Default RE: Flatfile delimiters - 03-27-2009 , 08:14 PM






I'm not sure I understand the problem correclty but if you've setup the flat
file connection with a column delimeter as comma and a text qualifier the
names will be classed a single element?
eg:"3185551234","01/01/2009 01:01:00","Shreveoport","John,Smith"
Quote:
"3185551234"
"01/01/2009 01:01:00"
"Shreveoport"
"John,Smith"
"John Rossitter" wrote:

Quote:
Hi All,

I’m working with a rather unpredictable client at present.
They provide us CSV files from a Linux based platform, which sometimes
conform to good CSV rules and sometime don't.

Most of the time their data looks like:

"TeleohoneNumber","TimeOfCall","City","Custome r"
"3185551234","01/01/2009 01:01:00","Shreveoport","John Smith"
"3185551234","01/01/2009 01:01:00","Shreveoport","John Smith"
"3185551234","01/01/2009 01:01:00","Shreveoport","John Smith"
"3185551234","01/01/2009 01:01:00","Shreveoport","John Smith"

When it does I'm able to set a (") qualifier and remove the quotes from the
file.
However, sometimes they send data that looks like:

"TeleohoneNumber","TimeOfCall","City","Custome r"
"3185551234","01/01/2009 01:01:00","Shreveoport","John,Smith"
"3185551234","01/01/2009 01:01:00","Shreveoport","John,Smith"
"3185551234","01/01/2009 01:01:00","Shreveoport","John,Smith"
"3185551234","01/01/2009 01:01:00","Shreveoport","John,Smith"

(Note the extra comma in the customer name)
They claim that they have no control over this data, and cannot strip it out.

My question is, how can I use CoulumnDelimiter field in the advanced tab of
the Flat File Connection Manager Editor to tell SSIS to ignore these extra
commas?

Thanks in advanced.

John Rossitter


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.