Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
English
Should code for checks be on form or in store procedures
Mensaje
 
 
a
Todos
General information
Foro:
Visual FoxPro
Category:
Bases de datos, tablas, vistas, índices y SQL
Título:
Should code for checks be on form or in store procedures
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
ID de la conversación:
01062538
ID del mensaje:
01062538
Views:
60
I would like to know what is the best practice to check that data on an entry form is correct and what are the advantages and disadvantages of each?

I have seen this type of checking in one of 3 places:

1) At the point where the data is captured (for example in the valid event of say a text box.

2) A number of check are done in a method on the form. This method is called before the tableupdate is issued.

3) Checks are written into a stored procedure. This procedure is then called each time before the referential integrity is run for a trigger in the table.


Thanks in advance!
Stuart Reid

True nobility lies not in being superior to another man, but in being superior to one’s previous self
Next
Responder
Mapa
Ver

Click here to load this message in the networking platform