views:

19

answers:

0

Hi,

I have to import big xml files to Ms SQL 2005 Database by using C# with high end Performance. Even if any record fails in middle, i have to take next record for process and failed record need to log for audit.

I don't want to put insert query with in for loop. Could you please suggest a best way to do this.

If I can use bulkcopy methods or Data Adapter update methods- Its very nice, But if any record fails, execution of that statement breaks and rolled back totally, right?

  1. Any alternatives and Best practices with example please..?
  2. Is Multi-threading works for me to improve performance..?

Give me example please.

Thanks

Karthikeyan