public static void InsertMysqlEan() { ConectarTedef(); string query = "select * from ts_ean13 where flag = '0' order by codigoean13"; OleDbCommand commandselect = new OleDbCommand(query, Conex); OleDbDataReader reader = commandselect.ExecuteReader(); ConnectionMySQL.Connect(); while (reader.Read()) { ConnectionMySQL.InsertEan(reader.GetValue(0).ToString(), reader.GetString(2), reader.GetValue(3).ToString(), reader.GetValue(4).ToString(), reader.GetValue(5).ToString(), reader.GetValue(6).ToString(), reader.GetValue(7).ToString(), reader.GetValue(8).ToString(), reader.GetValue(9).ToString(), reader.GetValue(10).ToString()); UpdateAfterInsert("ts_ean13", "codigoean13", 0, reader); } ConnectionMySQL.Disconnect(); FinalMessage(); }