Web应用程序截获数据库错误信息的方法  

Methods of Catching Wrong Database Information in Web Application

在线阅读下载全文

作  者:刘群[1] 马丽艳[2] 郭子平[3] 

机构地区:[1]河北工程大学教育技术中心,河北邯郸056038 [2]河北工程大学信电学院,河北邯郸056038 [3]邯郸市水利水电勘测设计研究院信息部,河北邯郸056002

出  处:《河北大学学报(自然科学版)》2006年第6期664-667,共4页Journal of Hebei University(Natural Science Edition)

基  金:河北省科技攻关项目(2000103620041102)

摘  要:在数据库应用系统中,对记录数据的操作涉及增删、修改和查询等,而这些功能的实现必定与用户输入的各种信息相关,用户输入信息指令如果不符合数据库定义的约束限制,则会导致异常,引发错误.良好的数据库应用系统应能对各种异常做出处理,并将错误信息通过易于理解的语言方式反馈给用户,使用户知道引发错误的根源并做出适当的修正,这是实现完善的人机交互界面的重要内容.本文使用ASP.NET开发数据库应用程序,对数据库可能产生的异常处理技术进行一些探讨.B/S database program system includes various of work ,such as inserting records,deleting records and condition searches. These operations are related to user's inputing information, If client user's orders do not accord with database defined restrain, system will rise exception and emerge error. Good database application can deal with every unexcepted error and output information to user with easy understandable language. By this way user knows the questions and modifies to correct information orders, It is an important function that perfect operaters-computer interface, In this paper, we developed database application program with Microsoft ASP. Net to talk about the method of handling unexcepted error.

关 键 词:完整性约束 SqlException 错误级别 错误代码 Sqlconnection 表结构 

分 类 号:TP311.1[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象