Should you enforce constraints at the database level as well as the application level?
In short : database should enforce constraints. Why : Easier. For ex. to have a constraint set on a particular data column there is only one place to set it : the column itself. The data might come from various sources but the check is put where the data is finally put to rest. Integrity. … Read more