Pervasive.SQL User's Guide - Novell

Transcription

Pervasive.SQL 2000iPervasive.SQL User’s GuideGuide to Using Pervasive.SQLPervasive Software, Inc.12365 Riata Trace ParkwayBuilding IIAustin, TX 78727 USATelephone: 1 512 231 6000 or 800 287 4383Fax: 1 512 231 6010E-Mail: info@pervasive.comWeb: http://www.pervasive.com

disclaimerPERVASIVE SOFTWARE INC. LICENSES THE SOFTWARE ANDDOCUMENTATION PRODUCT TO YOU OR YOUR COMPANY SOLELY ON AN “ASIS” BASIS AND SOLELY IN ACCORDANCE WITH THE TERMS AND CONDITIONSOF THE ACCOMPANYING LICENSE AGREEMENT. PERVASIVE SOFTWARE INC.MAKES NO OTHER WARRANTIES WHATSOEVER, EITHER EXPRESS OR IMPLIED,REGARDING THE SOFTWARE OR THE CONTENT OF THE DOCUMENTATION;PERVASIVE SOFTWARE INC. HEREBY EXPRESSLY STATES AND YOU OR YOURCOMPANY ACKNOWLEDGES THAT PERVASIVE SOFTWARE INC. DOES NOTMAKE ANY WARRANTIES, INCLUDING, FOR EXAMPLE, WITH RESPECT TOMERCHANTABILITY, TITLE, OR FITNESS FOR ANY PARTICULAR PURPOSE ORARISING FROM COURSE OF DEALING OR USAGE OF TRADE, AMONG OTHERS.trademarksBtrieve, Tango, Client/Server in a Box, and the Pervasive Software logo are registeredtrademarks of Pervasive Software Inc.Built on Pervasive, Built on Pervasive Software, Extranet in a Box, Pervasive.SQL, Jtrieve, Plug n’ PlayDatabases, SmartScout, Solution Network, Ultra-light Z-DBA, Z-DBA, ZDBA, UltraLight,MicroKernel Database Engine, and MicroKernel Database Architecture are trademarks of PervasiveSoftware Inc.Microsoft, MS-DOS, Windows, Windows NT, Win32, Win32s, and Visual Basic are registeredtrademarks of Microsoft Corporation.Windows 95 is a trademark of Microsoft Corporation.NetWare and Novell are registered trademarks of Novell, Inc.NetWare Loadable Module, NLM, Novell DOS, Transaction Tracking System, and TTS aretrademarks of Novell, Inc.All other company and product names are the trademarks or registered trademarks of theirrespective companies. Copyright 2001 Pervasive Software Inc. All rights reserved. Reproduction,photocopying, or transmittal of this publication, or portions of this publication, isprohibited without the express prior written consent of the publisher.This product includes software developed by Powerdog Industries. Copyright 1994 Powerdog Industries. All rights reserved.The ODBC Driver Manager for NetWare (ODBC.NLM) included in this product isbased on the GNU iODBC software Copyright 1995 by Ke Jin kejin@empress.com and was modified by Simba Technologies Inc. in June 1999.This library is free software; you can redistribute it and/or modify it under the termsof the GNU Lesser General Public License as published by the Free SoftwareFoundation; either version 2 of the License, or (at your option) any later version.This library is distributed in the hope that it will be useful, but WITHOUT ANYWARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESSFOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License formore details.A copy of the GNU Lesser General Public License is included in your installation ofPervasive.SQL 2000i at \pvsw\doc\lesser.htm. If you cannot find this license, write tothe Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 021111307 USA. You may contact Pervasive Software Inc. using the contact information onthe back cover of this manual.Pervasive.SQL User’s GuideMarch 2001100-003672-004

