![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
SQL Server 2000 SP3. I'm having fierce trouble importing a csv file with only two fields. The columns are delimited with comma The rows are delimited with CRLF The text fields are delimited with double quotes. The problem I'm having, is any text field with a comma in it is causing the import to fail. My understanding was that if a comma is found within a text field (delimited with quotes) the parser should ignore it, as it should know that the field hasn't yet ended. Are my assumptions correct? and is there a way to force DTS to behave this way? Thanks in advance |
#3
| |||
| |||
|
|
Kagey, This has been asked before. The only proper way out is changing column delimiter to something the data does not have. ?, ß, ?, ?, etc. would do in most cases. Ilya "Kagey" <k@c.com> wrote in message news:urw4G%23RtFHA.3752 (AT) TK2MSFTNGP09 (DOT) phx.gbl... SQL Server 2000 SP3. I'm having fierce trouble importing a csv file with only two fields. The columns are delimited with comma The rows are delimited with CRLF The text fields are delimited with double quotes. The problem I'm having, is any text field with a comma in it is causing the import to fail. My understanding was that if a comma is found within a text field (delimited with quotes) the parser should ignore it, as it should know that the field hasn't yet ended. Are my assumptions correct? and is there a way to force DTS to behave this way? Thanks in advance |
#4
| |||
| |||
|
|
Kagey, This has been asked before. The only proper way out is changing column delimiter to something the data does not have. ?, ß, ?, ?, etc. would do in most cases. Ilya "Kagey" <k@c.com> wrote in message news:urw4G%23RtFHA.3752 (AT) TK2MSFTNGP09 (DOT) phx.gbl... SQL Server 2000 SP3. I'm having fierce trouble importing a csv file with only two fields. The columns are delimited with comma The rows are delimited with CRLF The text fields are delimited with double quotes. The problem I'm having, is any text field with a comma in it is causing the import to fail. My understanding was that if a comma is found within a text field (delimited with quotes) the parser should ignore it, as it should know that the field hasn't yet ended. Are my assumptions correct? and is there a way to force DTS to behave this way? Thanks in advance |
![]() |
| Thread Tools | |
| Display Modes | |
| |