Re: UpdateBatchSize and SqlTransaction
- From: v-kevy@xxxxxxxxxxxxxxxxxxxx (Kevin Yu [MSFT])
- Date: Fri, 24 Mar 2006 09:16:49 GMT
Hi Sahon,
Thanks for providing us with the code. You're getting the exception because
you didn't pass the transaction to all the SelectCommand of the
DataAdapter. I added the following and it works fine.
myComponent.daMyTable.UpdateBatchSize = 10;
myComponent.daMyTable.InsertCommand.Transaction = tr;
myComponent.daMyTable.DeleteCommand.Transaction = tr;
myComponent.daMyTable.UpdateCommand.Transaction = tr;
myComponent.daMyTable.SelectCommand.Transaction = tr;
HTH.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
.
- Follow-Ups:
- Re: UpdateBatchSize and SqlTransaction
- From: sahon
- Re: UpdateBatchSize and SqlTransaction
- References:
- UpdateBatchSize and SqlTransaction
- From: sahon
- RE: UpdateBatchSize and SqlTransaction
- From: Luke Zhang [MSFT]
- UpdateBatchSize and SqlTransaction
- Prev by Date: Re: What's the diff. between DataSet and DataTable and other Basic Q's
- Next by Date: Re: What's the diff. between DataSet and DataTable and other Basic Q's
- Previous by thread: RE: UpdateBatchSize and SqlTransaction
- Next by thread: Re: UpdateBatchSize and SqlTransaction
- Index(es):
Relevant Pages
|