ContentsContentsAbout This Manual . . . . . . . . . . . . . . . . . . . . . . . . . . .ixWho Should Read This Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Manual Organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1Introducing Pervasive.SQL . . . . . . . . . . . . . . . . . . . . . .xxixii1-1Understanding Pervasive.SQL and its CapabilitiesUnderstanding Pervasive.SQL . . . . . . . . . .What is a Database? . . . . . . . . . . . .What is a Database Management System?Components of Pervasive.SQL . . . . . .Key Concepts . . . . . . . . . . . . . . . . . . .Basic Database Structures and Terms . .Unique Benefits of Pervasive.SQL . . . .Why Pervasive.SQL? . . . . . . . . . . . . . . .Understanding the Product Family . . . . . . .Workstation . . . . . . . . . . . . . . . .Workgroup . . . . . . . . . . . . . . . . .Server . . . . . . . . . . . . . . . . . . . .Replication . . . . . . . . . . . . . . . . .Crystal Reports for Pervasive.SQL . . . .Helpful Utilities . . . . . . . . . . . . . . . . . .Using Pervasive.SQL Documentation . . . . . .Getting Started Guides. . . . . . . . . . .User’s Guide . . . . . . . . . . . . . . . .Advanced Operations Guide . . . . . . .SQL Engine Reference . . . . . . . . . . .Status Codes and Messages . . . . . . . .Pervasive Products and Services . . . . .Online Help. . . . . . . . . . . . . . . . .File System Security . . . . . . . . . . . . . . . .2.Using Pervasive.SQL . . . . . . . . . . . . . . . . . . . . . . . . 1-161-181-181-191-191-191-191-201-201-212-1A Walk-through of Basic User TasksStarting and Stopping the Database Engine. . . . . . . . .Starting and Stopping Services on Windows Server .Starting and Stopping Services on NetWare . . . . .Starting and Stopping Services on Unix . . . . . . .Granting Administrative Rights for the Database Engine .Tasks Requiring Administrative Rights. . . . . . . .2-22-32-42-52-62-6iii

ContentsHow Administrative Rights are Granted . . . . . . . . . . . . . . . . . .Rights Provided to Normal Users . . . . . . . . . . . . . . . . . . . . . .Granting Administrative Rights on Windows Server. . . . . . . . . . . .Granting Administrative Rights on NetWare 3.2 . . . . . . . . . . . . . .Granting Administrator Rights on NetWare 4.2 or 5.0 . . . . . . . . . .Granting Administrator Rights on Unix . . . . . . . . . . . . . . . . . .Logging in as Administrator . . . . . . . . . . . . . . . . . . . . . . . . .Setting Up ODBC Database Access . . . . . . . . . . . . . . . . . . . . . . . . .Basic Concepts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .What to Know if You are Recreating DSNs . . . . . . . . . . . . . . . . .Prerequisites to Setting up Database Access. . . . . . . . . . . . . . . . .Setting Up Database Access on a Windows Server or Workgroup/WorkstationSetting Up Database Access on a NetWare Server . . . . . . . . . . . . . . . . .Setting Up Database Access on Unix . . . . . . . . . . . . . . . . . . . . . . . .Setting Up Client Access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Accessing Data via ODBC From Other Applications . . . . . . . . . . . . . . .Before You Begin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Accessing Data Using Microsoft Excel. . . . . . . . . . . . . . . . . . . .Accessing Data Using Microsoft Access . . . . . . . . . . . . . . . . . . .Deleting DSNs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Bound Databases and Enforced Integrity . . . . . . . . . . . . . . . . . . . . 282-362-392-462-462-462-492-532-56Using the Pervasive Control Center . . . . . . . . . . . . . . . . .3-1A Brief Tour of Pervasive Control CenterAn Overview of Pervasive Control Center . . . . . . . .Registering or Removing a Server. . . . . . . . . . . . .Viewing Database Engines. . . . . . . . . . . . . . . . .Interpreting Server Status Icons . . . . . . . . . .Pervasive Control Center Wizards . . . . . . . . . . . .Adding or Creating a Database . . . . . . . . . . . . . .Deleting a Database . . . . . . . . . . . . . . . . . . . .Adding a Table . . . . . . . . . . . . . . . . . . . . . . .Modifying a Table Definition . . . . . . . . . . . . . . .Dropping a Table. . . . . . . . . . . . . . . . . . . . . .Setting Database Security . . . . . . . . . . . . . . . . .Turning Security On and Off. . . . . . . . . . . .Working with Groups and Users. . . . . . . . . .Stopping and Restarting Services on Windows Servers .Viewing and Modifying Table Properties . . . . . . . .Viewing and Modifying Data . . . . . . . . . . . . . . .Viewing Data . . . . . . . . . . . . . . . . . . . .Writing and Executing SQL Statements . . . . . .Using the SQL Statement Builder . . . . . . . . .Exporting/Importing Data . . . . . . . . . . . . . . . .Checking Consistency and Referential Integrity . . . . 23-383-393-423-423-423-453-463-54

