SELECT MAX(myColumn) FROM myTable
SqlCommand cmd = new SqlCommand("select max(myColumn) as myColumnfrom myTable", con); con.Open(); string a =Convert.ToString( cmd.ExecuteScalar()); Response.Write(a); con.Close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)