0
I need to integrate 2 TABLES
from DB
different in one DGV
.
I found several tutorials, but none that helped me from setting up to the connection, at least not the way I work with the connections.
Follow an ex. of how I call a Select:
MySqlConnection conexaoSLT = ClassConexao.DBEMG();
MySqlCommand _comando = new MySqlCommand(String.Format("SELECT * FROM tabel1 WHERE Carro = @tipoCarro"), conexaoSLT );
MySqlDataReader _reader = _comando.ExecuteReader();
_reader.Read();
....
How I can connect two Databases in a SELECT
UNION
?
Just put the database name before the table name. Assuming the database is called A, then just use A.table1. The rest of the select is normal. Is sql server?
– André Luis Marmo
@Mauritosanches: What is DGV?
– José Diz
@Josédiz Datagridview
– Maurício Sanches
@Mauritosanches: All right.
– José Diz