Girish Bhatia
1/21/2003 8:38:00 PM
Ok, after 2 days of racking my brains on why this is
happening, I am positive that there is a bug in the
ODBC.NET driver and am wondering if anyone can confirm
this, or is this a known issue. This is related to the
post titled - "Connection Error" by me.
I have Access 2000 installed on my machine (W2k
Professional) which is the database for my web app. I
installed it from the MSDN CD's (Office 2000 SR-1
Premium). So long as I work with the database without
compacting it, it works fine. Once I compact the database,
and then try to access the webapp, i get the following
error -
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]
The Microsoft Jet database engine cannot open the
file '(unknown)'. It is already opened exclusively by
another user, or you need permission to view its data.
ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's
SQLSetConnectAttr failed ERROR [HY000] [Microsoft][ODBC
Microsoft Access Driver] The Microsoft Jet database engine
cannot open the file '(unknown)'. It is already opened
exclusively by another user, or you need permission to
view its data.
The stack trace is
[OdbcException: ERROR [HY000] [Microsoft][ODBC Microsoft
Access Driver] The Microsoft Jet database engine cannot
open the file '(unknown)'. It is already opened
exclusively by another user, or you need permission to
view its data.
ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's
SQLSetConnectAttr failed
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]
The Microsoft Jet database engine cannot open the
file '(unknown)'. It is already opened exclusively by
another user, or you need permission to view its data.]
Microsoft.Data.Odbc.OdbcConnection.Open()
Data_Layer.DataManager.LogError(String strFromObj, String
strFromMethod, String strErrorText, Int32 iErrNo, String
strSource) in C:\Documents and Settings\gibhatia\My
Documents\Visual Studio Projects\TB\Data
Layer\DataManager.vb:112
TB.TBWeb.Login.cmdLogin_Click(Object sender, EventArgs e)
in c:\inetpub\wwwroot\tbweb\login.aspx.cs:94
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEve
ntHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent
(IPostBackEventHandler sourceControl, String
eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection
postData)
System.Web.UI.Page.ProcessRequestMain()
Can anyone please confirm if this is happening with them
too? Is there a known issue about working with the
ODBC.NET driver after the database has been
compacted/repaired?
Once this happens, if I create a new database (.mdb file)
and export/import the tables from the old database into
the new db, everything works fine. I find this weird, and
dont seem to have a reason why this should happen.
Can anyone share their thoughts on why this is happening?
Are there any patches to O2K SR-1 that I need to install?
Thanks,
Girish