public static void execSqlCmd(FbCommand sqlComm, string strSql) { abrirConn(); if (!sqlComm.Equals("")) { try { sqlcmd.CommandTimeout = timeout; sqlcmd.ExecuteNonQuery(); } catch (FbException ex) { for (int i = 0; i < ex.Errors.Count; i++) { errorMessages.Append("Index #" + i + "\n" + "Message: " + ex.Message[i] + "\n"); } Debug.Print(errorMessages.ToString()); } finally { fecharConn(); } } }