A note to add to ASPFAQ.com for database compacting

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default A note to add to ASPFAQ.com for database compacting

    I'd like to add my 2 cents from the school of hard knocks to
    [url]http://www.aspfaq.com/show.asp?id=2009[/url]

    I get this error after going in Access to Tools, Database Utilities,
    Compact and Repair Database...

    Error Type:
    Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
    [Microsoft][ODBC Microsoft Access Driver]General error Unable to open
    registry key 'Temporary (volatile) Jet DSN for process 0x2a4 Thread
    0x5cc DBC 0x15d18bc Jet'.
    /copydata.asp, line 135

    I checked the security tab of the file and noticed that the Compact
    and Repair operation had reset the securities settings, causing the
    error. Each time I compact and repair the database, the security
    settings get reset and I have to go back and manually edit them to fix
    the problem.

    -Mike
    Mike Guest

  2. Similar Questions and Discussions

    1. Compacting access database using asp pages?
      How can I compact an access database on the webserver of my site using code in ASP page?
    2. Yes, aspfaq.com is down.
      Working on it. No ETA yet, sorry.
    3. Is ASPFAQ down?!
      Just kidding. Today is Aaron's birthday and this is a surprise. So when he gets here, everyone yell "Happy Birthday!" Ok, turn out the lights, I...
    4. About www.aspfaq.com
      Message from Aaron about www.aspfaq.com issues: I'm in the midst of switching database hosts, but I'm on vacation (out of the country) until...
    5. compacting the db
      Everytime I compact the db the file changes permission from everyone to system,admin & to user who used the db.OS is win2000 on NTFS.If I don't...
  3. #2

    Default Re: A note to add to ASPFAQ.com for database compacting

    Just for the record, two things.

    When using .mdb files, you should control the security at the directory
    level and set the DB to inherit permissions from the directory it's in,
    unless your database will always be read-only. The reason for this is that
    if a .ldb file needs to be created when you connect, you will need the
    appropriate permissions on the directory in order for that file to be
    created and then deleted. (Note this is just a conclusion I've come to on
    my own, not anything I read in a Microsoft book or anything! So, I could be
    wrong. :] )

    Also, you should be using OLEDB connections instead of ODBC. See here:
    [url]http://www.aspfaq.com/show.asp?id=2126[/url]

    Ray at home


    "Mike" <mike_newsgroups@yahoo.com> wrote in message
    news:6a68ace3.0408101749.7ed254ae@posting.google.c om...
    > I'd like to add my 2 cents from the school of hard knocks to
    > [url]http://www.aspfaq.com/show.asp?id=2009[/url]
    >
    > I get this error after going in Access to Tools, Database Utilities,
    > Compact and Repair Database...
    >
    > Error Type:
    > Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
    > [Microsoft][ODBC Microsoft Access Driver]General error Unable to open
    > registry key 'Temporary (volatile) Jet DSN for process 0x2a4 Thread
    > 0x5cc DBC 0x15d18bc Jet'.
    > /copydata.asp, line 135
    >
    > I checked the security tab of the file and noticed that the Compact
    > and Repair operation had reset the securities settings, causing the
    > error. Each time I compact and repair the database, the security
    > settings get reset and I have to go back and manually edit them to fix
    > the problem.
    >
    > -Mike

    Ray at Guest

  4. #3

    Default Re: A note to add to ASPFAQ.com for database compacting

    This is because when access does the compact & repair operations it has
    to create a new temporary file. Then the new file inherits the NTFS
    permissions of the folder in question depending on the rules of NTFS
    security. Thus your problem is that you have to high of security set
    for your access folder.

    One thing you might consider is creating a directory just for you access
    file(s) and setting the folders security so that you can still access
    them from the Internet.

    This will help you out because it will only give the Internet access to
    the files needed and also a compact & repair operation will not cause
    you any problems.

    The only change I suggest is to make note of NTFS security inheritance
    and how it effects an access database that has had a compact & repair
    operation performed on it.

    Mike wrote:
    > I'd like to add my 2 cents from the school of hard knocks to
    > [url]http://www.aspfaq.com/show.asp?id=2009[/url]
    >
    > I get this error after going in Access to Tools, Database Utilities,
    > Compact and Repair Database...
    >
    > Error Type:
    > Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
    > [Microsoft][ODBC Microsoft Access Driver]General error Unable to open
    > registry key 'Temporary (volatile) Jet DSN for process 0x2a4 Thread
    > 0x5cc DBC 0x15d18bc Jet'.
    > /copydata.asp, line 135
    >
    > I checked the security tab of the file and noticed that the Compact
    > and Repair operation had reset the securities settings, causing the
    > error. Each time I compact and repair the database, the security
    > settings get reset and I have to go back and manually edit them to fix
    > the problem.
    >
    > -Mike
    joker Guest

  5. #4

    Default Re: A note to add to ASPFAQ.com for database compacting

    I set the database directory permission to give full access to
    everyone, then checked "Allow inheritable permissions from parent to
    propagate to this object" on the database file. However, the "compact
    and repair" operation clears the check, making the file permissions
    default back to the windows default (I'm using Access 2000 on win
    2000) and not the permissions of the directory the file is in. So
    what am I doing wrong? Is it because I gave full access to everyone
    on that folder? Can I set an "internet directory default" in windows
    control panel somewhere?

    Thanks,
    Mike

    joker <com> wrote in message news:<phx.gbl>... [/ref]
    Mike Guest

  6. #5

    Default Re: A note to add to ASPFAQ.com for database compacting

    I have never seen a newly created file not default to inheriting permissions
    from its parent. And I've never heard of any way to have a file not do
    that. But I'm no OS expert! :] What operating system?

    Ray at work

    "Mike" <com> wrote in message
    news:google.com... 


    Ray Guest

  7. #6

    Default Re: A note to add to ASPFAQ.com for database compacting

    Well here are some articles about NTFS permissions from the Microsoft
    knowledge base at http://support.microsoft.com.

    153094 Restoring Default Permissions to Windows NT System Files (NTFS)
    237399 The Default NTFS Permissions Are Not Applied to a Converted Boot
    Partition

    Also check out that articles in this link. (I set the limit to 150
    articles as a warning for dial-up users.) (Watch for wrap it ends with
    "&InCC=on" without the quotes of course.)

    http://support.microsoft.com/search/default.aspx?InCC_hdn=true&Catalog=LCID%3D1033%26C DID%3DEN-US-KB%26PRODLISTSRC%3DON&withinResults=&QuerySource=g ASr_Query&Product=win2000&Queryc=Permission+NTFS&Q uery=Permission+NTFS&KeywordType=ALL&maxResults=15 0&Titles=false&numDays=&InCC=on



    Ray at <%=sLocation%> [MVP] wrote:
     
    >
    >
    >[/ref]

    joker Guest

  8. #7

    Default Re: A note to add to ASPFAQ.com for database compacting

    I also forgot to mention that inherited deny permission take precedence
    over allow permissions.

    joker wrote:
     
    >>
    >>
    >>[/ref]
    >[/ref]

    joker Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139