首页 | 本学科首页   官方微博 | 高级检索  
     

ADO.Net连接池中非正常断开连接的异常控制
引用本文:张存年,赵雷,吕强. ADO.Net连接池中非正常断开连接的异常控制[J]. 计算机工程与设计, 2005, 26(5): 1341-1343
作者姓名:张存年  赵雷  吕强
作者单位:苏州大学,计算机科学与技术学院,江苏,苏州,215006
摘    要:动态的Web站点常常要从数据库中获得必要的数据来生成Web页面,因此Web应用程序与数据库之间将耗费巨大的开销来创建数据库连接,ADO.Net采用连接池来减少创建数据库连接的开销。但是,ADO.Net连接池中经常会出现非正常断开的连接,池管理程序会将这些实际无效的连接分配给请求的应用程序使用,应用程序在使用这些连接执行SQL语句时会发生连接异常,提出了避免在SQL Server,Net数据提供程序中出现这种连接异常的解决方案。

关 键 词:ADO.Net 连接池 池连接 连接异常 异常控制 数据库
文章编号:1000-7024(2005)05-1341-03

Exception control on abnormal disconnected connections in ADO .Net connection pool
ZHANG Cun-nian,ZHAO Lei,LU Qiang. Exception control on abnormal disconnected connections in ADO .Net connection pool[J]. Computer Engineering and Design, 2005, 26(5): 1341-1343
Authors:ZHANG Cun-nian  ZHAO Lei  LU Qiang
Abstract:Dynamic website often gets the essential data from database to create web page, so it will consume heavy cost to establish database connection between web application and database. ADO .net uses connection pool to reduce this cost of establishing database connection. However, the abnormal disconnected connections often appear in ADO .net connection pool, the pool manager will allot these actually invalid connections to the request applications. When applications use these connections to execute SQL statement, con- nection exceptions are generated. A solution is shown to avoid these connection exceptions being generated in the SQL server .net data provider.
Keywords:ADO .net  connection pool  pool connection  connection exception  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号