Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Possible bug with SqlCommandBuilder.DeriveParameters
Message
 
To
04/09/2003 23:43:28
Keith Payne
Technical Marketing Solutions
Florida, United States
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
00826277
Message ID:
00826713
Views:
25
Hi Keith,

That is correct. The problem here is that the DeriveParameters method needs to make a trip back to the database and it runs under a separate connection. You need to run this method prior to beginning your transaction.

>It seems that SqlCommandBuilder.DeriveParameters will not participate in a transaction when the SqlCommand that it uses has a transaction assigned to it.
>
>This can be a real PITA to track down when combined with the Data Application Block's parameter caching. I pulled my hair out for two days isolating this sucker.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Reply
Map
View

Click here to load this message in the networking platform