Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
This SqlTransaction has completed; it is no longer usabl
Message
De
18/07/2008 10:28:01
 
 
À
17/07/2008 09:35:38
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01331847
Message ID:
01332279
Vues:
8
I have gotten that error when I was saving a business object with multiple child business objects and they saved in an order that broke SQL Servers constraints. Has there been any changes to the DB that would cause one or more constraints to fail?

what happened in my case is that on of the child bo's failed to save and then the next bo fired its save and the transaction had closed due to the first failure.
To catch it I turned the autosave on parent save to false and called each one of the child saves individually and checked the save result. Once I found the offending BO I just changed the order it saved in.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform