Re: Problem reading data from Access 2000

From: Ed (Please_at_NoEmail.com)
Date: 09/03/04


Date: Thu, 02 Sep 2004 23:09:45 -0500

Ed wrote:

> I cereated a database with only one table (person) in Access 2000 and
> created and ODBC system DNS (PersonDB). I have following code in my ASP.Net
>
> string ConStr = "DSN=PersonDB";
> string ComStr = "Select Name from Person";
> OdbcDataAdapter dataAdapter = new OdbcDataAdapter(ComStr, ConStr);
> DataSet dataSet = new DataSet();
> dataAdapter.Fill(dataSet, "Person");
>
> I am using the same machine as server and client. I ran this after
> restarting the machine so I know DB is not used. I get the followin
> error on the last line above.
>
>
> 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.
> 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. I have given read
> access to ths mdb to IUSR_ account.
>
> Thanks
Never mind. I am used to ASP. I had to give ASPNET (and not IUSR_)
account access to the file.

>
> Exception Details: Microsoft.Data.Odbc.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.
>
>
>



Relevant Pages

  • Re: Problem reading data from Access 2000
    ... > Jet database engine cannot open the file ''. ... > need permission to view its data. ... I had to give ASPNET (and not IUSR_) ... account access to the file. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: URGENT - ODBC Problems.
    ... > Jet database engine cannot open the file ''. ... > opened exclusively by another user, or you need permission to view ... The IUSR account requires Change permissions for that folder. ... Please reply to the newsgroup. ...
    (microsoft.public.inetserver.asp.db)
  • Problem reading data from Access 2000
    ... Jet database engine cannot open the file ''. ... SQLSetConnectAttr failed ERROR [ODBC Microsoft Access ... Driver] The Microsoft Jet database engine cannot open the file ... need permission to view its data. ...
    (microsoft.public.dotnet.framework.adonet)
  • Jet Database Wont Open
    ... The Microsoft Jet database engine cannot open the file 'C:\Inetpub\wwwroot\OnlineTesting\Tests.mdb'. ... It is already opened exclusively by another user, or you need permission to view its data. ... Imports System.Data.OleDb ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Permission denied when using fs.CreateFolder(path)
    ... explicit permission for IUSR to modify the directory in which you want to ... >> You can authenticate your user with Windows authentication, ... >> you just give IUSR permission to create folders if that's what your ...
    (microsoft.public.inetserver.asp.general)

Quantcast