> If I'm doing a bulk insert of a very large number of rows
> is it possible to add only the ones that don't violate
> unique constraints and log the rest?
Yes. - But such functionality depends on some design details.
Would you like to invest any software development efforts
to get the involved application programming interfaces into
the shape that will provide you with enough error information
so that you can make the corresponding exception handling really
safe, consistent and efficient?
> But if there's even 1 row that violates unique constraint
> none of the hundreds of non-duplicated rows will get updated either.
How much do you need such core database functionality from
transaction management?
Does each record belong to a change which affects the consistency/integrity
for your data structures?
Can data updates be really reordered for failure handling?
Regards,
Markus