you should ALWAYS
try and
catch for SQL Exceptions when using SQL. As the sql command will likely contain syntax errors and the only way to know there is a syntax error is to raise an exception. If the exception is not handled (handled = using
try and
catch), the program will crash.
see:
http://tangentsoft.net/mysql++/doc/u.../tutorial.html