摘要: conn.Open打开是有次数上限的解决办法编码过程中使用返回SqlDataReader类型函数来操作数据库时,何如关闭数据库连接如:public static OleDbDataReader ExecuteReader(string strSQL){OleDbConnection connection = new OleDbConnection(connectionString);OleDbCommand cmd = new OleDbCommand(strSQL, connection);try{connection.Open();OleDbDataReader myReader = cm 阅读全文
posted @ 2010-12-30 10:29 Wind·e 阅读(803) 评论(0) 推荐(0) 编辑