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

Web应用程序截获数据库错误信息的方法
引用本文:刘群,马丽艳,郭子平.Web应用程序截获数据库错误信息的方法[J].河北大学学报(自然科学版),2006,26(6):664-667.
作者姓名:刘群  马丽艳  郭子平
作者单位:1. 河北工程大学,教育技术中心,河北,邯郸,056038
2. 河北工程大学,信电学院,河北,邯郸,056038
3. 邯郸市水利水电勘测设计研究院,信息部,河北,邯郸,056002
摘    要:在数据库应用系统中,对记录数据的操作涉及增删、修改和查询等,而这些功能的实现必定与用户输入的各种信息相关,用户输入信息指令如果不符合数据库定义的约束限制,则会导致异常,引发错误.良好的数据库应用系统应能对各种异常做出处理,并将错误信息通过易于理解的语言方式反馈给用户,使用户知道引发错误的根源并做出适当的修正,这是实现完善的人机交互界面的重要内容.本文使用ASP.NET开发数据库应用程序,对数据库可能产生的异常处理技术进行一些探讨.

关 键 词:完整性约束  SqlException  错误级别  错误代码  Sqlconnection  表结构
文章编号:1000-1565(2006)06-0664-04
修稿时间:2005年5月10日

Methods of Catching Wrong Database Information in Web Application
LIU Qun,MA Li-yan,GOU Zi-ping.Methods of Catching Wrong Database Information in Web Application[J].Journal of Hebei University (Natural Science Edition),2006,26(6):664-667.
Authors:LIU Qun  MA Li-yan  GOU Zi-ping
Abstract: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.
Keywords:intergrated restrain  SqlException  error level  error code  SqlConnection  structure table  
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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