c# - Managing a Network failure during a Transactional SqlBulkCopy -


i'm researching sqlclient's sqlbulkcopy in ado.net , have following questions.

what happen, if there network error during sqlbulkcopy operation, running under part of transaction on huge number of records?

will transaction left open (neither committed, nor rolled back) in server, until manually kill it?

what best approach sending large number of records in 2 datatables (invoiceheader, invoicedetails) in dataset respective sql server tables(invoiceheader, invoicedetails)?

thank you.

edit:

a few details wanted add, forgot:

this .net v3.5; i'm using enterprise library database interactions.

assuming using transactionscope, my understanding no, transaction not left open, because sql server detect ambient transaction , auto enlist. means worst case transaction times out, rolling back. can change transaction binding specify in event of timeout (you want explicit unbind).


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -