  using System;
  using System.Collections.Generic;
  using System.Data.SqlClient;
  
  using System.Web;
  using System.Web.UI;
  using System.Web.UI.WebControls;
  
  public partial class ExecuteScalar : System.Web.UI.Page
  {
      protected void Page_Load(object sender, EventArgs e)
      {
          string connStr = "server=(local);uid=sa;pwd=123;database=demo";
          SqlConnection conn = new SqlConnection(connStr);
          conn.Open();
          SqlCommand cmd = new 【SqlCommand】(" Select 【count】(*) from users", conn);
          int count = (int)cmd.【ExecuteScalar】();
          Response.【Write】("Users表中共有" + count + "用户");
      }
  }

--答案--
   ExecuteScalar   count   SqlCommand   Write