DUG Session 4488 Creating Custom Files Jeff Butera Hampshire College Monday, March 10, 2008 4:05PM Hoover.

Slides:



Advertisements
Similar presentations
Advanced SQL Schema Customization & Reporting Presented By: John Dyke As day to day business needs become more complex so does the need for specifically.
Advertisements

Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
SERVICE MANAGER 9.2 VIEWS AND REPORTS July, 2011.
What is New in Inventory & Purchasing? Presented by: Derek Kratz.
Field Audit Trail Lawson Learning
Exploring Microsoft Access 2003 Chapter 6 Many-to-Many Relationships: A More Complex System.
1 Chapter 12 Working With Access 2000 on the Internet.
Databases and Processing Modes. Fundamental Data Storage Concepts and Definitions What is an entity? An entity is something about which information is.
Introduction to Databases CIS 5.2. Where would you find info about yourself stored in a computer? College Physician’s office Library Grocery Store Dentist’s.
Concepts of Database Management Sixth Edition
Chapter 14 The Second Component: The Database.
1 Chapter 1 Tour of Access. 1 Chapter Objectives Start and exit Microsoft Access Open and run an Access application Identify the major elements of the.
Databases and Database Management Systems
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
M AKING E - RESOURCE ACCESSIBLE FROM ONLINE CATALOG *e-books *serials Yan Wang Senior Librarian Head of Cataloging & Database Maintenance Central Piedmont.
Database Updates Made Easy In WebFocus Using SQL And HTML Painter Sept 2011 Lender Processing Services 1.
4742: Interconnectivity and Colleague David Lane – Oakland CC Jeff Butera – Hampshire College.
Esri International User Conference | San Diego, CA Technical Workshops | Managing and Editing Annotation Natalie Vines Samantha Keehan July 14, 2011.
MS Access Advanced Instructor: Vicki Weidler Assistant:
Databases and LINQ Visual Basic 2010 How to Program 1.
Denise Luther Senior IT Consultant Practical Technology Enablement with Enterprise Integrator.
What is Sure BDCs? BDC stands for Batch Data Communication and is also known as Batch Input. It is a technique for mass input of data into SAP by simulating.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
XP New Perspectives on Microsoft Office Access 2003 Tutorial 12 1 Microsoft Office Access 2003 Tutorial 12 – Managing and Securing a Database.
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Access 2010 by Robert Grauer, Keith.
Chapter 4 The Relational Model 3: Advanced Topics Concepts of Database Management Seventh Edition.
LiveCycle Data Services Introduction Part 2. Part 2? This is the second in our series on LiveCycle Data Services. If you missed our first presentation,
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
System Admin Stuff The Local Product Repository Managing Custom Code LDAP Setup.
Chapter 8 Cookies And Security JavaScript, Third Edition.
Triggers Unlimited 9/24/ :30am Room 6 Jeff Butera -- Hampshire College Pieter Crow -- Central Wyoming College.
Using Triggers to Automate Internal Processing in Unidata Jeff Butera - Hampshire College
Introduction to Databases Trisha Cummings. What is a database? A database is a tool for collecting and organizing information. Databases can store information.
Key Applications Module Lesson 21 — Access Essentials
More about Databases. Data Entry through Forms Table View (Data sheet view) is useful for data entry of new records But sometimes customization would.
Chapter 17 Creating a Database.
CSCI 6962: Server-side Design and Programming Database Manipulation in ASP.
CS 1308 Computer Literacy and the Internet
Tutorial 6 Working with Web Forms. XP Objectives Explore how Web forms interact with Web servers Create form elements Create field sets and legends Create.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
The Metadata Tool Custom Metadata Tool Who this tool is for: This tool designed to be used a data management system. This tool is geared more for the.
Session 4718 Triggers Unlimited National Harbor 6 & 7 Tuesday 4/07/2009 3:45pm Jeff Butera -- Hampshire College Pieter Crow -- Central Wyoming College.
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Search Overview Search Features: WSS and Office Search Architecture Content Sources and.
ResistVir-Db The database of ResistVir European Project Co-ordination of Research on Genetic Resistance to Plant Pathogenic Viruses, and their Vectors,
NMD202 Web Scripting Week5. What we will cover today PHP & MySQL Displaying Dynamic Pages Exercises Modifying Data PHP Exercises Assignment 1.
Session Session 12 EDExpress Application Processing—What’s New and Q&A.
Forms 5.02 Understand database queries, forms, and reports.
Mr C Johnston ICT Teacher
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Learningcomputer.com SQL Server 2008 –Views, Functions and Stored Procedures.
Transportation Agenda 77. Transportation About Columns Each file in a library and item in a list has properties For example, a Word document can have.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 8 1 Microsoft Office Access 2003 Tutorial 8 – Integrating Access with the.
CSCI 6962: Server-side Design and Programming Shopping Carts and Databases.
Oracle Business Intelligence Foundation – Testing and Deploying OBI Repository.
CashNet/Colleague Integration NERDug 2005 – July – Hampshire College Rob Allender - CashNet Jeff Butera – Hampshire College Session July 29,
CHAPTER 7 LESSON C Creating Database Reports. Lesson C Objectives  Display image data in a report  Manually create queries and data links  Create summary.
SQL Triggers, Functions & Stored Procedures Programming Operations.
Creating Saved List Queries in the Financial Aid Module Session 5003 Monday, April 6, By Eric Mayo Lead Consultant Datatel, Inc
Notes: **A Row is considered one Record. **A Column is a Field. A Database is…  an organized set of stored information usually on one topic  a collection.
CS422 Principles of Database Systems Stored Procedures and Triggers Chengyu Sun California State University, Los Angeles.
7.5 Using Stored-Procedure and Triggers NAME MATRIC NUM GROUP Muhammad Azwan Bin Khairul Anwar CS2305A Muhammad Faiz Bin Badrol Shah CS2305B.
Understanding the Architecture of Colleague FA Bonnie Coffey Financial Aid Developer/Designer, Datatel, Inc Richard F. Lee Lead Systems Analyst, Vermont.
GO! with Microsoft Office 2016
Practical Office 2007 Chapter 10
GO! with Microsoft Access 2016
Database Fundamentals
Microsoft Office Access 2003
Please thank our sponsors!
This presentation document has been prepared by Vault Intelligence Limited (“Vault") and is intended for off line demonstration, presentation and educational.
Presentation transcript:

DUG Session 4488 Creating Custom Files Jeff Butera Hampshire College Monday, March 10, :05PM Hoover

Outline Custom files: To have or not to have? Best Practices Creation, schema population Indexing Triggers WARNING: Unidata perspective! Survey time: Do you have any? Many?

To Have or Not? Custom files a necessity (?!)‏ Don't add data elements to Datatel files Get away from USER fields Don't misuse existing data fields Create custom co-files of Datatel's Create pure custom files as needed Stored computed columns are GREAT!

What Does Hampshire Have? Custom co-files sample: –H08.PERSON –H08.STUDENTS –H08.STUDENT.TERMS Pure custom sample: –H08.CR.DIV.DATA –H08.PS.VEHICLES –H08.WORK.FILE We have 138+ custom files

Best Practices Have custom file naming convention –H08.filename Have custom prefix naming convention –Xxxx.fieldname (pure custom)‏ –XHpre.fieldname (Datatel cofiles)‏ Don't use PERSON, ADDRESS as examples! Consistency is key

Best Practices Example: STUDENTS –Field prefix: STU. –Computed Column prefix: XSTU. Custom cofile: H08.STUDENTS –Field prefix: XHSTU.

Best Practices – Custom Cofiles :LIST DICT H08.PERSON XHPER.DIR.PHONE 13 Dir Phone 8L S XHPER.DIR.POBOX 15 Dir Box 6L S XHPER.DIR.ROOM 17 Dir Room 8L S XHPER.DIR.TITLE 14 Dir Title 60L M XHPER.DIR.TYPE 11 Dir Type 14L S XHPER.DIR.YEAR 29 Dir Year 6L S

Best Practices – Pure Custom :LIST DICT H08.CR.DIV.DATA XCDD.CREATED.BY 51 Created? 10L S XCDD.DIV 65 Division 2L S XCDD.EVAL.DATE 7 D4/ Eval Date 10R S XCDD.FF.IDS 10 FF IDS 10L M XCDD.FF.TYPES 11 Type 8L M XCDD.FILE.DATE 33 D4/ File Date 10R S

Creation Files created in toolkit on FS Choose application wisely (tree read)‏ –Freeze field placement –File type –File as blob –File on App Server File NOT created when saving out! Created under 'data' in R18. Not good. We move all custom files, alter VOC.

Creation

Creation - Schema Elements added on DEL Add your key first – good practice Avoid multipart keys in ETK Detail to DEP for details Internal size on DEL now important Note 'Display Size' on DEP too Can view on FIQ

Creation - Schema

Creation – Computed Columns Computed columns defined on DCC Values calculated on the fly at runtime Often needed, but sometimes slow Stored computed column on DSCC Extended Link Attribute Entry DDLA Update Stored Computed Column USCC Don't have to use Datatel functionality

Creation – Stored Computed Column Create data element to store value Write batch process to calculate and store value. Run batch process periodically (once/day) on changed records. If updating once/day or less won't work, consider a database trigger. Datatel doesn't support realtime (yet?)‏

Creation – Stored Computed Column Realtime with trigger is good! Database triggers can be invoked whenever a record is udpated or deleted Easy to recalculate stored computed column values anytime record is written Totally outside ETK. AE or MODIFY forces recalculation.

Creation – Indexing Vastly improve queries Index data elements used often Indicies defined on FIDX (toolkit)‏ Indicies built on UTBI/UTBA Index anything you routinely query How often do we reindex?

Creation – Indexing

Performance with Indexing H08.CR.DIV.DATA pure custom file Defined 20+ indicies on it records in file SELECT H08.CR.DIV.DATA WITH XCDD.STU.PROGREP.STATUS='V' Indexed: 50 milliseconds Non-indexed: 1432 milliseconds

Triggers Piece of executed code Triggered by certain events Code is Unibasic subroutine/function Triggers invoked when record is Updated (written)‏ Deleted

Triggers Create subroutine with 5 arguments: EXECSTAT (0,1,2)‏ DICT.FLAG (‘’, ‘DICT’)‏ FILE (‘STUDENTS’)‏ ID (‘ ’)‏ RECORD Compile and GLOBALLY catalog CREATE.TRIGGER FILENAME SUBNAME UPDATE

Triggers On ALL custom files, I use triggers for ADD/CHG OPER, DATE, TIME Why not Envision? We use triggers on some Datatel files too! We use WORKORDERS for Phys Plant and IT PPWP (Web Params) only allows single Plant Type and single address for web work orders No problem – worked around with a trigger

Triggers SUBROUTINE H08.UT.H08.CR.EVENTS(X.EXEC,X.DICT,X.FILE,X.ID,X.REC)‏ X.EXEC=2 IF X.DICT=’’ THEN X.REC X.REC =DATE()‏ X.REC =TIME() IF X.REC =’’ THEN X.REC =X.REC END RETURN :BASIC CUSTOM.SOURCE H08.UT.H08.CR.EVENTS :CATALOG CUSTOM.SOURCE H08.UT.H08.CR.EVENTS FORCE :CREATE.TRIGGER H08.CR.EVENTS H08.UT.H08.CR.EVENTS UPDATE

Triggers Where can you find more info? Unidata Documentation (thin): Developing Unibasic Applications Chapter 4 – Maintaining Data in Files Database triggers pp. 4-6

Summary Custom files are easy Keep your custom data separate Index things you query against often Think about stored computed columns for CPU-intensive computed columns Be consistent naming files/fields

Summary Jeff Butera Hampshire College