I am generating about 500 records.
What I want to do is INSERTINSERT
them all at the same time because:
- The server is located elsewhere and I would rather send one big pay loadpayload over.
- This seems like less overhead than sending 500 separate insert queries over the wire.
But because they're batch inserting, I don't want to rollback everything if one insert fails - I want to try to insert the rest in there and record thatthe failure(s).
What's the best way to do this in SQL serverServer? Is BULK INSERTBULK INSERT
what I want?