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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error checking for stored procedure

Status
Not open for further replies.

prettitoni

Programmer
Apr 22, 2004
74
US
I'm using a stored procedure to insert records into an sql db through Visual Basic (very new to sql server programming). My question is, should I be performing error checking in my program code or in the stored procedure itself? (Error check such as make sure an entry is a number or string, proper length, etc...)
 
That sort of validation/error checking should be done at the application (VB side), as it doesnt make sense sending the data all the way to the database only for it to be UI error.
If you need to you can do business logic in the DB, but there are many different schools of thought were to apply business logic.


"I'm living so far beyond my income that we may almost be said to be living apart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top