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: andrewst <member14183_at_dbforums.com>
Date: Mon, 16 Jun 2003 19:26:19 +0000
Message-ID: <3008264.1055791579@dbforums.com>

Originally posted by Ed Prochak
> andrewst wrote in message news:news:...
> > 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

None taken! I know how easy it is for a well-meant response to be taken badly and escalate into a grudge match. I suppose that's why we need to keep smiling and winking like this ;)

--
Posted via http://dbforums.com
Received on Mon Jun 16 2003 - 14:26:19 CDT

Original text of this message

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