求助,函数:
public string allchildclass(string parent)
{
string str="";
newconn.opens();
string sql="Select Id From ClassList Where Parent='"+Parent+"'";
SqlCommand cmd=new SqlCommand(sql,newconn.myConn);
SqlDataReader rs;
rs=cmd.ExecuteReader();
while (rs.Read())
{
str=str+","+rs["id"];
str=str+allchildclass(Convert.ToString(rs["id"]));
}
newconn.close();
return str;
}classlist 结构
id   parent
1    0
2    0
3    0
4    0
5    1
6    1
7    1
8    3
9    1
执行了allchildclass(parent)提示:
“超时时间已到。在从池中获取连接之前超时时间已过。出现这种情况可能是因为所有池连接都已被使用并已达到最大池大小。”这里是怎么回事?