OK, this seems to be a general problem but I can't find any good solutions. I'm using the Bulk Insert task in conjunction with a format file to load data from a standard tab-delmited file. Unfortunately it always fails on the last line (which is empty).
I have tried removing the last line from the file and yet it still fails with a truncation/conversion error. I have total control over the file and can format it any way I wish but I simply can't find a format the the bulk insert task won't choke on. If I
don't add a blank line, it fails. If I do add a blank line, it fails. I DO NOT want to count the lines in the file so I can pass a number for the -L parameter. Is there an easy way I can make this work? I'm thinking this shouldn't be so hard...
↧