Modified 2001/05/17 - JSB

MS ACCESS 2000 - Hazards and Issues

I. Problems with Setting an OBJdbConnection Object from VBScript

Take nothing for granted upon the first time usage of an Access 2000 DB. The scenerio I had was that I migrated an Access 97 DB, which previously functioned with serverside VBScript connectivity, to Access 2000 format. (Access 2000 was newly installed at this point.) The .asp file test yeilded the following 500 class error from Access 2000 to the Response.Object:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft] [ODBC Microsoft Access Driver] General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x8cc Thread 0x94c DBC 0x2e361ec Jet'.

The .asp code where it choked is:

Set OBJdbConnection = Server.CreateObject("ADODB.Connection")
OBJdbConnection.Open("Driver={Microsoft Access Driver(*.mdb)};DBQ=" & orgPath & "\whrereEverYourAppIs\yourDB.mdb")

1. Set Windows Temp Directory Priviliges Appropriately (for IUSR)

  1. Open the Windows (file) Explorer.
  2. Find the \WINNT\Temp directory.
  3. Right click and select "Temp Properties".
  4. In the resulting panel click on the "Security" tab.
  5. Now click the "Add" button.
  6. In the new "Select Users ..." panel (the top list box) select the user entity whose first 5 characters are "IUSR_", which is the Internet Guest User.
  7. (After adding the IUSR you will be back in the "Security" tab in "Temp Properties" panel.)
  8. In the "Permissions" box allow only List Folder Contents, Read, and Write permissions.
  9. It also very important to click the checkbox saying "Allow inheritable from parent to propagate this object".

2. Set Server Application Directory Priviliges Appropriately (for IUSR)

  • All the steps to do this are the same as in the above paragraph number 1.

    NB: the "Server Application Directory" refers to the area below the server-root, which is the physical directory from whence the server serves. In MS Server 2000 case this is C:\Inetpub\wwwroot\whrereEverYourAppIs , to which one would browse with the URL, http://yourHost/whrereEverYourAppIs .

    Back to top of page.

    II. Problems with timing out during a SQL query from the OBJdbConnection Object in VBScript

    After fixing the problem with setting the OBJdbConnection Object (I., above), I still kept getting another error:

    Provider error '80004005' Unspecified error xxx.asp, line ###

    Though none of this is shown in the error message, yhis involved an assumed timeout of the OBJdbConnection Object while accessing the Access 2000 DB. The fix for this is merely to set a timeout value for the OBJdbConnection Object:

    Set OBJdbConnection = Server.CreateObject("ADODB.Connection")
    ' Without the following ConnectionTimeout setting application fails intermittently.
    OBJdbConnection.ConnectionTimeout = 20
    OBJdbConnection.Open("Driver={Microsoft Access Driver (*.mdb)};DBQ=" & orgPath & "\whrereEverYourAppIs\yourDB.mdb")

    Back to top of page.

    III. Entry from Bob Doyle skyBug #223:

    Trying to get Access 2000 working on skyBuilders at Interland: Access 2000 (apparently) installs a new Jet engine, which requires different permissions on various Temp folders.

    Solution: Give the IUSR read and write permissions on the Temp directory (in WINNT) used by the Jet engine to write its .ldb files.

    Note that when an Access 97 database is converted to Access 2000, the IUSR does not have permissions on the new file. When we added the IUSR, it came up with Read and with Read and Execute permissions. We had to uncheck Read and Execute, and check Write. Then everything worked.
    __________________________________
    Symptoms:

    Several database connection errors;
    Name not valid problem;
    Needed .xml in Application Mappings (to .asp).

    [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key
    'Temporary (volatile) Jet DSN for process 0x544 Thread 0x4c0 DBC 0x14e02024 Jet'.

    /timelines/db.inc, line 56

    Reset permissions on all files to allow IUSR?
    Propagated inherited permissions. (Missed getting Write permission on 1st pass.)

    Provider error '80004005'
    Unspecified error

    /timelines/db.inc, line 56

    Database does not have IUSR access?
    Also IUSR permissions?
    Maybe TEMP problem? for .ldb?
    Access 2000 stores its .ldb in a different place from 97?
    TEMP, and WINNT/Temp?
    __________________________________
    Tried to change back to the old Access 97 .mdb (skyBuilders.98.mdb), renaming it to timeLines .mdb (and new timeLines.mdb to timeLines2000.mdb)to work with the new db.inc.
    but...

    Microsoft OLE DB Provider for ODBC Drivers error '80004005'
    [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key
    'Temporary (volatile) Jet DSN for process 0x544 Thread 0x688 DBC 0x23debbc Jet'.

    /timelines/db.inc, line 56

    Maybe installing Access 2000 changed the jet engine? (But skyNT97 is running under Windows 2000?)
    __________________________________
    No, it was a permissions problem. IUSR lacked write privileges (had Read and Execute? fixed this) Finally, change dbJS.inc to timeLines.mdb (from skyBuilders.98.mdb)

    IV. Miscellaneous notes related to ODBC for MySQL and MS Windows

  • Access 2000 needs a patch from Microsoft to be able to export tables to MySQL; Just download and install the newest Microsoft MDAC from http://www.microsoft.com/data .

    Back to top of page.

    Edit 
    Language: fr  | it  | de  | es  | pt  | ar  | he  | da  | nl  | zh  | ja  | ko  | none 

    This Version:
    Archived at: https://www.skybuilders.com/Users/Jesse/Docs/Access2000.20010517155246.html

    Requests
     Version: 21232 | Series: 85923