Copyright © Andrew Couch 2007 All rights reserved. Access Tables Without Keys & Views How To Manage Keys On Access Tables Andrew Couch ASC Associates.

Slides:



Advertisements
Similar presentations
Build a database I: Design tables for a new Access database
Advertisements

Moving from Access Databases to a Visual Studio/SQL Server Solutions Andrew Couch UK Access User Group asc associates
Intermediate Access: Center for Teaching Advancement and Assessment Research On Creating a Database from Scratch.
MS-Access XP Lesson 1. Introduction to MS-Access Database Management System Software (DBMS) Store data in databases Database is a collection of table.
An Introduction to Forms (continued). The Major Steps of a MicroSoft Access Database  Tables  Queries  Forms  Macros  Reports  Modules On our road.
By Mary Anne Poatsy, Keith Mulbery, Eric Cameron, Jason Davidson, Rebecca Lawson, Linda Lau, Jerri Williams Chapter 9 Fine-Tuning the Database 1 Copyright.
Access Tables William Klingelsmith. Exam Review/Reminders Grades were okay for the most part Common errors Incorrect references in formula Incorrect difference.
Access Lesson 2 Creating a Database
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 3 1 Microsoft Office Access 2003 Tutorial 3 – Querying a Database.
Querying a Database Microsoft Office Access 2003.
A Guide to SQL, Seventh Edition. Objectives Understand, create, and drop views Recognize the benefits of using views Grant and revoke user’s database.
Access Lecture 1 Database Overview and Creating Tables Create an Employee Table.
Figure 1. Hit analysis in 2002 of database-driven web applications Hits by Category in 2002 N = 73,873 Results Reporting 27% GME 26% Research 20% Bed Availability.
Copyright © ASC Associates All Rights Reserved. MUST Pack And Go Migration Demonstration Upsizing an Access back-end and re-linking an Access front-end.
Database Constraints. Database constraints are restrictions on the contents of the database or on database operations Database constraints provide a way.
Isis Secure Room Booking Isis Secure Room Booking is an add on module to the latest version of the Sentry Access Control System. It is primarily intended.
Microsoft Office Word 2013 Expert Microsoft Office Word 2013 Expert Courseware # 3251 Lesson 4: Working with Forms.
Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled.
Access Lesson 2 Creating a Database
XP New Perspectives on Introducing Microsoft Office XP Tutorial 1 1 Introducing Microsoft Office XP Tutorial 1.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
Access Primer UoN workshop Naivasha, 30 July – 4 August 2006.
DAY 14: ACCESS CHAPTER 1 Tazin Afrin October 03,
Press Esc to Exit ©2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
Miscellaneous Excel Combining Excel and Access. – Importing, exporting and linking Parsing and manipulating data. 1.
Copyright © 2007, Oracle. All rights reserved. Managing Concurrent Requests.
Access Primer Africamuseum 5 June MS Access  Relational Database Management System Data/information resides in series of related tables Principle.
Microsoft ® Office Access ® 2007 Training Build a database I: Design tables for a new Access database ICT Staff Development presents:
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 9 – Building Links,
WEEK 11 Database Design. TABLE INSTANCE CHARTS Create Tables.
1.NET Web Forms Business Forms © 2002 by Jerry Post.
Oracle Data Integrator Transformations: Adding More Complexity
Chapter 17 Creating a Database.
U:/msu/course/cse/103 Day 06, Slide 1 CSE students: Do not log in yet. Review Day 6 in your textbook. Think about.
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
Using Microsoft Access 56:150 Information System Design.
WHAT IS A DATABASE? A DATABASE IS A COLLECTION OF DATA RELATED TO A PARTICULAR TOPIC OR PURPOSE OR TO PUT IT SIMPLY A GENERAL PURPOSE CONTAINER FOR STORING.
Microsoft Access 2010 Chapter 10 Administering a Database System.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
Databases,Tables and Forms Access Text by Grauer Chapters 1 & 2.
With Microsoft Office 2007 Introductory© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Introductory.
1 CSE 2337 Introduction to Data Management Access Book – Ch 1.
ACCESS Part 2. OBJECTIVE  Use the Query Wizard.  Work with data in a query.  Use Query Design View.  Sort and find data.  Filter data Apply AND criteria.
Gold – Crystal Reports Introductory Course Cortex User Group Meeting New Orleans – 2011.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
XP New Perspectives on Microsoft Access 2002 Tutorial 31 Microsoft Access 2002 Tutorial 3 – Querying a Database.
PubMed/Limits and Advanced Search (module 4.2). MODULE 4.2 PubMed/Limits & Advanced Search Instructions - This part of the:  course is a PowerPoint demonstration.
Constraints Lesson 8. Skills Matrix Constraints Domain Integrity: A domain refers to a column in a table. Domain integrity includes data types, rules,
Pasewark & Pasewark 1 Access Lesson 2 Creating a Database Microsoft Office 2007: Introductory.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Access 2010 by Robert Grauer, Keith Mast, and Mary Anne.
Classwork: Common Errors Primary keys: don’t forget them! Primary keys: choose the best one! – “Name” and “birthday” are not the best choices. – “Phone.
Excel part 5 Working with Excel Tables, PivotTables, and PivotCharts.
IMS 4212: Constraints & Triggers 1 Dr. Lawrence West, Management Dept., University of Central Florida Stored Procedures in SQL Server.
Getting Started in Access 1 Using an existing Database Database Window Table Design View Parts of a Table Views in Access Navigating in Access Entering.
CS4432: Database Systems II
5 Copyright © 2008, Oracle. All rights reserved. Testing and Validating a Repository.
Hoi Le. Why database? Spreadsheet is not good to: Store very large information Efficiently update data Use in multi-user mode Hoi Le2.
MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Sravanthi Lakkimsety Mar 14,2016.
Database Applications – Microsoft Access Lesson 5 Shared Data.
Y.-H. Chen International College Ming-Chuan University Fall, 2004
Mail Merge for Lotus Notes and Excel User Guide
Practical Office 2007 Chapter 10
Batch Functionality SAVING TIME WITH DATA ENTRY.
Microsoft Access 2003 Illustrated Complete
Batch Functionality SAVING TIME WITH DATA ENTRY.
Exploring Microsoft® Access® 2016 Series Editor Mary Anne Poatsy
Presentation transcript:

