select MAX(Column3) from table1
DataTable table = new DataTable(); using (SqlConnection connection = new SqlConnection("ConnectionString")) { using (SqlCommand cmd = new SqlCommand("select MAX(Column3) from table1", connection)) { using (SqlDataAdapter adapter = new SqlDataAdapter(cmd)) { adapter.Fill(table); textBox.Text = table.Rows[0].ToString(); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)