Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2002-05-28 : 08:38:45
|
| Scott writes "I saw your article on using bulk insert but I have a different format for my data. I have a comma delimited file but only one field is surrounded by quotes. How can I ignore the delimiter within the quotes?" |
|
|
setbasedisthetruepath
Used SQL Salesman
992 Posts |
Posted - 2002-05-28 : 16:08:05
|
quote: Scott writes "I saw your article on using bulk insert but I have a different format for my data. I have a comma delimited file but only one field is surrounded by quotes. How can I ignore the delimiter within the quotes?"
the .csv file format ( as defined by such apps as MSFT excel ) is not a true delimited format, since it also includes escape characters when the delimiter character is contained within a field. This most commonly happens when the delimiter is a comma and the data field is a name in the "last,first" format.bulk insert is a low-level utility that can't handle this type of format. Use a DTS data pump task instead.setBasedIsTheTruepath<O> |
 |
|
|
|
|
|