1 all powder board and ski microsoft access workbook chapter 10: database administration jerry post...

24
1 All Powder Board and Ski Microsoft Access Workbook Chapter 10: Database Administration Jerry Post Copyright © 2007

Upload: alyssa-ward

Post on 26-Mar-2015

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1 All Powder Board and Ski Microsoft Access Workbook Chapter 10: Database Administration Jerry Post Copyright © 2007

1

All Powder Board and Ski

Microsoft Access WorkbookChapter 10: Database AdministrationJerry PostCopyright © 2007

Page 2: 1 All Powder Board and Ski Microsoft Access Workbook Chapter 10: Database Administration Jerry Post Copyright © 2007

2

Access System Tables: Metadata

Tools/Options/View tab

Check to see system tables

MSysObjects lists all tables

Page 3: 1 All Powder Board and Ski Microsoft Access Workbook Chapter 10: Database Administration Jerry Post Copyright © 2007

3

Action

ActionChoose Tools/Analyze/PerformanceSelect all objectsRun the analysisAdd indexes if they are reasonable

Page 4: 1 All Powder Board and Ski Microsoft Access Workbook Chapter 10: Database Administration Jerry Post Copyright © 2007

4

Performance Analyzer

Select all items

Select all objects

Page 5: 1 All Powder Board and Ski Microsoft Access Workbook Chapter 10: Database Administration Jerry Post Copyright © 2007

5

Performance Analyzer Suggestions

Recommendations are the highest priority

Some suggestions cannot be taken because of business rules

The optimize button applies the recommendation

Page 6: 1 All Powder Board and Ski Microsoft Access Workbook Chapter 10: Database Administration Jerry Post Copyright © 2007

6

Creating Indexes

Menu: View/Indexes

Single column indexes

SQL: CREATE INDEX …

Page 7: 1 All Powder Board and Ski Microsoft Access Workbook Chapter 10: Database Administration Jerry Post Copyright © 2007

7

Action

ActionChoose Tools/Database Utilities/Compact and Repair DatabaseClose the file but not AccessRun Compact and Repair again, this time enter a new name for the

compacted database to use as a backup copy

Page 8: 1 All Powder Board and Ski Microsoft Access Workbook Chapter 10: Database Administration Jerry Post Copyright © 2007

8

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

Page 9: 1 All Powder Board and Ski Microsoft Access Workbook Chapter 10: Database Administration Jerry Post Copyright © 2007

9

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.

Page 10: 1 All Powder Board and Ski Microsoft Access Workbook Chapter 10: Database Administration Jerry Post Copyright © 2007

10

Action

ActionChoose Tools/Security/Set Database PasswordEnter test as a passwordChoose Tools/Security/EncryptClose the database and reopen it

Page 11: 1 All Powder Board and Ski Microsoft Access Workbook Chapter 10: Database Administration Jerry Post Copyright © 2007

11

Encryption

Unencrypted data

Encrypted database

Tools/Security/Encrypt/Decrypt Database

Page 12: 1 All Powder Board and Ski Microsoft Access Workbook Chapter 10: Database Administration Jerry Post Copyright © 2007

12

Action

ActionChoose Tools/Database Utilities/Make MDE FileClose the database and open the new MDE databaseTry to edit a form

Page 13: 1 All Powder Board and Ski Microsoft Access Workbook Chapter 10: Database Administration Jerry Post Copyright © 2007

13

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.

Page 14: 1 All Powder Board and Ski Microsoft Access Workbook Chapter 10: Database Administration Jerry Post Copyright © 2007

14

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

Page 15: 1 All Powder Board and Ski Microsoft Access Workbook Chapter 10: Database Administration Jerry Post Copyright © 2007

15

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.

Page 16: 1 All Powder Board and Ski Microsoft Access Workbook Chapter 10: Database Administration Jerry Post Copyright © 2007

16

Action

ActionChoose Tools/Security/User-Level Security WizardCreate a new workgroupSelect the Backup Operators groupOn the users screen, set a password for your usernameAdd three usersMake sure you are in the Admins groupClose the database

Page 17: 1 All Powder Board and Ski Microsoft Access Workbook Chapter 10: Database Administration Jerry Post Copyright © 2007

17

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.

Page 18: 1 All Powder Board and Ski Microsoft Access Workbook Chapter 10: Database Administration Jerry Post Copyright © 2007

18

Predefined User Groups

Page 19: 1 All Powder Board and Ski Microsoft Access Workbook Chapter 10: Database Administration Jerry Post Copyright © 2007

19

Adding Users

Page 20: 1 All Powder Board and Ski Microsoft Access Workbook Chapter 10: Database Administration Jerry Post Copyright © 2007

20

Assign Users to Groups

Make sure that you assign at least one person to the Admins group!

Page 21: 1 All Powder Board and Ski Microsoft Access Workbook Chapter 10: Database Administration Jerry Post Copyright © 2007

21

Action

ActionOpen the database using the desktop linkLogin with your username and passwordChoose Tools/Security/User and Group AccountsSelect the Groups tab and add SalesClerks and SalesManagers groupsAdd one of your new users to each groupChoose Tools/Security/User and Group PermissionsGrant specified permissions for the two groups to the Sale, SaleItem,

Customer, and Inventory tablesAssign appropriate permissions to the database and the formsClose the databaseLog in as a sales clerk and test the permissions

Page 22: 1 All Powder Board and Ski Microsoft Access Workbook Chapter 10: Database Administration Jerry Post Copyright © 2007

22

Customized Groups (after login)

Select the Groups tab to enter new group names

Select users and add them to groups to grant additional permissions

Page 23: 1 All Powder Board and Ski Microsoft Access Workbook Chapter 10: Database Administration Jerry Post Copyright © 2007

23

Assigning Permissions to Groups

Assign by groups

New groups need to be able to open the database

Click the Apply button to activate changes

Page 24: 1 All Powder Board and Ski Microsoft Access Workbook Chapter 10: Database Administration Jerry Post Copyright © 2007

24

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\Office11\MSACCESS.EXE" “D:\FullPathname\AllPowder2003.mdb" /WRKGRP “D:\FullPathname\Secured.mdw"