question

krakenfromthesea avatar image
krakenfromthesea asked

Partial Rows Error

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?
sqlqueryerrorimport
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
ThomasRushton avatar image
ThomasRushton answered
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...
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.