Form : Server side validation for Duplicate check


I would like to do a duplicate check on a form element like Name. This is going to be a server side / DB side check. If the column already has the same name, then it must give me a proper error. How do I achieve this ?



@ArjunDas Can this not be done when creating the table structure itself by specifying the column as unique?