Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Triggers
Message
De
25/02/2009 10:34:59
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Titre:
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01383955
Message ID:
01384054
Vues:
43
>>Bob, I plan to have the business logic be the primary enforcer of this rule, but I also wanted to enforce it at the database level. So would the best way to "fail" the update be to make the trigger throw an exception?
>>
>In my opinion - yes, it's better to do on the database level in addition to front-end.

That's an approach I started to take after watching some consultants in action. No form of database-level rules, constraints, or relationship rules = a lot of orphaned records and a freaking mess.
Very fitting: http://xkcd.com/386/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform