Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Check constraint violated

Re: Check constraint violated

From: Ed prochak <ed.prochak_at_alltel.com>
Date: 16 Jun 2003 09:52:40 -0700
Message-ID: <e51b160.0306160852.24bfa5fb@posting.google.com>


andrewst <member14183_at_dbforums.com> wrote in message news:<3006312.1055756289_at_dbforums.com>...
> Originally posted by Ed Prochak
> > But it you already validated this, why add it to the DB? Likely you
> > intend to
> > remove the VB validation, but then you will have to add code to
> > handle bad
> > inserts (which return errors when the rule is violated).
> >
> Probably because enforcing business rules through the client only
> is bad practice and should be avoided if at all possible.

Agreed. But given that the OP already has this validation coded in the VB front end and then wanted to force this into a check constraint, I expected them not to understand suggestions about building rules tables and such. Maybe I underestimated their skills.

(Interesting the way threads go sometimes. You try to explain at a lower level and someone else at a higher level points out how you simplified too much! No offense andrew)

Ed Received on Mon Jun 16 2003 - 11:52:40 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US