Import xml to database with high end performance and Audit log- A best Practice
Posted
by karthik
on Stack Overflow
See other posts from Stack Overflow
or by karthik
Published on 2010-04-06T05:48:01Z
Indexed on
2010/04/06
5:53 UTC
Read the original article
Hit count: 382
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?
- Any alternatives and Best practices with example please..?
- Is Multi-threading works for me to improve performance..?
Give me example please.
Thanks
Karthikeyan
© Stack Overflow or respective owner