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