I have two databases and a UDL connection string to each one. I'd like to construct a query that joins tables from both databases.
I'm doing a query from a single database like this.
string query = "...";
using (OleDbConnection connection = new OleDbConnection(ConnectionString))
using (OleDbCommand command = new OleDbCommand(query, connection))
{
int count = command.ExecuteNonQuery();
}
Can someone show me an example of doing the same thing with a query that joins tables from two databases?