Advantage Data Dictionary. agenda Creating and Managing Data Dictionaries –Tables, Indexes, Fields, and Triggers –Defining Referential Integrity –Defining.

Slides:



Advertisements
Similar presentations
Chapter 10: Designing Databases
Advertisements

ERWin Template Overview By: Dave Wentzel. Agenda u Overview of Templates/Macros u Template editor u Available templates u Independent column browser u.
Introduction to Structured Query Language (SQL)
Building Enterprise Applications Using Visual Studio ®.NET Enterprise Architect.
Monday, 08 June 2015Dr. Mohamed Osman1 What is Database Administration A high level function (technical Function) that is responsible for ► physical DB.
15 Chapter 15 Web Database Development Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
Fundamentals, Design, and Implementation, 9/e Chapter 11 Managing Databases with SQL Server 2000.
Fundamentals, Design, and Implementation, 9/e Chapter 7 Using SQL in Applications.
Concepts of Database Management Sixth Edition
1 1. SQL SERVER OVERVIEW zWhat Is SQL Server? zInterfaces To Use SQL Server zSQL Server Services zTypes Of Databases zSQL Server Security.
ASP.NET Programming with C# and SQL Server First Edition Chapter 8 Manipulating SQL Server Databases with ASP.NET.
With Microsoft Access 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
Working with SQL and PL/SQL/ Session 1 / 1 of 27 SQL Server Architecture.
Overview What is SQL Server? Creating databases Administration Security Backup.
Module 9: Managing Schema Objects. Overview Naming guidelines for identifiers in schema object definitions Storage and structure of schema objects Implementing.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 3 Administration of Users.
Copyright © 2003 by Prentice Hall Module 4 Database Management Systems 1.What is a database? Data hierarchy and data organization Field, record, file,
6-1 DATABASE FUNDAMENTALS Information is everywhere in an organization Information is stored in databases –Database – maintains information about various.
ASP.NET Programming with C# and SQL Server First Edition
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
Copyright  Oracle Corporation, All rights reserved. 5 CMIS Powell Oracle Designer: Design Editor and Building the Database and Table API CMIS.
DAY 14: ACCESS CHAPTER 1 Tazin Afrin October 03,
An Investigation of Oracle and SQL Server with respect to Integrity, and SQL Language standards Presented by: Paul Tarwireyi Supervisor: John Ebden Date:
Concepts of Database Management, Fifth Edition Chapter 4: The Relational Model 3: Advanced Topics.
RDB/1 An introduction to RDBMS Objectives –To learn about the history and future direction of the SQL standard –To get an overall appreciation of a modern.
Chapter 4 The Relational Model 3: Advanced Topics Concepts of Database Management Seventh Edition.
Database Technical Session By: Prof. Adarsh Patel.
STORING ORGANIZATIONAL INFORMATION— DATABASES CIS 429—Chapter 7.
HSCI 709 SQL Data Definition Language. SQL Standard SQL-92 was developed by the INCITS Technical Committee H2 on Databases. SQL-92 was designed to be.
Module 11: Programming Across Multiple Servers. Overview Introducing Distributed Queries Setting Up a Linked Server Environment Working with Linked Servers.
Storing Organizational Information - Databases
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
1 Chapter Overview Preparing to Upgrade Performing a Version Upgrade from Microsoft SQL Server 7.0 Performing an Online Database Upgrade from SQL Server.
Access Project 3 Notes. Introduction Maintaining the Database  Modifying the data to keep it up-to-date Restructure the Database  To change the database.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
6 1 Lecture 8: Introduction to Structured Query Language (SQL) J. S. Chou, P.E., Ph.D.
3-Tier Client/Server Internet Example. TIER 1 - User interface and navigation Labeled Tier 1 in the following graphic, this layer comprises the entire.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
Maintaining a Database Access Project 3. 2 What is Database Maintenance ?  Maintaining a database means modifying the data to keep it up-to-date. This.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
Commercial RDBMSs Access and Oracle. Access DBMS Architchecture  Can be used as a standalone system on a single PC: -JET Engine -Microsoft Data Engine.
Indexes / Session 2/ 1 of 36 Session 2 Module 3: Types of Indexes Module 4: Maintaining Indexes.
Constraints cis 407 Types of Constraints & Naming Key Constraints Unique Constraints Check Constraints Default Constraints Misc Rules and Defaults Triggers.
Oracle 11g: SQL Chapter 4 Constraints.
Chapter 4 Constraints Oracle 10g: SQL. Oracle 10g: SQL 2 Objectives Explain the purpose of constraints in a table Distinguish among PRIMARY KEY, FOREIGN.
2. SQL Security Objectives –Learn SQL Server 2000 components Contents –Understanding the Authentication Process –Understanding the Authorization Process.
DBT544. DB2/400 Advanced Features Level Check Considerations Database Constraints File Overrides Object and Record Locks Trigger Programs.
Database Security Cmpe 226 Fall 2015 By Akanksha Jain Jerry Mengyuan Zheng.
Constraints Lesson 8. Skills Matrix Constraints Domain Integrity: A domain refers to a column in a table. Domain integrity includes data types, rules,
Chapter 5 : Integrity And Security  Domain Constraints  Referential Integrity  Security  Triggers  Authorization  Authorization in SQL  Views 
Session 1 Module 1: Introduction to Data Integrity
Learningcomputer.com SQL Server 2008 –Views, Functions and Stored Procedures.
Copyright (c) 2014 Pearson Education, Inc. Introduction to DBMS.
IMS 4212: Constraints & Triggers 1 Dr. Lawrence West, Management Dept., University of Central Florida Stored Procedures in SQL Server.
DAY 14: ACCESS CHAPTER 1 RAHUL KAVI October 8,
MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Sravanthi Lakkimsety Mar 14,2016.
Introduction to MySQL  Working with MySQL and MySQL Workbench.
Constraints Advanced Database Systems Dr. AlaaEddin Almabhouh.
7.5 Using Stored-Procedure and Triggers NAME MATRIC NUM GROUP Muhammad Azwan Bin Khairul Anwar CS2305A Muhammad Faiz Bin Badrol Shah CS2305B.
Views / Session 3/ 1 of 40 Session 3 Module 5: Implementing Views Module 6: Managing Views.
Agenda for Today  DATABASE Definition What is DBMS? Types Of Database Most Popular Primary Database  SQL Definition What is SQL Server? Versions Of SQL.
Data Integrity & Indexes / Session 1/ 1 of 37 Session 1 Module 1: Introduction to Data Integrity Module 2: Introduction to Indexes.
SQL Database Management
Getting started with Accurately Storing Data
Building Enterprise Applications Using Visual Studio®
Chapter 8 Working with Databases and MySQL
Oracle9i Developer: PL/SQL Programming Chapter 8 Database Triggers.
Chapter 7 Using SQL in Applications
Chapter 11 Managing Databases with SQL Server 2000
Prof. Arfaoui. COM390 Chapter 9
Presentation transcript:

Advantage Data Dictionary

agenda Creating and Managing Data Dictionaries –Tables, Indexes, Fields, and Triggers –Defining Referential Integrity –Defining Views –Data Dictionary Links –User, User Groups, and Permissions Migrating an Existing Applications to Data Dictionaries Upgrading Data Dictionaries

architecture Consists of three files –.ADD – Advantage Data Dictionary file –.AM - The memo file for the Advantage Data Dictionary –.AI - The index file for the Advantage Data Dictionary Only the.ADD and.AM files should be distributed to the client site to avoid collation sequence differences –The.AI file will be created automatically when the data dictionary is first opened

data dictionary properties* Dictionary Name Paths –Database -- where to create the.ADD,.AM, and.AI files –Default Path -- where tables are created and opened by default –Temporary Path -- where temporary SQL files are created Logins Required and Check User Rights Data Dictionary File Encryption Table Encryption Description Advantage Internet Access Dictionary Version

tables and indexes Data dictionaries can contain both ADTs and DBFs Existing tables can be added one at a time or in groups All tables created while connected to a data dictionary as the system administrator (ADSSYS) will be automatically added to the dictionary

—continued— tables and indexes ADT tables bound to a data dictionary cannot be opened as free table DBF tables can still be opened as free tables All indexes get opened automatically when the table is opened Indexes created by a non-Administrative user are temporary and deleted when the users disconnects

ADT table features Referential Integrity Default Field Values Record and Field Level Constraints More Secure Encryption

table properties* Auto Create Description Permission Level –Level 1: reading field without rights returns NULL, filtering allowed, equivalent to Paradox behavior –Level 2: reading field without rights returns NULL, filtering returns error, default Advantage permission level –Level 3: can only access via SQL, reading field without rights returns error, equivalent to MS SQL Server behavior Encryption

—continued— table properties Record Level Constraint –Failed Validation Message –Validates changes for an entire record –Performed when a record insert or update is written/flushed to the Advantage server –Can be any valid Advantage Expression Engine expression

