dbTalk Databases Forums  

Please help. CSV problem.

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


Discuss Please help. CSV problem. in the microsoft.public.sqlserver.dts forum.



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

Default Please help. CSV problem. - 01-14-2005 , 07:01 AM







Whilst importing a CSV file, DTS fails on fields with commas in them.

The text fields are surrounded by quotes and I've managed to get other
pieces of software to successfully read the file, but not Microsoft
Office products.


DTS seems to have set the Text Qualified property to Double Quote{"}
and I've tried putting an explicit " and "" in this field to no avail.


I'm hoping that somebody can show me where I'm going wrong with this
to avoid me having to add a step to parse the file before impot.


I posted similar a few days ago, but may not have worded it correctly.
Hoping somebody can assist.

Kev.

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

Default Re: Please help. CSV problem. - 01-14-2005 , 07:21 AM






Melih SARICA wrote:
Quote:
Try to Use an Other field Delimeter

"Cagey" <k@c.com> wrote in message
news:uKpMekj%23EHA.2580 (AT) TK2MSFTNGP15 (DOT) phx.gbl...

Whilst importing a CSV file, DTS fails on fields with commas in them.

The text fields are surrounded by quotes and I've managed to get other
pieces of software to successfully read the file, but not Microsoft
Office products.


DTS seems to have set the Text Qualified property to Double Quote{"}
and I've tried putting an explicit " and "" in this field to no avail.


I'm hoping that somebody can show me where I'm going wrong with this
to avoid me having to add a step to parse the file before impot.


I posted similar a few days ago, but may not have worded it correctly.
Hoping somebody can assist.

Kev.



Unfortunately we cannot do that. The data is legacy data 4 years+ old,
which no longer exists on the source system.



Reply With Quote
  #3  
Old   
Melih SARICA
 
Posts: n/a

Default Re: Please help. CSV problem. - 01-14-2005 , 07:22 AM



Try to Use an Other field Delimeter

"Cagey" <k@c.com> wrote

Quote:
Whilst importing a CSV file, DTS fails on fields with commas in them.

The text fields are surrounded by quotes and I've managed to get other
pieces of software to successfully read the file, but not Microsoft
Office products.


DTS seems to have set the Text Qualified property to Double Quote{"}
and I've tried putting an explicit " and "" in this field to no avail.


I'm hoping that somebody can show me where I'm going wrong with this
to avoid me having to add a step to parse the file before impot.


I posted similar a few days ago, but may not have worded it correctly.
Hoping somebody can assist.

Kev.



Reply With Quote
  #4  
Old   
Ilya Margolin
 
Posts: n/a

Default Re: Please help. CSV problem. - 01-14-2005 , 07:31 AM



Cagey,

As I take it there isn't much you can do here with MS products. I do not
know if you tried bcp/bulk insert. As you said one way out would be to use
those other pieces of software you've found working. Another way would be to
build you own parser. If you have power over generating those files other
delimiters would be better, such as alpha character (alt 224).

Ilya

"Cagey" <k@c.com> wrote

Quote:
Whilst importing a CSV file, DTS fails on fields with commas in them.

The text fields are surrounded by quotes and I've managed to get other
pieces of software to successfully read the file, but not Microsoft
Office products.


DTS seems to have set the Text Qualified property to Double Quote{"}
and I've tried putting an explicit " and "" in this field to no avail.


I'm hoping that somebody can show me where I'm going wrong with this
to avoid me having to add a step to parse the file before impot.


I posted similar a few days ago, but may not have worded it correctly.
Hoping somebody can assist.

Kev.



Reply With Quote
  #5  
Old   
Melih SARICA
 
Posts: n/a

Default Re: Please help. CSV problem. - 01-14-2005 , 08:35 AM



did u try Bulk Copy / Bulk insert with a fomat file ?

"Cagey" <k@c.com> wrote

Quote:
Melih SARICA wrote:
Try to Use an Other field Delimeter

"Cagey" <k@c.com> wrote in message
news:uKpMekj%23EHA.2580 (AT) TK2MSFTNGP15 (DOT) phx.gbl...

Whilst importing a CSV file, DTS fails on fields with commas in them.

The text fields are surrounded by quotes and I've managed to get other
pieces of software to successfully read the file, but not Microsoft
Office products.


DTS seems to have set the Text Qualified property to Double Quote{"}
and I've tried putting an explicit " and "" in this field to no avail.


I'm hoping that somebody can show me where I'm going wrong with this
to avoid me having to add a step to parse the file before impot.


I posted similar a few days ago, but may not have worded it correctly.
Hoping somebody can assist.

Kev.




Unfortunately we cannot do that. The data is legacy data 4 years+ old,
which no longer exists on the source system.




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.