悬赏园豆:10
[已解决问题]
解决于 2008-08-24 19:18
<P>public static SqlDataReader ExecuteReader(string connString, CommandType cmdType, string cmdText, params SqlParameter[] cmdParms)<BR> {<BR> SqlCommand cmd = new SqlCommand();<BR> SqlConnection conn = new SqlConnection(connString);<BR> try<BR> {<BR> PrepareCommand(cmd, conn, null, cmdType, cmdText, cmdParms);<BR> SqlDataReader rdr = cmd.ExecuteReader(CommandBehavior.CloseConnection);<BR> cmd.Parameters.Clear();<BR> return rdr;</P>
<P> }<BR> catch (Exception ex)<BR> {<BR> conn.Close();<BR> throw ex;<BR> }<BR> }</P>
<P> 怎样修改好呢,现在发现经常有超时的现象,数据库连接池已满的现象</P>