ContentsListing Referential Constraints . . . . . . . . . . . . . . . . . . . . . . . . . . . .Checking Consistency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Checking Referential Integrity . . . . . . . . . . . . . . . . . . . . . . . . . . . .4Unix Supplementary Documentation . . . . . . . . . . . . . . . . .3-543-553-574-1Additional Information on Unix UtilitiesUser Manual Exclusions for UnixUtilities . . . . . . . . . . .Changes and Exclusions . .Man Pages . . . . . . . . . . . . .Available Utilities . . . . . . . . .5.Basic Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . .4-24-24-24-44-55-1How to Identify and Solve Common ProblemsGeneral Troubleshooting . . . . . .Error Messages from PCC . . . . .Frequently Asked Questions . . . .Installation . . . . . . . . . .Security . . . . . . . . . . . .Documentation. . . . . . . .User Counts . . . . . . . . .Networking . . . . . . . . . .Difficulty Accessing Data . .ODBC and DDFs. . . . . . .Upgrading from Btrieve 6.15Upgrading and Migration . .Miscellaneous. . . . . . . . .6.Pervasive.SQL Resources and Contacts . . . . . . . . . . . . . . 96-1A Guide to Pervasive.SQL Customer Information ResourcesPrinted Documentation . . . .Developer Zone . . . . . . . . .Pervasive.SQL Knowledge BaseFTP Site . . . . . . . . . . . . .Online Documentation . . . . .DevWire . . . . . . . . . . . . .DevTalk . . . . . . . . . . . . .Newsgroup . . . . . . . . . . .E-Mail . . . . . . . . . . . . . .Technical Support. . . . . . . .6-26-36-46-56-66-76-86-96-106-11v

262-272-282-292-302-312-322-332-342-35Windows NT Services Dialog Box . . . . . . . . . . . . . .User Manager Dialog Box . . . . . . . . . . . . . . . . . .Connect to Remote Server Dialog Box . . . . . . . . . . .DSNs Needed for Server Engine . . . . . . . . . . . . . . .DSNs Needed for Workstation/Workgroup Engine . . . .Registering a New Engine. . . . . . . . . . . . . . . . . . .Choosing a Computer Name . . . . . . . . . . . . . . . . .Choosing a Computer Name from a Network List . . . . .Create an Engine DSN and Connect to a Server Database .Naming the New Database on the Server . . . . . . . . . .Create Database Wizard Complete . . . . . . . . . . . . .Advanced Settings Window . . . . . . . . . . . . . . . . .Create DBNAME Window . . . . . . . . . . . . . . . . . .Registering a New Engine. . . . . . . . . . . . . . . . . . .Choosing a Computer Name . . . . . . . . . . . . . . . . .Choosing a Computer Name from a Network List . . . . .Create an Engine DSN and Connect to a Server Database .Naming the New Database on the Server . . . . . . . . . .Create Database Wizard Complete . . . . . . . . . . . . .Advanced Settings Window . . . . . . . . . . . . . . . . .Create DBNAME Window . . . . . . . . . . . . . . . . . .Registering a New Engine. . . . . . . . . . . . . . . . . . .Choosing a Computer Name . . . . . . . . . . . . . . . . .Choosing a Computer Name from a Network List . . . . .Create Database Wizard—Client DSN . . . . . . . . . . .Create Database Wizard—Client DSN Confirmation . . .Pervasive ODBC Client DSN Setup Screen . . . . . . . . .Pervasive ODBC Client DSN Options . . . . . . . . . . . .Pervasive ODBC Client DSN Setup Screen #2 . . . . . . .Accessing Pervasive Data using Microsoft Excel . . . . . .Excel Display of ODBC Source List . . . . . . . . . . . . .Create a New Database using Microsoft Access. . . . . . .Importing External Data Using Access . . . . . . . . . . .Access Display of ODBC Source List . . . . . . . . . . . .Using Pervasive Data in Microsoft Access. . . . . . . . . . 2-3. 2-9. 2-13. 2-15. 2-15. 2-19. 2-20. 2-20. 2-22. 2-23. 2-24. 2-25. 2-26. 2-28. 2-29. 2-29. 2-30. 2-31. 2-32. 2-33. 2-34. 2-39. 2-40. 2-40. 2-41. 2-42. 2-43. 2-43. 2-44. 2-47. 2-47. 2-49. 2-50. 2-51. 2-523-13-23-33-4Pervasive Control Center . . . . . . . . . . . . . . .Registering a New Engine. . . . . . . . . . . . . . .Choosing a Computer Name . . . . . . . . . . . . .Choosing a Computer Name from a Network List . 3-2. 3-4. 3-5. 3-5vi.

