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

问题描述

请帮助我,我正面临这个问题:


''/''应用程序中的服务器错误.
-------------------------------------------------- ------------------------------

Microsoft Jet数据库引擎无法打开文件``C:\ sntinewhomepage \ data \ SNTI.mdb''.它已经由另一个用户独占打开,或者您需要权限才能查看其数据.
说明:执行当前Web请求期间发生未处理的异常.请查看堆栈跟踪,以获取有关错误及其在代码中起源的更多信息.

异常详细信息:System.Data.OleDb.OleDbException:Microsoft Jet数据库引擎无法打开文件"C:\ sntinewhomepage \ data \ SNTI.mdb".它已经由另一个用户专门打开,或者您需要权限才能查看其数据.

源错误:


第45行:Dim bix作为字符串
第46行:Dim dr1 As OleDbDataReader
第47行:con1.Open()\\这里发生错误\\
第48行:cmd1 = New OleDbCommand(从反馈中选择max(sno)+1"),con1)
第49行:

Please help me i am facing this problem:


Server Error in ''/'' Application.
--------------------------------------------------------------------------------

The Microsoft Jet database engine cannot open the file ''C:\sntinewhomepage\data\SNTI.mdb''. It is already opened exclusively by another user, or you need permission to view its data.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.OleDb.OleDbException: The Microsoft Jet database engine cannot open the file ''C:\sntinewhomepage\data\SNTI.mdb''. It is already opened exclusively by another user, or you need permission to view its data.

Source Error:


Line 45: Dim bix As String
Line 46: Dim dr1 As OleDbDataReader
Line 47: con1.Open() \\error occurs here\\
Line 48: cmd1 = New OleDbCommand("select max(sno)+1 from Feedback", con1)
Line 49:

推荐答案



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

08-13 23:09