Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Triggers
Message
From
25/02/2009 10:34:59
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01383955
Message ID:
01384054
Views:
44
>>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/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform