数据库ADO.Net连接池 [英] Database ADO.Net connection pooling

查看:77
本文介绍了数据库ADO.Net连接池的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个查询,我在web.config中添加了连接.刚打开
并访问数据库,再次进入下一页,我是​​否应该连接数据库
无需使用开放式连接.

Hi guys,

I have one query , I have connection add in web.config . Just open
and access database, again i am going to next page shall I connect database
without using open connection. is possible means how????

推荐答案

您可以在下一页检查连接状态,如果连接状态为打开,则可以使用它
You can check for connection State in next page and if it is open then you can use it
if (con.State == ConnectionState.Open)


这篇关于数据库ADO.Net连接池的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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