![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi All, I have a question about data validation. I have been reading some articles that indicate that data validation should be done at the application level (while also having integrity constraints in the database) whereas other articles mention that data validation should be done only at the database level because that's what integrity constraints are for. Any for or against on these two viewpoints? Thanks, Vijai. |
#3
| |||
| |||
|
|
Hi All, I have a question about data validation. I have been reading some articles that indicate that data validation should be done at the application level (while also having integrity constraints in the database) whereas other articles mention that data validation should be done only at the database level because that's what integrity constraints are for. Any for or against on these two viewpoints? Thanks, Vijai. |

#4
| |||
| |||
|
|
Hi All, I have a question about data validation. I have been reading some articles that indicate that data validation should be done at the application level (while also having integrity constraints in the database) whereas other articles mention that data validation should be done only at the database level because that's what integrity constraints are for. Any for or against on these two viewpoints? Thanks, Vijai. |
#5
| |||
| |||
|
|
Hi All, I have a question about data validation. I have been reading some articles that indicate that data validation should be done at the application level (while also having integrity constraints in the database) whereas other articles mention that data validation should be done only at the database level because that's what integrity constraints are for. Any for or against on these two viewpoints? |
#6
| |||
| |||
|
|
Hi All, I have a question about data validation. I have been reading some articles that indicate that data validation should be done at the application level (while also having integrity constraints in the database) whereas other articles mention that data validation should be done only at the database level because that's what integrity constraints are for. Any for or against on these two viewpoints? Thanks, Vijai. |
#7
| |||
| |||
|
|
On Mon, 19 Nov 2007 09:48:12 -0800 (PST), Vijai Kalyan vijai.kal... (AT) gmail (DOT) com> wrote: Hi All, I have a question about data validation. I have been reading some articles that indicate that data validation should be done at the application level (while also having integrity constraints in the database) whereas other articles mention that data validation should be done only at the database level because that's what integrity constraints are for. Any for or against on these two viewpoints? Thanks, Vijai. If the database is just a convenient oplace to store data, and the program is what matters, put the validation in the program. |
|
If the program is just a convenient way to work with the data, and the database is what matters, put the validation in the database. |
|
B. |
#8
| ||||
| ||||
|
|
Comments embedded. On Nov 20, 8:09 am, Brian Tkatch <N/A> wrote: On Mon, 19 Nov 2007 09:48:12 -0800 (PST), Vijai Kalyan vijai.kal... (AT) gmail (DOT) com> wrote: Hi All, I have a question about data validation. I have been reading some articles that indicate that data validation should be done at the application level (while also having integrity constraints in the database) whereas other articles mention that data validation should be done only at the database level because that's what integrity constraints are for. Any for or against on these two viewpoints? Thanks, Vijai. If the database is just a convenient oplace to store data, and the program is what matters, put the validation in the program. And if this conveniently stored data is 'hosed' how will the application function? By not validating in BOTH places regardless one runs the risk of application failure and lost work. |
|
If the program is just a convenient way to work with the data, and the database is what matters, put the validation in the database. And, yet, why should the users be subjected to what can be 'terse' and 'cryptic' error messages from Oracle when the application can, and should, validate the input data for proper format? Validation should occur here, too, regardless. |
|
The answer to the question, then, is validate in both, and there is no conditional response to that. Failure to do so is carelessness and poor design, in my opinion. |
| B. David Fitzjarrell |
#9
| |||||
| |||||
|
|
On Tue, 20 Nov 2007 07:49:28 -0800 (PST), "fitzjarr... (AT) cox (DOT) net" fitzjarr... (AT) cox (DOT) net> wrote: Comments embedded. On Nov 20, 8:09 am, Brian Tkatch <N/A> wrote: On Mon, 19 Nov 2007 09:48:12 -0800 (PST), Vijai Kalyan vijai.kal... (AT) gmail (DOT) com> wrote: Hi All, I have a question about data validation. I have been reading some articles that indicate that data validation should be done at the application level (while also having integrity constraints in the database) whereas other articles mention that data validation should be done only at the database level because that's what integrity constraints are for. Any for or against on these two viewpoints? Thanks, Vijai. If the database is just a convenient oplace to store data, and the program is what matters, put the validation in the program. And if this conveniently stored data is 'hosed' how will the application function? By not validating in BOTH places regardless one runs the risk of application failure and lost work. If the database is just a convenient place to store data, it is the equivalent of having a flat file with speedy querying. What protection is there against a flat file? Probably backups. Same here. |
|
If the program is just a convenient way to work with the data, and the database is what matters, put the validation in the database. And, yet, why should the users be subjected to what can be 'terse' and 'cryptic' error messages from Oracle when the application can, and should, validate the input data for proper format? Validation should occur here, too, regardless. Methinks you have never seen error messages before. |
|
Most of the time the application is even more cryptic! |
|
The answer to the question, then, is validate in both, and there is no conditional response to that. Failure to do so is carelessness and poor design, in my opinion. I do not disagree. But i have yet to see it happen. |
|
B. B. David Fitzjarrell- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - |
#10
| |||
| |||
|
|
A very solid way to think is that the database defines your data validations and then, you author a meta reader that reads the metadata from the database and produces code for the front-end that then is used at runtime to check the same things. Defined in one place and then replicated by code into the place directly next to the user. Not all in the database will make it into the GUI tier and not all checks needed in the GUI will have a place in the database, but it sure does solve most of what you are looking for. -- Galen Boyer |
![]() |
| Thread Tools | |
| Display Modes | |
| |