![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is there no way around the problem of preventing garbage data from screwing up an ExportData and corresponding ImportData using a BulkCopy object? I was using the tab as the delimiter until some errant data (an embedded tab) in a field caused the import to fail. You can set your own delimiter, but wouldn't it be inevitable that some errant garbage in a field will cause the same problem? |
#3
| |||
| |||
|
|
"Darian Miller" <darian-remove- (AT) promaxautonews (DOT) com> wrote in message news:eEmEqHocEHA.1408 (AT) TK2MSFTNGP12 (DOT) phx.gbl... Is there no way around the problem of preventing garbage data from screwing up an ExportData and corresponding ImportData using a BulkCopy object? I was using the tab as the delimiter until some errant data (an embedded tab) in a field caused the import to fail. You can set your own delimiter, but wouldn't it be inevitable that some errant garbage in a field will cause the same problem? I take it not too many people use the BulkCopy object? Or, is this the wrong forum perhaps? Darian |
#4
| |||
| |||
|
|
Do you refer to the BulkCopy object in DMO ? Embedded delimiters is always a problem regardless of delimiter. On way to do it would be to cleanse the text file and get rid of embedded delimiters. Another way would be to clean the file to another file. Your rows that are good should contain a known amount of delimiters so when you encounter a row with more than this amount you could write it out to a file as a bad row |
![]() |
| Thread Tools | |
| Display Modes | |
| |