Download presentation
Presentation is loading. Please wait.
Published byQuincy David Modified over 9 years ago
1
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access 2010 Chapter 11 Securing Databases and Writing SQL Statements
2
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall2 Objectives Utilize the Trust Center Use the Database Splitter Encrypt and decrypt databases Create a locked database (ACCDE file)
3
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall3 Objectives Modify a query in SQL view Create a query in SQL view Create a Union query using SQL Create calculated fields and SQL aggregate functions
4
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall4 Utilize the Trust Center Critical data stored in database Database includes –Objects dependent upon each other –Core data in tables Security of this information is critical
5
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall5 Utilize the Trust Center Trust Center evaluates a database –Contains security and privacy settings –Can disable untrusted database components Enabling or adding location to Trust Center –Permits usage of disabled database components
6
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall6 Utilize the Trust Center Database opened in disabled mode –All executable content turned off
7
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall7 Utilize the Trust Center Macros containing untrusted macro actions –Cannot run when database In disabled mode Not in a trusted location
8
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall8 Utilize the Trust Center Message appears explaining why macros not running
9
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall9 Utilize the Trust Center Action queries are disabled if not trusted –Message appears in status bar Action queries in Access database –Add data –Update data –Delete data
10
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall10 Utilize the Trust Center Message contained in status bar regarding blocking of action or event
11
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall11 Utilize the Trust Center Security Warning Message Bar –Displays as default setting for database opened from untrusted location –Gives notice that some content is disabled –Provides button to enable that content
12
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall12 Utilize the Trust Center Trust Center dialog box
13
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall13 Utilize the Trust Center Default setting does not permit running untrusted macro actions –Digital signatures provide tighter security
14
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall14 Utilize the Trust Center Privacy Options allow selection of personal privacy security setting
15
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall15 Use the Database Splitter Databases often divided into front end and back end Front end includes database forms, queries, reports, and macros Back end includes database tables and data
16
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall16 Use the Database Splitter Dividing the database permits –Maintaining a single source of data –Designing multiple front ends meeting needs of various company users Database Splitter splits database into front end and back end
17
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall17 Use the Database Splitter Database Splitter dialog box displays to define the splitting process
18
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall18 Encrypt and Decrypt Databases Data stored in database is a company’s most valuable asset Personal information must be protected –No unauthorized access Need passwords for protection –Only authorized users know passwords
19
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall19 Encrypt and Decrypt Databases Four additional open modes available –Open Read-Only Database objects can be opened Data and design changes cannot be made –Open Exclusive Database changes can be made Only one user can open database at a time
20
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall20 Encrypt and Decrypt Databases Four additional open modes available (cont.) –Open Exclusive Read-Only Opens database in Exclusive and Read-Only modes –Show Previous Versions Searches for previous database versions
21
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall21 Encrypt and Decrypt Databases Encryption hides data in file until correct password is entered Database must be opened in exclusive mode before encrypted No way to retrieve a forgotten password of encrypted database –Store passwords in a safe place
22
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall22 Encrypt and Decrypt Databases Strong passwords –Hard to guess –Include combination of upper and lowercase letters Special characters Numbers Spaces in character strings Weak passwords easy to guess
23
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall23 Encrypt and Decrypt Databases Set Database Password dialog box
24
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall24 Encrypt and Decrypt Databases Decrypt a file or unset a password –When database password no longer required To prevent unauthorized removal of password encryption –Password is required to remove database password requirement
25
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall25 Encrypt and Decrypt Databases Unset Database Password dialog box requiring password entry before proceeding
26
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall26 Create a Locked Database (ACCDE File) ACCDE files permit various regular database tasks ACCDE files prevent users from –Creating forms and reports –Making design changes to forms, reports, and macros Keep copy of original database for future design changes
27
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall27 Create a Locked Database (ACCDE File) Save As dialog box with the Save As Type dialog box showing ACCDE file
28
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall28 Create a Locked Database (ACCDE File) Padlock icon appears next to ACCDE file –Indicates “locked-down” status of file
29
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall29 Modify a Query in SQL View SQL, Structured Query Language –Used by many database programs to view, update, and query data in relational database Queries can be created in Design view Queries can be modified in SQL view
30
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall30 Modify a Query in SQL View SQL naming conventions used by database designers –Table and field names should be abbreviated terms –Names contain no spaces When in Design view –Access builds an SQL statement
31
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall31 Modify a Query in SQL View An SQL statement –An expression defining SQL commands –Commands are performed when query is run SQL clauses contained in SQL statements begin with keywords Keywords are commands built in SQL
32
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall32 Modify a Query in SQL View Keywords usually in uppercase: –SELECT clause lists which fields a query will display –FROM clause lists which tables hold the fields used in the SELECT clause –WHERE clause defines the criteria applied when a query is run –JOIN clause defines query join type –DISTINCT keyword removes query result duplicates
33
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall33 Modify a Query in SQL View Statements edited in design grid in SQL view Example of code: SELECT FMLPersonalClients.PersonalID, FMLPersonalClients.FName, FMLPersonalClients.LName, FMLPersonalClients.Phone, FMLFlatFeeBilling.Paid FROM FMLPersonalClients INNER JOIN FMLFlatFeeBilling ON FMLPersonalClients.PersonalID = FMLFlatFeeBilling PersonalID WHERE (()FMLFlatFeeBilling.Paid=No));
34
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall34 Create a Query in SQL View SQL view used to write queries not available in Design view In SELECT clause –Table and field names separated by period –Multiple fields separated by commas –Semicolons used to mark end of SQL statements
35
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall35 Create a Query in SQL View FROM clause must contain all tables listed in SELECT clause –Each table separated by comma Cross join type used in queries where –No join type is defined –An error exists in WHERE clause
36
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall36 Create a Union Query Using SQL Union query combines results of two or more similar select queries –Combined queries must have Same number of columns Same data types in each corresponding column Union queries created in SQL view UNION keyword used to combine queries in union query
37
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall37 Create a Union Query Using SQL Sample SQL coding including UNION keyword SELECT DISTINCT FMLPersonalClients.PersonalID, FMLPersonalClients.FName, FMLPersonalClients.LName, FMLPersonalClients.Phone, FMLFlatFeeBilling.Paid FROM FMLPersonalClients INNER JOIN FMLFlatFeeBilling ON FMLPersonalClients.PersonalID = FMLFlatFeeBilling PersonalID WHERE FMLFlatFeeBilling.Paid=No UNION Additional code to be entered by programmer
38
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall38 Create Calculated Fields and SQL Aggregate Functions SQL provides commands that –Create calculated fields Zoom feature used to see long expressions when creating calculated field –Summarize data using aggregate functions Aggregate functions perform calculation on column of data Return a single value
39
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall39 Covered Objectives Utilize the Trust Center Use the Database Splitter Encrypt and decrypt databases Create a locked database (ACCDE file)
40
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall40 Covered Objectives Modify a query in SQL view Create a query in SQL view Create a Union query using SQL Create calculated fields and SQL aggregate functions
41
with Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall41 41 All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. Printed in the United States of America. Copyright © 2011 Pearson Education, Inc. Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.