1 All Powder Board and Ski Microsoft Access Workbook Chapter 9: Database Administration Jerry Post Copyright © 2003
Jan 17, 2016
1
All Powder Board and Ski
Microsoft Access WorkbookChapter 9: Database AdministrationJerry PostCopyright © 2003
2
Access System Tables: Metadata
Tools/Options/View tab
Check to see system tables
MSysObjects lists all tables
3
Performance Analyzer
Select all items
Select all objects
4
Performance Analyzer Suggestions
Recommendations are the highest priority
Some suggestions cannot be taken because of business rules
The optimize button applies the recommendation
5
Creating Indexes
Menu: View/Indexes
Single column indexes
SQL: CREATE INDEX …
6
Backup and Recovery
Use Windows tools to copy the mdb file Creating a compressed (zip) folder substantially
reduces the size Use Tools/Database Utilities/Compact and Repair to
remove deleted items and fix minor errors If a database is corrupted, you can sometimes recover
data and other items by starting a new database and using File/Get External Data/Import to retrieve whatever you can from the damaged file
7
Simple Security: Assign a password
Close the database and reopen it in Exclusive mode
Tools/Security/Set Database Password
Enter the password and verify it. Close the database and reopen it.
8
Encryption
Unencrypted data
Encrypted database
Tools/Security/Encrypt/Decrypt Database
9
Protect Forms with an MDE File
Tools/Database Utilities/Make MDE File
Design view is disabled for everyone
Keep the original file safe. It is the only way to edit the forms, reports, and modules.
10
User-Level Security in Access
Database Application
Form1 Form 2 Form 3 Form 4
User 1 User 2
Workgroup databaseUsernames and passwords
Database Administrator
login
Assign permissions
credentials
11
User Groups
Sales clerksSales Managers
Sales table
Customer table
Item table
Sales clerks S,U,I S,U,I S
Sales Managers S,U,I,D S,U,I S
Rental Managers S,U,I S
Individual users
Assign permissions to groups based on tasks, and assign users to groups. Permissions only have to be set once. Employee changes are handled by moving individuals into or out of groups.
12
User-Level Security Wizard
Every WID is unique and is used to recover the workgroup data if the file is lost.
Avoid the first option. It will force you to log in every time you open Access for any database.
13
Predefined User Groups
14
Adding Users
15
Assign Users to Groups
Make sure that you assign at least one person to the Admins group!
16
Customized Groups (after login)
Select the Groups tab to enter new group names
Select users and add them to groups to grant additional permissions
17
Assigning Permissions to Groups
Assign by groups
New groups need to be able to open the database
Click the Apply button to activate changes
18
Implementing a Secured Database
Copy files:
1) Secured database
2) Workgroup database
3) Startup link
Edit the properties for the startup link
"C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" “C:\FullPathname\AllPowder2002.mdb" /WRKGRP "C:\FullPathname\Secured.mdw"