Hello,
Replace your with this
SqlDataAdapter adapter = new SqlDataAdapter();
DataTable ds = new DataTable();
SqlCommand sqlcom = new SqlCommand("selectdata", sqlcon);
sqlcom.CommandType = CommandType.StoredProcedure;
sqlcom.Parameters.Add(new SqlParameter("name", "Juhi Paunikar"));
ds.Load(sqlcom.ExecuteReader());
sqlcon.Close();
you are missed the line command type -4th line in my code.