From: scampbell120012000 <sca...@ya...> - 2003-10-04 22:15:46
|
I sent the previous email. here is the code I used: public static int ExecuteNonQueryFB(string connectionString, string sql) { int retval = 0; try { using (FbConnection conn = new FbConnection(connectionString)) { conn.Open(); using (FbCommand cmd = new FbCommand(sql, conn)) { cmd.CommandType = CommandType.Text; retval = cmd.ExecuteNonQuery(); } } } catch(Exception ex) { throw new CustomAppException("Error=" + ex.Message); } return retval; } |