应该是sql语句中的 * 附近有错误,池连接超过最大数是因为你打开连接太多没有关闭,记得要close

解决方案 »

  1.   

    Dim dataReader As System.Data.IDataReader = dbCommand.ExecuteReader(System.Data.CommandBehavior.CloseConnection)这个算不算是关闭了数据库连接啊?
      

  2.   

    Dim dataReader As System.Data.IDataReader = dbCommand.ExecuteReader(System.Data.CommandBehavior.CloseConnection)这个算不算是关闭了数据库连接啊?
      

  3.   

    顺便问一句:datareader可以用select count(*) from .... 来统计记录的总数吗?