I'm importing many tables in bulk, and I keep encountering a problem due to partial rows, because of which import stops. I've eliminated problems with line endings, and all the cells in the table are filled. How else can I work around the issue?
asked May 16, 2013 at 05:10 PM in Default
What you could do is an initial import into a staging table that has no formatting information - just a line identifier, a single nvarchar(max) field for each line of your input file, a success/fail flag.
So your import into the staging table should never fail. And then you can process your input in a set-based manner (more efficient), and keep track of which lines have been imported...
answered May 16, 2013 at 07:27 PM