"C# mysql data reader from two tables" Code Answer's
You're definitely familiar with the best coding language SQL that developers use to develop their projects and they get all their queries like "C# mysql data reader from two tables" answered properly. Developers are finding an appropriate answer about C# mysql data reader from two tables related to the SQL coding language. By visiting this online portal developers get answers concerning SQL codes question like C# mysql data reader from two tables. Enter your desired code related query in the search bar and get every piece of information about SQL code related question on C# mysql data reader from two tables.
C# mysql data reader from two tables

using (SqlConnection connection = new SqlConnection("connection string here"))
{
using (SqlCommand command = new SqlCommand
("SELECT Column1 FROM Table1; SELECT Column2 FROM Table2", connection))
{
connection.Open();
using (SqlDataReader reader = command.ExecuteReader())
{
while (reader.Read())
{
MessageBox.Show(reader.GetString(0), "Table1.Column1");
}
if(reader.NextResult())
{
while (reader.Read())
{
MessageBox.Show(reader.GetString(0), "Table2.Column2");
}
}
}
}
}
Source: stackoverflow.com
All those coders who are working on the SQL based application and are stuck on C# mysql data reader from two tables can get a collection of related answers to their query. Programmers need to enter their query on C# mysql data reader from two tables related to SQL code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about C# mysql data reader from two tables for the programmers working on SQL code while coding their module. Coders are also allowed to rectify already present answers of C# mysql data reader from two tables while working on the SQL language code. Developers can add up suggestions if they deem fit any other answer relating to "C# mysql data reader from two tables". Visit this developer's friendly online web community, CodeProZone, and get your queries like C# mysql data reader from two tables resolved professionally and stay updated to the latest SQL updates.