Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Stored Procedures for Data Validation

Status
Not open for further replies.

Terpsfan

Programmer
Dec 8, 2000
954
0
0
US
Is it better to use data validation for fields on the client side in Visual Basic code or on the server side with stored procedures? Thanks in advance.
 
Age old battle you are talking about.

The best of both worlds has the client loading the dictionary/constraints from the server and then doing the checking client side where exceptions are handled more easily.

This assumes that a thick client is ok.

If an application if supposed to provide visual feedback, when you leave the field you should be alerted to any potential problems. Don't trap a user in a field when they may be waiting for that information from someone else.

Do you prevent saving a record for the same reason?

These are the business decissions that we(programmers)
shouldn't make. We should provide feed back in the form of audit reports that it wasn't completed properly. Then it is either a training issue or the process for gathering information is broken, not the application.

Mike Davis
MSsql, VB and Crystal Reports Developer
 
Age old battle you are talking about.

The best of both worlds has the client loading the dictionary/constraints from the server and then doing the checking client side where exceptions are handled more easily.

This assumes that a thick client is ok.

If an application if supposed to provide visual feedback, when you leave the field you should be alerted to any potential problems. Don't trap a user in a field when they may be waiting for that information from someone else.

Do you prevent saving a record for the same reason?

These are the business decissions that we(programmers)
shouldn't make. We should provide feed back in the form of audit reports that it wasn't completed properly. Then it is either a training issue or the process for gathering information is broken, not the application.


Mike Davis
MSsql, VB and Crystal Reports Developer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top