We have an unusual problem in that we have had to use special delimiters for fields and rows to export data into text files. This is because some of the data in the fields contain commas, quotes and carriage returns. We have used the tilde (~) to separate fields and the vertical bar/pipe (|) character as a row delimiter.
The export to the text files works fine but when we try to import the text files, using DTS, back into a blank SQL table with the same table structure we sometimes find issues. If the last column in the table is a varchar and the last row to be added has no value (NULL) in that column then the pipe character is added to the field instead of a NULL value. The end of the file looks like this ~|. This behaviour does not occur for rows other than the last row.
If anyone else has encountered this issue I would love to know your workaround/fix.
The export to the text files works fine but when we try to import the text files, using DTS, back into a blank SQL table with the same table structure we sometimes find issues. If the last column in the table is a varchar and the last row to be added has no value (NULL) in that column then the pipe character is added to the field instead of a NULL value. The end of the file looks like this ~|. This behaviour does not occur for rows other than the last row.
If anyone else has encountered this issue I would love to know your workaround/fix.