DOS Command Line Screen Example . . . . . . . . . . . . . . . . . . .Create Database Wizard Dialog Box . . . . . . . . . . . . . . . . . . . .Create Database Wizard - Complete Dialog Box . . . . . . . . . . . . .Delete Database Wizard Dialog Box . . . . . . . . . . . . . . . . . . . .Completing Delete Database Wizard Dialog Box . . . . . . . . . . . . .Create Table Wizard Dialog Box . . . . . . . . . . . . . . . . . . . . . .Create Table Wizard - Designer View Dialog Box . . . . . . . . . . . . .Create Table Wizard - Generate SQL Script Dialog Box . . . . . . . . .Create Table Wizard - Complete Dialog Box . . . . . . . . . . . . . . .Table Designer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Drop Table Wizard. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Database Properties Dialog Box. . . . . . . . . . . . . . . . . . . . . . .Add New Group Dialog Box . . . . . . . . . . . . . . . . . . . . . . . .Add New User / Group Permissions Dialog Box . . . . . . . . . . . . .Add New User Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . .Add New User / Group Permissions Dialog Box . . . . . . . . . . . . .Stopping and Restarting Services in the Pervasive Control Center. . . .Table Properties Window . . . . . . . . . . . . . . . . . . . . . . . . . .SQL Data Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Export Wizard - Choose a Destination File Dialog Box. . . . . . . . . .Export Wizard - Specify Table Copy or Query Dialog Box . . . . . . . .Export Wizard - Use SQL Statement for Export Dialog Box . . . . . . .Export Wizard - Completing the Export to the File Wizard Dialog BoxExporting Data Status . . . . . . . . . . . . . . . . . . . . . . . . . . . .Import Wizard - Choose a Source File Dialog Box . . . . . . . . . . . .Import Wizard - Specify Table Copy Dialog Box . . . . . . . . . . . . .Import Wizard - Use SQL Statement for Import Dialog Box. . . . . . .Import Wizard - Completing the Import from File Wizard Dialog Box.Importing Data Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . .Database Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Check Database Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . .Select Tables for the Referential Integrity Test Dialog Box . . . . . . . .Check Database Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . .Details of the Referential Integrity Test Dialog Box . . . . . . . . . . . .Select Tables for the Referential Integrity Test Dialog Box . . . . . . . .Check Database Results Dialog Box . . . . . . . . . . . . . . . . . . . .Referential Integrity Test Results Dialog Box . . . . . . . . . . . . . . i

Tables1-11-2Comparison of Server, Workgroup, Workstation Features . . . . . . . . . . . . . 1-14Summary of Pervasive.SQL Utilities . . . . . . . . . . . . . . . . . . . . . . . . . . 1-162-1Next Step if Engine DSN Already exists . . . . . . . . . . . . . . . . . . . . . . . . 2-213-13-23-33-43-53-63-7Pervasive.SQL Machine States . . . . .File Names of Wizards . . . . . . . . .Table Wizard Tools . . . . . . . . . . .Table Designer Alter Table Functions .Existing Table Properties . . . . . . . .SQL Data Manager Buttons . . . . . .Import/Export Wizards Data Formats.viii. 3-8. 3-9. 3-20. 3-26. 3-40. 3-43. 3-46

About This ManualThis manual introduces you to Pervasive.SQL utilities for server,workstation and workgroup products and shows you how toperform the basic tasks necessary to work with the application.Topics include starting and stopping the database engine, setting upaccess to a database, and accessing data from other applications. Thismanual also gives you a tour of the Pervasive Control Center (PCC).PCC allows you to manage Pervasive.SQL utilities within a single,easy-to-use framework.ix

About This ManualWho Should Read This ManualThis manual provides information for users who install and runPervasive.SQL client/server, workstation, and workgroup products.Pervasive Software would appreciate your comments andsuggestions about this manual. Please send comments todocs@pervasive.com.x

Manual OrganizationManual OrganizationThis manual is divided into five chapters:!Chapter 1—“Introducing Pervasive.SQL”This chapter provides an introduction to Pervasive.SQL, and anoverview of utilities and Pervasive.SQL documentation.!Chapter 2—“Using Pervasive.SQL”This chapter covers the basic tasks you need to do to work withPervasive.SQL.!Chapter 3—“Using the Pervasive Control Center”This chapter explains how to get your work done using PervasiveControl Center.!Chapter 4—“Unix Supplementary Documentation”This chapter explains how to get things done on Unix serverplatforms.!Chapter 5—“Basic Troubleshooting”This chapter provides information for troubleshooting andresolving problems.!Chapter 6—“Pervasive.SQL Resources and Contacts”This chapter explains the resources and information at yourdisposal as a valued customer of Pervasive Software.The manual also includes an index.xi

About This ManualConventionsUnless otherwise noted, command syntax, code, and examples usethe following conventions:xiiCASECommands and reserved words typically appear in uppercaseletters. Unless you are working with Unix or the manual statesotherwise, you can enter these items using uppercase,lowercase, or both. For example, you can type MYPROG,myprog, or MYprog.BoldWords appearing in bold include the following: menu names,dialog box names, commands, options, buttons, statements,etc.MonospacedfontMonospaced font is reserved for words you enter, such ascommand syntax.[ ]Square brackets enclose optional information, as in[log name]. If information is not enclosed in square brackets,it is required. A vertical bar indicates a choice of information to enter, as in[file name @file name]. Angle brackets enclose multiple choices for a required item, asin /D 5 6 7 .variableWords appearing in italics are variables that you must replacewith appropriate values, as in file name.An ellipsis following information indicates you can repeat theinformation more than one time, as in [parameter .].:: The symbol :: means one item is defined in terms of another.For example, a:: b means the item a is defined in terms of b.

chapterIntroducing Pervasive.SQL1Understanding Pervasive.SQL and its CapabilitiesThis chapter provides an explanation of what Pervasive.SQL is andwhat it can do for you. This chapter is divided into the followingsections:!!!!!!!“Understanding Pervasive.SQL” on page 1-2“Key Concepts” on page 1-5“Why Pervasive.SQL?” on page 1-10“Understanding the Product Family” on page 1-12“Helpful Utilities” on page 1-16“Using Pervasive.SQL Documentation” on page 1-18“File System Security” on page 1-211-1

Introducing Pervasive.SQLUnderstanding Pervasive.SQLPervasive.SQL is a comprehensive database management systembuilt around Pervasive Software’s MicroKernel Database Engine.Pervasive.SQL offers easy installation, uncomplicated maintenance,and high levels of performance and reliability.This section explains the product and the components that make itup.What is aDatabase?Loosely defined, a database is simply a collection of structured data.Generally, the data is structured by dividing it into sub-sets ofinformation that share the same characteristics. Some examples of adatabase are:!A telephone bookEach entry in the phone book consists of four characteristics:first name, last name, address, and phone number.!A collection of digital photographsEach picture on your hard disk has two characteristics: a filename, and the data within the file that represents the image.!A list of orchards and the fruit grown by eachEach entry in the orchard list might consist of threecharacteristics: orchard name, address, and date founded. Therelated list of fruits might have five characteristics: the orchardname, the fruit name, its type (McIntosh, Fuji, and so on), itsprice, and a taste rating.In the particular context of this product, a database is a specific, welldefined collection of related information. You can probably find oneor more databases available on your computer or your network. Forexample, you may have a database of information related to vendorsfrom whom you purchase supplies or raw materials, and youprobably also have a database containing customer or memberinformation. Each of these is a distinct, well-defined collection ofrelated information.1-2

Understanding Pervasive.SQLWhat is aDatabaseManagementSystem?As citizens of the computer age, we are surrounded by collections ofinformation—databases—everywhere we go. Unfortunately, all thisdata is of no use to anyone without methods to sort it, search it,analyze it, and keep it up to date.A database management system, or DBMS, is a computer programdesigned to manage large amounts of data and to allow othercomputer programs and people to interact with the data. A DBMScan also be referred to informally as a database engine or simply anengine. A DBMS performs the following tasks:!!!!!Controls access to the data. The DBMS can act as a watchdog toprevent the wrong people from using the data.Structures the data so it can be interpreted by other applications.The DBMS ensures that all the data adheres to the databasestructure, so that other computer programs can work with thedata using common methods.Keeps the data safe and prevents the data from getting garbled orlost. The DBMS facilitates backing up the data in case ofcatastrophic loss, and also accesses the data in a consistentmanner to prevent the data from inadvertent damage.Makes it easy to add new information, find it, update it, and deleteit. The DBMS readily accepts new data and provides tools thatyou can use to locate, update, and remove information as you seefit. It verifies that the data inserted fits within defined attributesfor the database fields.Allows you to analyze relationships among different sets of data.The DBMS stores the data in a way that allows you to examinehow any piece of data relates to any other piece of data.In summary, the DBMS organizes your data, keeps it safe, and helpsyou to use it and understand it.Components of The Pervasive.SQL DBMS consists of a variety of componentsPervasive.SQL designed to help you achieve your data management goals. For moredetailed information about these components and how they interact,please see Pervasive Products and Services.MicroKernel Database EngineThe MicroKernel Database Engine (MKDE) is the high-performanceheart of Pervasive.SQL. The MKDE works directly with the data fileson your computer’s hard disk. When requested, it directly inserts1-3

Introducing Pervasive.SQLnew data, deletes unnecessary data, and ensures the safety andintegrity of the data files at all times, even when people andapplications are working with the data.SQL Relational Database EngineThe SQL Relational Database Engine (SRDE) interacts with theMKDE and the client (described below). It provides many powerfulfeatures including support for Microsoft ODBC, sophisticatedsearch and analysis capability, and security.Client or RequesterIn client/server systems, the client resides on the computerworkstation. It interacts with the client application and across thenetwork with both the MKDE and the SRDE on the server.Pervasive Control CenterThe Pervasive Control Center (PCC) is an easy-to-use, graphical tooldesigned to help you create and manipulate databases and controlyour DBMS. It allows you to access nearly all the functions of theproduct from one place. For a brief tour of PCC, see Chapter 3,“Using the Pervasive Control Center.”UtilitiesA variety of graphical and command-line tools provide support fortesting, configuring, and manipulating the many features andoptions provided by Pervasive.SQL. These tools are covered in-depthin Advanced Operations Guide, but a brief introduction to them isprovided in “Helpful Utilities” on page 1-16.DocumentationPervasive.SQL comes with a printed copy of Getting Started withPervasive.SQL, and with a complete set of online documentation. Formore information about the documentation, see “UsingPervasive.SQL Documentation” on page 1-18.1-4

Key ConceptsKey ConceptsThis section explains some basic concepts of databases in general andsome of the key concepts that distinguish Pervasive.SQL from otherdatabase products.Basic Database Most database management systems in use today share a commonStructures and set of basic structures. This section briefly explains those structures.The descriptions that follow refer to the diagram below:Terms“Phone Book” TableColumn 1Column 2Column 3Column 4Col NamesNameAddressZipPhoneRow 1Fred Black643 Oak12346555-2345Row 2Jane Doe112 Elm12345555-1212Row 3John Doe112 Elm12345555-1212ValueThe most basic element of a database is a value. A value is one pieceof data, one characteristic, for a specific entity. For example, in thediagram, the name “John Doe” or the phone number “555-1212” isa value.Column or FieldThe next element is called a column, or a field. A column representsa characteristic with no specific value. Columns generally havenames that describe the given characteristic. For example, in thetelephone book, Name and Phone are columns. They do not havespecific values unless you look up a particular person. Field issometimes used to refer to the generic characteristic of a specific row,same as cell below. For example, someone might point at a specificbox in the table above and ask, “What is the value of that field?”Row or RecordThe next element is called a row, or a record. A row is a collection ofall the values for one particular instance. For example, one entry in1-5

Introducing Pervasive.SQLthe phone book, complete with name, address, and phone number,is one record or row.CellA cell is a column within a specific record. You can think of it as theintersection of a row and a column. Each cell has a specific value. Forexample, you might tell a co-worker, “The value of the cell located atrow 2, column 3 is ‘12345’.”TableA collection of rows and columns makes up a table. A table is a set ofdata that shares exactly the same structure. Tables generally havenames that describe the contents of the table. For example, the tableabove is called “Phone Book.” With Pervasive.SQL, each table isstored as a separate data file on the hard disk.IndexAn index is an ordered list of all the va

Pervasive.SQL 2000i Pervasive.SQL User's Guide Guide to Using Pervasive.SQL Pervasive Software, Inc. 12365 Riata Trace Parkway Building II Austin, TX 78727 USA