public static void InsertMysqlProduct() { ConectarTarifario(); string query = "select * from productos where flag = '0' order by cod_prod"; OleDbCommand commandselect = new OleDbCommand(query, Conex); OleDbDataReader reader = commandselect.ExecuteReader(); ConnectionMySQL.Connect(); while (reader.Read()) { ConnectionMySQL.InsertProduct(reader.GetValue(0).ToString(), reader.GetString(1)); UpdateAfterInsert("productos", "cod_prod", 0, reader); } ConnectionMySQL.Disconnect(); FinalMessage(); }