超时超时的答案.在SQL 2000中执行Queris时,Vb.Net [英] Answer For Timeout Expiered. when Executing Queris in Sql 2000,Vb.Net

查看:115
本文介绍了超时超时的答案.在SQL 2000中执行Queris时,Vb.Net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,在某些大循环中,执行时查询
我有一个Sql错误
"超时已到期.在从池中获取连接之前经过了超时时间.这可能是因为所有池中的连接都在使用中,并且已达到最大池大小."

我正在使用 Sql 2000

您能帮我吗?您知道我的问题的任何解决方案吗?..
Thnks

In my application In some Large Loops ,when executing, queries
I have an Sql error
"Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached."

I am Using Sql 2000

Can U Help Me??do U know Any Solution to my Problem??..
Thnks

推荐答案

我仅用1行代码即可得到答案.
只需使用
SqlConnection.ClearAllPools()
在打开连接之前.
一切.
I got the answer just in 1 line Code.
Just Use
SqlConnection.ClearAllPools()
before open the connection.
Thnks All.


您是否要创建许多连接对象,而不是关闭并处置它们?

您正在使用什么连接类?

尼克
Are you creating lots of connection objects and not Closing and Disposing them?

What connection class are you using?

Nick


这篇关于超时超时的答案.在SQL 2000中执行Queris时,Vb.Net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