Copyright © Andrew Couch 2007 All rights reserved. Access Tables Without Keys & Views How To Manage Keys On Access Tables Andrew Couch ASC Associates

Contents  What are Views ?  A Table Without A Key  A Big Limitation On Views & A Table Without A Primary Key  Automatic Addition Of Keys  Adding Keys Back Into Access (Batch Transfer Mode)  Commissioning and Adding Keys

What Are Views ?  They are like queries, but have a number of restrictions.  They also have some additional benefits.  Don’t image you will simply convert all your queries into views.  Views in databases were primarily designed to implement security, so you may like to think whether this applies to you!  Views can also mimic the layering of queries on top of queries that appeals to Access Developers.

A Table Without A Key  We would recommend, that all tables, even temporary tables have a primary key, even if it just means adding an autonumber (which the tool does for you if desired).  If you don’t then when you link the table, Access will prompt you for a field combination that is unique, to enable the table to be updated.

RE-Linking The Table/View  Similarly when you link a view Access asks you need to indicate the unique field in the view to provide updateability over the view You will possibly be distressed when programmatically refreshing a linked view or linked un-keyed table, to find that updateability is lost!! You will possibly be distressed when programmatically refreshing a linked view or linked un-keyed table, to find that updateability is lost!!  Which is why the tool when linking to an un-keyed table does not allow it to be updateable.  So the moral is, be careful when using views, that they fulfil your needs, and slap a key on all un-keyed tables!  In general it is difficult to see how an un-keyed table can take advantage of relational database design (except for some pure server processing tasks), and you never know when you will want to start joining to the un-keyed table (which can lead to some performance issues).

Option To Add Keys Or in the Full-Menus

MANIFEST  The tools MANIFEST, contains a list of all your Tables, Fields, Rules and Relationships.  A change in the MANIFEST is not a physical change to your database, but a change to how your database gets mapped to SQL Server.

Illegal Keys  If you have a table with a Primary Key of type hyperlink (maps to SQL Server like a memo field)  Or a Primary Key memo (unlikely)  Then this will be disallowed, as these either MAP to IMAGE or VARCHAR(MAX) data types, which can not be indexed  The tool will automatically remove the key from its MANIFEST and if desired replace it with an autonumber.

Change Log Notifications

Handling Tables Missing A key  The tool will first check to see if the table has an autonumber, and if it has it makes this the primary key in the MANIFEST  If not then a new field called pk_tablename is created in the MANIFEST, of type autonumber.

Review Fields – Full Menus  Here an illegal Hyperlink automatically gets replaced in the MANIFEST with an autonumber primary key.

Auto numbers Are Unique ? Change Log Notification !  Auto numbers are not necessarily unique, if you created a temporary table using a make table query! You can end up having duplicates (depending on how you use the table).  So if a non-keyed table has an existing autonumber which is changed in the MANIFEST to be a primary key, you will receive a warning in the Change Log that you must ensure that it is unique!  We could detect this, but there is not a lot we could do about it!

Change Log  The Change Log displays all changes made to the database MAP in the MANIFEST  The log can be filtered by system, or by notification type, and instantly reported into an Excel Spreadsheet.

Manage Added keys  You can remove the key from the MANIFEST.  Or you can add the key to your Access Table (Why? Read On)

Block Transfer  This only applies to large tables.  Ever transferred 500,000 rows ?  Fancy a progress report ?  If so then by adding the key back into the Access Table, MUST automatically starts block transfer mode.  In Block Transfer Mode batches of records are transferred, and you get a progress update. Nice to see the progress, when you intend to add a key to a table.  MUST with direct transfer will typically hit 1 G Byte of Access data in about 3 hours (using batch scripts this comes down to about 20 minutes), so progress reporting is important!

Commissioning  After you have upsized a system, possible more than once, and you come to finally commission the system. The MANIFEST knows if you added keys to AccessTables, and will remind you to repeat this important step.

Best Advice  Report out all the tables missing keys (using the Reports Menu) and add them into you databases before Migration.