dbTalk Databases Forums  

Bulk Insert Doesn't recognise double quotes

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


Discuss Bulk Insert Doesn't recognise double quotes in the microsoft.public.sqlserver.dts forum.



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

Default Bulk Insert Doesn't recognise double quotes - 09-23-2004 , 11:17 PM






Hi
I use bulk insert to load data from a csv file to sql server db. The
character data in the file is surrounded with quotes. In the bulk task I
have given the duoble quotes as the Text Qualifier. But when the data is
loaded it loads with the double quotes.

Any suggestion as to why its happening?
thanks
Alroy

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

Default Bulk Insert Doesn't recognise double quotes - 09-24-2004 , 08:25 AM






OK

I thought I answered this one but it seems not to have
appeared so here goes again.

Couple of options

1. Format file (Examples on Google)
2. Do a REPLACE() on the after post import.



Quote:
-----Original Message-----
Hi
I use bulk insert to load data from a csv file to sql
server db. The
character data in the file is surrounded with quotes. In
the bulk task I
have given the duoble quotes as the Text Qualifier. But
when the data is
loaded it loads with the double quotes.

Any suggestion as to why its happening?
thanks
Alroy
.


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.