Where should data be validated?
This just came up on the mailing list for my local Linux Users Group following last night's meeting (which I didn't attend), the original mail and my response is below: > In the pub, there was an interesting conversation going on regarding > validation of data in databases. > > Excuse the omissions, as I said, it was overheard > > Someone brought up the point that in databaseX If say, you have a > varchar field set to a limit of 10, and put 26 chars of data into it > databaseX silently truncates it. > > So my question is, in your opinion, should it be up to the front end or > the database to do this kind of data validation? > I'm a Database Administrator, mostly working with Oracle. The reverse of this problem (data validated in the client but not in the database) is something I come accross a lot. Most RDBMS/ODBMS/ORDBMS, certainly any that can claim to be enterprise class, will have functionality to implement data validation (key con...