How To Handle Errors In Sql