如何清除ADODB连接池 [英] How to Clear ADODB Connection pool

查看:119
本文介绍了如何清除ADODB连接池的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个同时使用ADO.net和ADODB连接(均连接到MS SQl服务器)的VB.net应用程序.
每当ADO.net连接引发期望时,我们都会清除池
现在,如果重新打开任何ADO.connection并且一切正常,

We have a VB.net application using both ADO.net and ADODB connections(both connecting to MS SQl server)
Whenever an ADO.net connection throws an expection, we cleared the pools
Now if any ADO.connection reopened and everything works fine
Is there any way to clear pools for ADODB connection?

推荐答案

srikrishnathanthri,

尝试添加"pooling = false;"在您的连接字符串中,这将使连接在关闭后清除连接池.

希望对您有帮助.

快乐编码:)

Sunny K
Hi srikrishnathanthri,

try adding "pooling=false;" in your connection string, this makes the connection clear the pool after the connection is closed.

Hope it helps you.

Happy Coding :)

Sunny K


这篇关于如何清除ADODB连接池的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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