x

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?

more ▼

asked May 16, 2013 at 05:10 PM in Default

avatar image

krakenfromthesea
10 2 2 6

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first

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...

more ▼

answered May 16, 2013 at 07:27 PM

avatar image

ThomasRushton ♦♦
41.8k 20 50 53

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x1126
x448
x82
x21

asked: May 16, 2013 at 05:10 PM

Seen: 2042 times

Last Updated: May 16, 2013 at 07:27 PM

Copyright 2017 Redgate Software. Privacy Policy