Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error handling, fatal results on constraint in table
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01395947
Message ID:
01395953
Vues:
53
>I am finishing up the web forms jump start app in C# in MM.NET 3.5 help file chm doc.

Additional remarks. I set a breakpoint in the mmBusinessObject.cs and watched code trace through a couple of rollback trans methods.

As it finishes, it goes through these lines at end of the method:
if (TransactionStarted)
{
this.TransactionRollback();
throw;

and when it hits the "throw" command, the error is thrown SQL Exception was unhandled by user code", with info that it was the CK_Discount constraint that stopped the insert.

Thanks,
Ron.

Ronald D. Edge
Director of Information Services
Indiana University Athletics
http://iuhoosiers.com

"You've got to be very careful if you don't know where you are going,
because you might not get there."
“When you come to the fork in the road, take it”
--Yogi Berra
Ronald D. Edge
Retired from Indiana University Mar 1, 2011

"You've got to be very careful if you don't know where you are going,
because you might not get there."
“When you come to the fork in the road, take it.”
--Yogi Berra
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform