dbTalk Databases Forums  

sqlbulkcopy useinternaltransaction behavior

microsoft.public.sqlserver.clients microsoft.public.sqlserver.clients


Discuss sqlbulkcopy useinternaltransaction behavior in the microsoft.public.sqlserver.clients forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
mikeL
 
Posts: n/a

Default sqlbulkcopy useinternaltransaction behavior - 10-20-2006 , 01:12 PM






I am having some difficulty understanding the MSDN documentation on the
useinternaltransaction option of the sqlbulkcopy class. It seems to say that
if this option is specified then each batch is placed into its own
transaction and then committed. If the batch fails then the batch is rolled
back. It is just not clear what the behavior should be if the option is not
specified. Is each batch not placed into a transaction. I set up a test and
whether or not this option is specified a batch that overlapps data in the
destination table is completely rolledback. Any explanation would be
appreciated.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.