I need some help with this problem it's driving me crazy. I have a Bulk Insert statement which uses a format file. Everything works fine except the application I'm exporting the text file from creates a eof marker at the end of the text file. This cause the Bulk Insert to fail with an unexpected end-of-file. I know it's the eof market because if I remove it everthing works fine. I cannot edit the file every time because I need to execute this statement several hundred times. Does anybody know of a way to deal with this?