Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-9, 2005 Key Biscayne, Florida 1 Techniques for using Visual DataFlex.

Slides:



Advertisements
Similar presentations
CHAPTER OBJECTIVE: NORMALIZATION THE SNOWFLAKE SCHEMA.
Advertisements

Introduction to Structured Query Language (SQL)
Topic Denormalisation S McKeever Advanced Databases 1.
Introduction to Structured Query Language (SQL)
Introduction to Structured Query Language (SQL)
Chapter 7 Managing Data Sources. ASP.NET 2.0, Third Edition2.
Data Dictionaries 2013 (plus a bit more) John Tuohy Development Team
Chapter 14 & 15 Conceptual & Logical Database Design Methodology
Introduction To Databases IDIA 618 Fall 2014 Bridget M. Blodgett.
MS Access: Database Concepts Instructor: Vicki Weidler.
MS Access 2002: Basic Instructor: Vicki Weidler. MS Access: Database Concepts.
DAY 21: MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Akhila Kondai October 30, 2013.
Oracle Data Definition Language (DDL)
ODBC Unplugged: What’s New in the DataFlex Connectivity Kit for ODBC? John Kramel Senior Consultant Data Access Corporation.
IT – DBMS Concepts Relational Database Theory.
8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.
Database Applications – Microsoft Access Lesson 2 Modifying a Table and Creating a Form 45 slides in presentation Accessibility check 9/14.
ระบบฐานข้อมูลขั้นสูง (Advanced Database Systems) Lecturer AJ. Suwan Janin Phone:
With Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Intermediate.
ProvideX Data Dictionary & Views System Presented by: Patrizio Lucci.
With Microsoft Access 2007 Volume 1© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access 2007 Volume 1 Chapter.
1 Intro to Info Tech Database Management Systems Copyright 2003 by Janson Industries This presentation can be viewed on line at:
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 7 INTRODUCTION TO STRUCTURED QUERY LANGUAGE (SQL) Instructor Ms. Arwa.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
Data-mining & Data As we used Excel that has capability to analyze data to find important information, the data-mining helps us to extract information.
Relational DB Components
Concepts and Terminology Introduction to Database.
Copyright  Oracle Corporation, All rights reserved. 4 CMIS Powell Oracle Designer: Creating the Database Design CMIS Powell.
Lecture 7 Integrity & Veracity UFCE8K-15-M: Data Management.
SQL, Data Storage Technologies, and Web-Data Integration Week 2.
DataFlex Connectivity Kit for Pervasive.SQL Eddy Kleinjan.
ISV Innovation Presented by ISV Innovation Presented by Business Intelligence Fundamentals: Data Cleansing Ola Ekdahl IT Mentors 9/12/08.
Database Systems Microsoft Access Practical #1 Creating Tables Nos 215.
Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-9, 2005 Key Biscayne, Florida 1 Pervasive.SQL Version 9 - What’s New.
Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
7 1 Chapter 7 Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
© Copyright 2002, 2005, 2013 L. M. Linson, may be freely used with this notice Practical Database Design “Structuring Your Tables” by Larry Linson, presented.
1 What to do before class starts??? Download the sample database from the k: drive to the u: drive or to your flash drive. The database is named “FormBelmont.accdb”
DataMAPPER - Applied Database Tech. 이화여대 과학기술대학원 석사 3 학기 992COG08 김지혜.
6 1 Lecture 8: Introduction to Structured Query Language (SQL) J. S. Chou, P.E., Ph.D.
Enhancing Forms with OLE Fields, Hyperlinks, and Subforms – Project 5.
6.1 © 2010 by Prentice Hall 6 Chapter Foundations of Business Intelligence: Databases and Information Management.
IE 423 – Design of Decision Support Systems Database development – Building Tables
1 CSE 2337 Introduction to Data Management Access Book – Ch 1.
Data Driven Designs 99% of enterprise applications operate on database data or at least interface databases. Most common DBMS are Microsoft SQL Server,
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
Advanced Accounting Information Systems Day 10 answers Organizing and Manipulating Data September 16, 2009.
Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-9, 2005 Key Biscayne, Florida Visual DataFlex 11 an Overview John J Tuohy.
Lesson 4.  After a table has been created, you may need to modify it. You can make many changes to a table—or other database object—using its property.
Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-9, 2005 Key Biscayne, Florida 1 Application Deployment Stephen W. Meeley.
DATABASE MANAGEMENT SYSTEM.
Mr C Johnston ICT Teacher
Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-9, 2005 Key Biscayne, Florida Table Types and Programming Styles John.
Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-9, 2005 Key Biscayne, Florida Extending Existing Applications to the.
MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Sravanthi Lakkimsety Mar 14,2016.
CS 440 Database Management Systems Stored procedures & OR mapping 1.
Database Planning Database Design Normalization.
Form Development (Chapter 6)
Client/Server Databases and the Oracle 10g Relational Database
Exploring Microsoft Access 97
Chapter 1: Introduction
Created by Kamila zhakupova
Database Fundamentals
On transactions, and Atomic Operations
On transactions, and Atomic Operations
Chapter 1: Introduction
Chapter 1: Introduction
INTRODUCTION A Database system is basically a computer based record keeping system. The collection of data, usually referred to as the database, contains.
Presentation transcript:

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-9, 2005 Key Biscayne, Florida 1 Techniques for using Visual DataFlex with SQL Databases Stephen W. Meeley

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida 2 The evolution of connectivity  dBase? You gotta be kidding me. First we’ll export the data to an ASCII file and we’ll read it into a REAL multi- user database…

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida 3 The evolution of connectivity  Btrieve is client/server with a transactional interface that fits like a glove. Let’s use it when we need to…

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida 4 The evolution of connectivity  Looks like Microsoft, IBM and Oracle aren’t just going to go away and leave us alone. We can still get the sale if we convert our “DataFlex” data and…

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida 5 The evolution of connectivity  Hmmm. “Our” data is working out pretty darn well in an SQL database, maybe now we could…

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida 6 The evolution of connectivity  We can get more return out of our investment in that data if we use Visual DataFlex to…

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida 7 Project Goals  Make it possible to connect to more tables without needing to change those tables. You can have a “native” connection to any table that has a unique, single- column, numeric identifier (mapped to recnum) You can connect to any other table, but not as easily (using Embedded SQL)

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida 8 The why’s of improving connectivity  Native connections mean that tables are fully supported by the Application Framework  Developers are better served by “native” connections Both the product and the data are much easier to work with Increasing opportunities for existing developers More natural integration with the product  We can attract new users and train them more easily if they can feel comfortable with their “native” data

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida 9 The how’s of improving connectivity  Examined SQL data and found issues with… Terminology Specification mismatches Data type support Primary keys (unique identifiers) Relationships (data structures) Indexes (non-unique)  Some issues could be lived with or dealt with in code, others could not  Incremental development model says to focus on those “others” first…

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida 10 Living in an SQL world  When we connect to the SQL world we no longer control the database  As the database is more central to the business, changes to the structure are harder to get and must be very tightly coordinated  Thank God that DBAs are rarely armed…

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida 11 Visual DataFlex 11 and connectivity  Use more standard terminology (at least for the easy stuff)  Make the tools more intuitive to use More wizards Less DataFlex-centric  Support non-numeric, multi-column relationships  Support columns larger than 16k

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida 12 What’s left for you to deal with…  Specification mismatches  Database structures  Data types  Unique indexes

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida 13 Specification mismatches  Table names limited to 8 characters and uppercased It’ll all work automatically, but you may want to change the default names for some tables to better suite use  Column names Reserved words Spaces replaced with underscores  Named indexes Use index numbers assigned by connection wizard  Nulls Allowing nulls in columns that participate in indexes will negatively impact performance See if DBA will consider dummy zero date

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida 14 Database structures  None of these are “new” because of SQL, you just run into these a lot… Recursive relationships One-to-one relationships Conditional relationships

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida 15 How to deal with them…  Use alias tables Described in Data Dictionary Book  Define the relationships in DDO structures, not table definition  Augment relate_main_file and attach_main_file

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida 16 Data types  Datetime mapped to date Use DF_FIELD_TIME attribute to get and set time portion  Numeric limited to 14.8 positions No good solution for this Use ESQL and manipulate as reals  Most other unsupported types are mapped to strings  CLOB and BLOBs If “reasonable” to assign a static maximum size, set in.int with DF_FIELD_LENGTH

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida 17 Indexes in an SQL world  Indexes more for tuning than part of the data structure  Non-unique indexes are quite common In an Order table you’ll see them indexed by Customer, but that’s it  The Application Framework is really built around unique indexes

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida 18 What happens with non-unique indexes  It may look like it’s working, but it isn’t really… In reporting (unidirectional access) the sequence may change from instance to instance In data entry and lookup (bi-directional access) the behavior is undefined (i.e. sometimes it’s correct and sometimes it’s “goofy”)  The whole system really requires that the result of all find next and find previous operatons be consistent

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida 19 What are your options  Where possible, use unique indexes  Ask if non-unique indexes can be changed This is not as big a deal as asking for a structure change  Add “phantom” columns to indexes in the.int file Forces the server to give correct sequence Will be less efficient, but only sometimes Gives you the consistency you need

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida 20 How to deal with database modifications  Use native tools to create and modify tables  Database Builder is used to acquire tables into filelist, create alias tables and create data dictionaries  Make “structure” adjustments in.int files  Use Database Builder in “safe” mode (read-only)

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida 21 Validations  Many validations (and other business rules) will be defined at the server  Don’t be afraid to “duplicate” validations in Data Dictionaries  Usually means that the DD with catch the failure of the validation first  There could be advantages to this Just as the server rules protect against unplanned changes driven by the application, DDO rules protect against unplanned changes driven by the database

Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-8,2005 Key Biscayne, Florida 22 Where are we going next?  Essentially, the list of things you are left to deal with is our list of continued improvements