dbTalk Databases Forums  

Output BCP with text qualifier

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


Discuss Output BCP with text qualifier in the microsoft.public.sqlserver.dts forum.



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

Default Output BCP with text qualifier - 12-04-2003 , 04:56 PM






How can you specify a text qualifier for char field in a format file when outputting table data to a text file using BCP?

Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Output BCP with text qualifier - 12-05-2003 , 02:43 AM






You need to treat the text qualifier as part if the column delimiter.
Instead of using , try "," for example to close and open two adjacent text
qualified fields. There are some issues with this method, but it is the best
method available when using BCP. If using DTS then the Text File Provider
fully supports text qualifiers. another alternative is to use a query (see
queryout) and include the text qualifiers in the SELECT.

--
Darren Green
http://www.sqldts.com

"JoeD" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
How can you specify a text qualifier for char field in a format file when
outputting table data to a text file using BCP?




Reply With Quote
  #3  
Old   
Jeff Block
 
Posts: n/a

Default Re: Output BCP with text qualifier - 12-05-2003 , 03:57 PM



you can also set the text qualifier via an ActiveX script relatively easily

"JoeD" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
How can you specify a text qualifier for char field in a format file when
outputting table data to a text file using BCP?




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.