index properties Default Index –Works in conjunction with the TDataSet Descendant and the OLE DB Provider Primary Index –Advantage Index files only (ADIs) –Can be used as primary key in a Referential Integrity relationship Index Page Size –Advantage Index files only (ADIs) –Larger page sizes can improve performance when dealing with large numbers of records

field properties* Field Level Constraints –Minimum Field Value –Maximum Field Value –Value Required (are NULL values allowed) –Failed Validation Message Default Field Value –Any valid Advantage Expression Engine expression Field Description

new triggers Code automatically executed by the server on INSERT, UPDATE, and DELETE operations 5 types of triggers –SQL Scripts –Standard 32-bit Windows DLLs –Windows COM DLLs –Linux Shared Objects –.NET Assemblies Excellent for enforcing business rules and creating audit trails

referential integrity Referential Integrity (RI) is the means by which primary/foreign key relationships are enforced in a database –Ensures that a database is logically consistent –Primary Table and Primary Key –Foreign Table and Foreign Key –Update and Delete Rules –Primary Key Violation Error Message –Cascade Error Message

referential integrity rules* RI Deletion Rules are enforced when the primary key is deleted from the parent table –RESTRICT –CASCADE –SET NULL –SET DEFAULT RI Update Rules are enforced when the primary key is modified in the parent table –RESTRICT –CASCADE –SET NULL –SET DEFAULT

views Views are virtual tables that are the result of an SQL statement –Virtual table –Contains data from multiple tables or views –Created by the data dictionary administrator –Excellent for complex queries –Is updateable if the underlying SQL cursor is updateable

advantage extended procedures Executed by the Advantage Database Server Decreases network traffic Supports any programming language that can create a: –Standard 32-bit Windows DLL –Windows COM DLL –Linux Shared Object –.NET Assembly Excellent for shared business rules

data dictionary links Data dictionary links provide access to tables in other data dictionaries SELECT statements only Tables are read-only

—continued— data dictionary links Two types of links Direct path links –SELECT * FROM employees a, “\\server\share\hr.add”.employees b WHERE a.employee_id = b.employee_id –Authentication to linked dictionary is done using same User ID and Password as the current dictionary Alias links using dot notation –UPDATE customers SET address = (SELECT address FROM backup.customers b WHERE b.cust_id = customers.cust_id ) –Authentication to linked dictionary can be done with same User ID and Password or via User Name & Password specified when creating the Alias

user access permissions Control access to database resources –Tables –Fields –Views –Stored Procedures –Data Dictionary Links Groups and Users Set these database properties before they take effect –Logins Required –Check User Rights

managing permissions* Permissions are cumulative Permissions granted on a field(s) imply those same permissions on the table for that field(s) Methods to make managing users easier: –Generic users: Set up one user name shared by several people, such that each person who uses that user name has the same rights –Named users (via group): Set a different user name for each person, then set up a group that each user name would be a member of, such that each person has the same rights

new managing data dictionaries Advantage Data Architect (ARC) using the integrated Advantage Database Manager TAdsDictionary component in Advantage TDataSet Descendant client Advantage Client Engine AdsDD* APIs System Tables and Procedures

system tables* Provide read-only access to dictionary object properties Accessible through SQL –Located in the system catalog –Requires the use of dot notation Table structures will change as new properties are added Contents of tables varies depending on the user accessing them

system procedures* Allows modification of all dictionary properties through SQL Most properties require Administrative Access to modify a property Available on all Operating Systems

migrating existing applications 1.Create the Data Dictionary 2.Add or Create Tables 3.Define Referential Integrity Rules 4.Create Views 5.Add Advantage Extended Procedures 6.Add Data Dictionary Links 7.Create Users and Groups 8.Set Permissions

data dictionary deployment AdsDDDeployDatabase Deploy dictionaries to existing sites Adds all of your tables, constraints, RI rules, etc.

upgrading data dictionaries Performed using SQL scripts containing: – SQL data definitions statements –system procedures SQL scripts are generated using the Dictionary Differentiator in Advantage Data Architect Generating scripts requires two versions of the data dictionary

Dictionary Differentiator* Provides graphical view of the difference between two dictionaries Generates SQL upgrade scripts for an entire dictionary or a just single object

summary Advantage Data Dictionaries provide a wealth of features unavailable to free tables Advantage Data Architect is a useful tool to create, manage, and upgrade Advantage Data Dictionaries

Advantage Database Server: The Official Guide (ISBN ) is a new book, written by Cary Jensen and Loy Anderson and published by McGraw-Hill/Osborne Media Group, that systematically guides a developer through key functionality of Advantage and includes a Companion CD with code samples and a single-user license of Advantage Database Server version