Ask a Question related to Microsoft Access, Design and Development.

  1. #1

    Default 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 compact everything is fine.

    Thanks in advance


    Armin Guest

  2. Similar Questions and Discussions

    1. 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: > Well here are some articles...
    2. Compacting access database using asp pages?
      How can I compact an access database on the webserver of my site using code in ASP page?
    3. access -compacting and replicating?
      "mark | r" <mark@nmd.freeuk.com> wrote in message news:3f3212dc$0$18487$cc9e4d1f@news.dial.pipex.com... http://www.aspfaq.com/2190 a ...
    4. can't restore Outlook Express messages after compacting all files
      Please I need help. I am trying to transfer my Outlook Express Messages to a new computer (XP). On the original computer (Win98), I went to...
  3. #2

    Default Re: compacting the db

    All db users should have Read/Write/Create/Delete on the Directory which is
    cascaded to the files in the Directory.

    The reason is that when you compact a database, Access/JET actually creates
    a temporary database "dbX.mdb" (starting with X=1), write all objects from
    the existing db, delete the existing db and then rename the "dbX.mdb" to the
    old name. Thus after you compact, it is actually a *different* file, NOT
    the original file and the new file carries different permission if the
    Directory has different permission.

    --
    HTH
    Van T. Dinh
    MVP (Access)



    "Armin" <a@a.com> wrote in message
    news:00b101c33dac$89335da0$a501280a@phx.gbl...
    > 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 compact everything is fine.
    >
    > Thanks in advance
    >
    >

    Van T. Dinh Guest

  4. #3

    Default Re: compacting the db

    Hi,

    Van has explained the situation; it seems it is by design, the compact
    process always compacts the source file into a new file, even if you
    compact the file in place in Microsoft Access. When the new file is
    created, it automatically inherits the default NTFS permissions for new
    files in that particular folder. Custom NTFS permissions are not migrated
    from the source file to the target file. If your computer is using
    Access2002 , You can find the public Knowledge Base at :

    295234 ACC2002: Compacting File Resets NTFS Permissions

    [url]http://support.microsoft.com/?id=295234[/url]

    If your computer is using Access 2000 , It is probably that the new file
    will take/ inherit the security property of the Temp folder of the User
    of the server machine.

    You can try the following steps to give the permissions which source
    database file has to the new file.

    1 go to C:\Documents and Settings\<User1>\Local Settings\Temp (where
    <User1> is one of your users)

    2. Right mouse click and go to Properties

    3. Select the Security tab and add the permissions which your source
    database file has to the folder

    4. Test compacting the database again

    Hope it helps.


    Sincerely,

    Alick Ye, MCSD
    Product Support Services
    Microsoft Corporation
    Get Secure! - <www.microsoft.com/security>

    This posting is provided "AS IS" with no warranties, and confers no rights.

    --------------------
    | Content-Class: urn:content-classes:message
    | X-Tomcat-NG: microsoft.public.access.forms
    |
    | They have full permission and still after compacting it
    | changes to SYSTEM,ADMIN and user who worked on the DB.
    |
    |
    |
    |
    | >-----Original Message-----
    | >All db users should have Read/Write/Create/Delete on the
    | Directory which is
    | >cascaded to the files in the Directory.
    | >
    | >The reason is that when you compact a database,
    | Access/JET actually creates
    | >a temporary database "dbX.mdb" (starting with X=1), write
    | all objects from
    | >the existing db, delete the existing db and then rename
    | the "dbX.mdb" to the
    | >old name. Thus after you compact, it is actually a
    | *different* file, NOT
    | >the original file and the new file carries different
    | permission if the
    | >Directory has different permission.
    | >
    | >--
    | >HTH
    | >Van T. Dinh
    | >MVP (Access)
    | >
    | >
    | >
    | >"Armin" <a@a.com> wrote in message
    | >news:00b101c33dac$89335da0$a501280a@phx.gbl...
    | >> 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 compact everything is
    | fine.
    | >>
    | >> Thanks in advance
    | >>
    | >>
    | >
    | >
    | >.
    | >
    |

    Alick [MSFT] 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