谢谢

解决方案 »

  1.   

    why not?using System.Data;
    using System.Data.SqlClient;
    using System.Threading;public class Test
    {
       while(true)
       {
          SqlConnection conn = new SqlConnection("......");
          SqlCommand cmd = new SqlCommand("select count(*) from table",conn);
          conn.Open();
          int i = cmd.ExecuteScalar();
          Console.Write(i.ToString());
          conn.Close();
          Thread.Sleep(3000);
       }
    }
      

  2.   

    for(i = 0; i < 200; i++ ){
       ReadFromDataBase();
       Thread.Sleep(3000);
    }