Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You have <em>many choices</em> to do that:</p> <h2>1. Use the Compiled Executable Version of Your MS Access Database File.</h2> <p>You can <strong>compile your database into an Executable File</strong>.</p> <p>But I don't know that you can access to it from other Programming Languages like C# or not. I think you must search the Internet.</p> <ul> <li><p><strong>In MS Access 2013:</strong></p> <p>Go to the <em>File</em> -> <em>Save As</em> -> <em>Save Database As</em> -> <em>Make ACCDE</em> "File will be compiled into an executable only file."</p></li> </ul> <p><img src="https://i.stack.imgur.com/Dm1FB.jpg" alt="Make an Executable file from the database."> <img src="https://i.stack.imgur.com/nWHaq.jpg" alt="Save the Executable file of the database in somewhere."></p> <ul> <li><p><strong>In MS Access 2010:</strong></p> <p>Go to the <em>File</em> -> <em>Save &amp; Publish</em> -> <em>Save Database As</em> -> <em>Make ACCDE</em></p></li> <li><p><strong>In MS Access 2007:</strong></p> <p>Go to the <em>Database Tools</em> ribbon tab -> <em>Make ACCDE</em> (in the Database Tools group)</p></li> </ul> <h2>2. Encrypt Database with the Password.</h2> <p>You can <strong>save your MS Access database file with Password</strong>; in this way, <em>you must set the Password in database connection string for accessing to it.</em></p> <ul> <li><p><strong>In MS Access 2013:</strong></p> <p>Go to the <em>File</em> -> <em>Info</em> -> <em>Encrypt with Password</em> "Use a password to restrict access to your database. Files that use the 2007 Microsoft Access file format or later are encrypted."</p></li> </ul> <p><img src="https://i.stack.imgur.com/NR7xj.jpg" alt="Open File Menu."> <img src="https://i.stack.imgur.com/TslWz.jpg" alt="Open the database file."> <img src="https://i.stack.imgur.com/X7ap7.png" alt="Open the database file in Exclusive mode."> <img src="https://i.stack.imgur.com/RdO6R.jpg" alt="Encrypt the database file with Password."> <img src="https://i.stack.imgur.com/szM7s.jpg" alt="Add Password to the database for Encrypting."></p> <p>Go to the <em>File</em> -> <em>Info</em> -> <em>Decrypt Database</em> "Removes the password from this database."</p> <p><img src="https://i.stack.imgur.com/m4EuM.jpg" alt="Decrypt the database file."> <img src="https://i.stack.imgur.com/eMceh.jpg" alt="Enter Password for Decrypting database file."></p> <ul> <li><p><strong>In MS Access 2010:</strong></p> <p>Go to the <em>File</em> -> <em>Info</em> -> <em>Encrypt with Password</em></p> <p>Go to the <em>File</em> -> <em>Info</em> -> <em>Decrypt Database</em></p></li> <li><p><strong>In MS Access 2007:</strong></p> <p>Go to the <em>Database Tools</em> ribbon tab -> <em>Encrypt with Password</em> (in the Database Tools group)</p> <p>Go to the <em>Database Tools</em> ribbon tab -> <em>Decrypt Database</em> (in the Database Tools group)</p></li> </ul> <h2>3. Backup Your Main Database.</h2> <p>You can <strong>create a backup version of your database in somewhere else</strong>; you can do this with two ways:</p> <ol> <li><p>Write some codes for create a backup file from your database <em>with the backup ability of the MS Access</em>. You can do this <em>manually</em> from MS Access program:</p> <ul> <li><p><strong>In MS Access 2013:</strong></p> <p>Go to the <em>File</em> -> <em>Save As</em> -> <em>Save Database As</em> -> <em>Back Up Database</em> "Back up important database regularly to prevent data loss."</p></li> </ul> <p><img src="https://i.stack.imgur.com/84y8a.jpg" alt="Create a Backup file from the database."> <img src="https://i.stack.imgur.com/q2oDV.jpg" alt="Save the Backup file of the database in somewhere."></p> <ul> <li><p><strong>In MS Access 2010:</strong></p> <p>Go to the <em>File</em> -> <em>Save &amp; Publish</em> -> <em>Save Database As</em> -> <em>Back Up Database</em></p></li> <li><p><strong>In MS Access 2007:</strong></p> <p>Go to the <em>Microsoft Office Button</em> -> <em>Manage</em> -> <em>Back Up Database</em> (under Manage this database)</p></li> </ul></li> <li><p>For creating A backup file, you can simply <em>create a copy of your file</em> with writing some codes to do that.</p></li> </ol> <p>The scenario for doing both is as follows:</p> <p>Add or Call your codes for <em>closing time of your application program</em> that is closed by the end-user. <em>Run your codes in the background Thread(s).</em> Copy or back up it in somewhere like as follows:</p> <ul> <li><em>%WINDIR%..\ProgramData\YourSubFolder(s)</em></li> <li><em>%USERPROFILE%\AppData\Local\YourSubFolder(s)</em></li> <li><em>%USERPROFILE%\AppData\LocalLow\YourSubFolder(s)</em></li> <li><em>%USERPROFILE%\AppData\Roaming\YourSubFolder(s)</em></li> <li><em>Somewhere else like:</em> <ul> <li><em>Another folder in your program root folder or sub-folders(s)</em></li> <li><em>Another folder in where you want</em></li> </ul></li> <li><em>Etc.</em></li> </ul> <p><strong>Hint:</strong> You can <em>change attributes of your database file</em> (in the root folder or sub-folder(s) of your program) <em>and/or its backup file</em> (in somewhere else) to the <strong>Read-only</strong>, <strong>Hidden</strong>, <strong>System</strong>, <strong>Read-only + Hidden</strong>, <strong>Read-only + System</strong>, <strong>Hidden + System</strong> or <strong>Read-only + Hidden + System</strong> <em>for increasing security</em>.</p> <p><img src="https://i.stack.imgur.com/JAUdJ.jpg" alt="Open Properties of the database file."> <img src="https://i.stack.imgur.com/Mmcvb.jpg" alt="Change Attributes of the database file to the Hidden."> <img src="https://i.stack.imgur.com/92p85.jpg" alt="Apply Hidden Attribute on the database file."> <img src="https://i.stack.imgur.com/XRhrw.jpg" alt="Change Attributes of the database file to the Read-only."> <img src="https://i.stack.imgur.com/RjwQ5.jpg" alt="Copy the Path of the database file."> <img src="https://i.stack.imgur.com/TrRRH.jpg" alt="Run Windows OS Command Prompt."> <img src="https://i.stack.imgur.com/wW3Mu.jpg" alt="Open Windows OS Command Prompt window."> <img src="https://i.stack.imgur.com/83xkB.jpg" alt="Type &quot;attrib +h +s &quot; with Paste the Path of the database file."> <img src="https://i.stack.imgur.com/NFQ4g.jpg" alt="Complete typing &quot;attrib +h +s E:\Rostami\Myself\Programming\Access&quot;"> <img src="https://i.stack.imgur.com/DWipv.jpg" alt="Type Remaining Part of the database file Path (some of the initial characters [\da])."> <img src="https://i.stack.imgur.com/d1t20.jpg" alt="Press &quot;Tab&quot; key on the keyboard for completing the name of the database file."> <img src="https://i.stack.imgur.com/tnfY8.jpg" alt="Press &quot;Enter&quot; key on the keyboard for applying Hidden + System attributes on the database file."> <img src="https://i.stack.imgur.com/Z7e0S.jpg" alt="Change Attributes of the database file to the Hidden + System."> <img src="https://i.stack.imgur.com/P7ggv.jpg" alt="Apply Hidden + System Attributes on the database file."> <img src="https://i.stack.imgur.com/a2i5N.jpg" alt="Press &quot;Enter&quot; key on the keyboard for applying System attribute on the database file."> <img src="https://i.stack.imgur.com/Fowsf.jpg" alt="Change Attributes of the database file to the System."> <img src="https://i.stack.imgur.com/p9GTD.jpg" alt="Apply System Attribute on the database file."> <img src="https://i.stack.imgur.com/NR9UU.jpg" alt="Press &quot;Enter&quot; key on the keyboard for removing Hidden + System attributes on the database file."> <img src="https://i.stack.imgur.com/Mx1n2.jpg" alt="Remove Hidden + System Attributes from the database file."> <img src="https://i.stack.imgur.com/2nzfQ.jpg" alt="Apply none Attribute on the database file."></p> <ul> <li>You can't see Hidden files in default mode of displaying items; so, for see Hidden items, you must do the following:</li> </ul> <p><img src="https://i.stack.imgur.com/gaBWN.jpg" alt="Show Hidden items from Folders Ribbon."></p> <p>or</p> <p><img src="https://i.stack.imgur.com/mFvPl.jpg" alt="Open Folder Options dialogue box."> <img src="https://i.stack.imgur.com/ykTAq.jpg" alt="Show Hidden items from Folder Options dialogue box."></p> <ul> <li>You can't see System files in default mode of displaying items; so, for see System items, you must do the following:</li> </ul> <p><img src="https://i.stack.imgur.com/xt8EZ.jpg" alt="Show System items."> <img src="https://i.stack.imgur.com/Rrg43.jpg" alt="Confirm to show System items."></p> <p>With doing this scenario, you can add some codes for running in the start-up time of your program for checking <em>is there Database in its folder or not</em>. And if it can't find the main database, <em>just copy your database simply from backup folder to its initial folder</em> in your application folder/sub-folder(s).</p> <h2>4. Change the Security Attributes of the Main and Backup Database.</h2> <p>You can <strong>change the security attributes for the Main Database</strong> (in the root folder or sub-folder(s) of your program) <strong>and its backup file</strong> (in somewhere else) <em>to restrict access</em> to both of them as follows:</p> <p>Add or Call your codes in <em>closing time of your application program</em> that is closed by the end-user. <em>Run your codes after completing background Thread(s) for backup the Main Database (if you're used Backup Scenario).</em> These codes must change the Security attributes to the <strong>specific Windows OS or User-defined</strong> (must define by you if you want to use it) <strong>Group or User</strong>. With this method, <em>when program isn't running, no one can access to both database files.</em></p> <p>Remember that you must add or call some codes for changing the Security attributes of both databases in start-up time of your application program; because they must accessible by the application.</p> <p><img src="https://i.stack.imgur.com/ctVIg.jpg" alt="Open Windows OS Computer Management window."> <img src="https://i.stack.imgur.com/23lcL.jpg" alt="Open New User window."> <img src="https://i.stack.imgur.com/Yutzj.jpg" alt="Create new user."> <img src="https://i.stack.imgur.com/2hZ60.jpg" alt="Create a new user with entered data."> <img src="https://i.stack.imgur.com/2wIrU.jpg" alt="Open new user Properties window."> <img src="https://i.stack.imgur.com/Owe76.jpg" alt="Remove all items that new user is member of them."> <img src="https://i.stack.imgur.com/IgwOx.jpg" alt="Add new item for that new user becomes member of it."> <img src="https://i.stack.imgur.com/P9owA.jpg" alt="Find Administrators Group."> <img src="https://i.stack.imgur.com/ORSlB.jpg" alt="Add Administrators Group."> <img src="https://i.stack.imgur.com/pVKK8.jpg" alt="Apply changes to new user."></p> <p>If you want to use a Group, you can do the following:</p> <p><img src="https://i.stack.imgur.com/4v73g.jpg" alt="Open New Group window."> <img src="https://i.stack.imgur.com/0KvqZ.jpg" alt="Add data and Members."> <img src="https://i.stack.imgur.com/OT2yV.jpg" alt="Show Advanced part of the Select Users window."> <img src="https://i.stack.imgur.com/Vj2SX.jpg" alt="Find Users or Built-in security principals."> <img src="https://i.stack.imgur.com/vCijW.jpg" alt="Find new User."> <img src="https://i.stack.imgur.com/IIukE.jpg" alt="Add new User."> <img src="https://i.stack.imgur.com/hy0Sk.jpg" alt="Create new group."> <img src="https://i.stack.imgur.com/k52mS.jpg" alt="Create a new group with entered data."></p> <p><img src="https://i.stack.imgur.com/QdEiH.jpg" alt="Open Properties window of the database file."> <img src="https://i.stack.imgur.com/mbuRT.jpg" alt="Open Advanced Security Settings window of the database file."> <img src="https://i.stack.imgur.com/sbQMN.jpg" alt="Disable inheritance."> <img src="https://i.stack.imgur.com/ClTi4.jpg" alt="Remove all inherited permissions from the database file."> <img src="https://i.stack.imgur.com/pknNJ.jpg" alt="Change Owner."> <img src="https://i.stack.imgur.com/gpEtj.jpg" alt="Save Changes."> <img src="https://i.stack.imgur.com/mrwr2.jpg" alt="Confirm to apply changes."> <img src="https://i.stack.imgur.com/vCijW.jpg" alt="Find new User."> <img src="https://i.stack.imgur.com/IIukE.jpg" alt="Add new User."> <img src="https://i.stack.imgur.com/N1tz9.jpg" alt="Open Permission Entry window of the database file."> <img src="https://i.stack.imgur.com/VCxLD.jpg" alt="Select a principal."> <img src="https://i.stack.imgur.com/vCijW.jpg" alt="Find new User."> <img src="https://i.stack.imgur.com/IIukE.jpg" alt="Add new User."> <img src="https://i.stack.imgur.com/uifn1.jpg" alt="Apply Changes."> <img src="https://i.stack.imgur.com/cWkAB.jpg" alt="Apply Changes."> <img src="https://i.stack.imgur.com/HhHLc.jpg" alt="Apply Changes."></p> <p><img src="https://i.stack.imgur.com/dXMtG.jpg" alt="You can&#39;t open the database file."> <img src="https://i.stack.imgur.com/nyj8K.jpg" alt="Provide administrator permission to delete the database file."> <img src="https://i.stack.imgur.com/mRvwo.jpg" alt="You can&#39;t delete the database file."> <img src="https://i.stack.imgur.com/dVd2M.jpg" alt="Provide administrator permission to copy the database file."> <img src="https://i.stack.imgur.com/mRvwo.jpg" alt="You can&#39;t copy the database file."> <img src="https://i.stack.imgur.com/ffRnD.jpg" alt="Provide administrator permission to move the database file."> <img src="https://i.stack.imgur.com/mRvwo.jpg" alt="You can&#39;t move the database file."> <img src="https://i.stack.imgur.com/QdEiH.jpg" alt="Open Properties window of the database file."> <img src="https://i.stack.imgur.com/i9gFD.jpg" alt="You can&#39;t see the properties of the database file."></p> <p>In order of what I mentioned above, <strong>THE BEST SOLUTION IS:</strong></p> <ul> <li><strong><em>Hybrid method:</em></strong></li> </ul> <p><em>Combine all methods together for achieve to the better and more secure method:</em></p> <p><strong><em>Compiled Executable Version of the MS Access Database File</em></strong> + <strong><em>Encryption with the Password</em></strong> + <strong><em>Backing Up the Main Database</em></strong> + <strong><em>Changing Security Attributes for Both Databases</em></strong></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload