select count(*) from [student_reg] WHERE [std_id]= 'c101234'
SqlCommand myCommand = new SqlCommand("select count(*) from [student_reg] WHERE [std_id]= 'c101234' ", myConnection); int count = (Int32) myCommand.ExecuteScalar();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)