Groups | Blog | Home
all groups > sql server programming > july 2004 >

sql server programming : Text file import fails because of quotation mark



Carol
7/16/2004 10:03:36 PM
Hiya,

What can i do when my import fails because some of the fields in my my
comma-delimited text file
have quotation marks?

scample =

"howdy doody", 43334443, " Mary's "handy man "


Thanks!

Carol
7/16/2004 10:43:13 PM
Thanks a lot!

[quoted text, click to view]

Steve Kass
7/17/2004 12:39:14 AM
Carol,

My top two suggestions are
1. Ask for better data, which uses a character not in the text to
delimit (perhaps | or tab?), or try to preprocess the text using
something like the Unix utilites available for Windows in Cygwin.
Someone who can write awk, sed, or perl scripts can probably do
something about this, if there are no ambiguities that can't be resolved
due to both commas and " marks in the quoted parts.

Steve Kass
Drew University



[quoted text, click to view]
AddThis Social Bookmark Button