Sybase Technical Library - Product Manuals Home
[Search Forms] [Previous Section with Hits] [Next Section with Hits] [Clear Search] Expand Search

Chapter 3: Using SQL Server [Table of Contents]

Introducing SQL Server for Windows NT

[-] Glossary

Glossary

APIs

Application Program Interfaces, subroutines that allow client applications to interface with SQL Server. Also known as libraries.

application-building tool

See development tool.

argument

A value supplied to a function or procedure that is required to evaluate the function.

auditing

Recording security-related system activity that can be used to detect penetration of the system and misuse of system resources.

backup

A copy of a database or transaction log, used to recover from a media failure.

business rules

The rules to which the data in a database must conform.

cache

See data cache.

character set

A set of specific (usually standardized) characters with an encoding scheme that uniquely defines each character. ASCII and ISO 8859-1 (Latin 1) are two common character sets.

client

The user's side of a client/server arrangement; can refer to the software making the calls to the server or to the machine running the client software.

client/server architecture

A computer system architecture in which clients request a service and a server provides that service. Each machine can then specialize in the tasks it is best suited for.

clustered index

An index in which the physical order and the logical (indexed) order is the same. A table can have only one clustered index.

column

A data value that describes one characteristic of an entity. Also called a field.

command

An instruction that specifies an operation to be performed by the computer. Each command or SQL statement begins with a keyword, such as insert, that names the basic operation performed.

constraint

A rule applied to a database object that ensures that all entries in the database object to which it applies satisfy a particular condition. For example, a column may have a constraint requiring that all values in the column be unique.

control-of-flow language

Transact-SQL's programming-like constructs (such as if, else, while, goto label) that control the flow of execution of Transact SQL statements.

data cache

Also referred to as named cache or cache. A cache is an area of memory within SQL Server that contains the in-memory images of database pages and the data structures required to manage the pages.

data definition

The process of setting up databases and creating database objects such as tables, indexes, rules, defaults, procedures, triggers, and views.

data dictionary

The system tables that contain descriptions of the database objects and how they are structured.

data integrity

The correctness and completeness of data within a database.

data modification

Adding, deleting, or changing information in the database with the insert, delete, and update commands.

data retrieval

Requesting data from the database and receiving the results. Also called a query.

database

A set of related data tables and other database objects that are organized and presented to serve a specific purpose.

database administration

The tasks involved in maintaining, designing, implementing changes to, tuning, and expanding a database. See also system administration.

database device

See device.

database object

One of the components of a database: table, view, index, stored procedure, trigger, column, default, or rule.

Database Owner

The user who creates a database. A Database Owner has control over all the database objects in that database. The login name for the Database Owner is ''dbo''.

datatype

Specifies what kind of information each column will hold, and how the data will be stored. Datatypes include char, int, money, and so on. Users can construct their own datatypes based on the SQL Server system datatypes.

dbo

In a user's own database, SQL Server recognizes the user as "dbo." A Database Owner logs into SQL Server using his or her assigned login name and password.

decision support

Data used to help managers make business decisions. Usually involves a lot of queries as opposed to updates.

default

The option chosen by the system when no other option is specified.

default database

The database that a user connects with when he or she logs in.

development tool

Software such as PowerBuilder that helps you build specialized GUI applications for accessing SQL Server databases.

device

Any piece of disk (such as a partition) or a file in the file system that you specially prepare and that is used to store databases and their objects.

device I/O

Reads or writes to or from a database device.

disk initialization

The process of preparing a database device or file for SQL Server use. Once the device is initialized, it can be used for storing databases and database objects. The command used to initialize a database device is disk init.

DLLs

Dynamic Link Libraries, software used by Microsoft Windows and IBM OS/2 to provide services to applications.

dump

To make a backup of an entire database, including both the data and the transaction log, which you accomplish with the dump database command. Also, the data that results from this action.

entity

The basic unit described by tables in a relational database. Identifying them is the first step in the logical design.

error handling

Techniques available to Transact-SQL programmers for basing code on and displaying errors and error messages.

error log

A file that stores severe error messages and results about the startup and recovery of databases on a server being started up.

error message

A message that SQL Server issues, usually to the user's terminal, when it detects an error condition.

field

A data value that describes one characteristic of an entity. Also called a column.

foreign key

A key column in a table that logically depends on a primary key column in another table. Also, a column (or combination of columns) whose values are required to match a primary key in some other table.

global variable

System-defined variables that SQL Server updates on an ongoing basis. For example, @@error contains the last error number generated by the system.

group

Uniquely named set of users assigned a set of permissions for the objects and operations within a database.

guest

Default user in the model database that allows any user with valid SQL Server login can use that database, with limited privileges.

index

A database object that consists of key values from the data tables, and pointers to the pages that contain those values. Indexes speed up access to data rows by pointing SQL Server to the location of a table column's data on disk.

integrity rules

Rules that describe how data will be kept accurate and consistent in the relational model.

join

A basic operation in a relational system that links the rows in two or more tables by comparing the values in specified columns.

key

A field used to identify a record, often used as the index field for a table.

key value

Any value that is indexed.

keyword

A word or phrase that is reserved for exclusive use by Transact-SQL. Also known as a reserved word.

libraries

See APIs.

load

To restore data stored in a backup created during a dump.

local variables

User-defined variables defined with a declare statement.

locking

The process of restricting access to resources in a multi-user environment to maintain security and prevent concurrent access problems. SQL Server automatically applies locks to tables or pages.

logical design

Defining the tables, relations, and keys of a relational database. Distinguished from physical design.

logical key

The primary, foreign, or common key definitions in a database design that define the relationship between tables in the database. Logical keys are not necessarily the same as the physical keys (the keys used to create indexes) on the table.

logical read

The process of accessing a data or index page already in memory to satisfy a query. Compare to physical read.

login

The name a user uses to log onto SQL Server. A login is valid if SQL Server has an entry for that user in the system table syslogins.

Master Database

Controls the user databases and the operation of SQL Server for Windows NT as a whole. Known as master, it keeps track of such things as user accounts, ongoing processes, and system error messages.

master table

A table that contains data on which data in another table logically depends. The detail table typically has a foreign key that joins to the primary key of the master table.

media failure

A media failure occurs when the information on a medium (typically a hard disk drive) becomes unusable.

message number

The number that uniquely identifies an error message.

model database

A template for new user databases. The installation process creates model when SQL Server is installed. Each time the create database command is issued, SQL Server makes a copy of model and extends it to the size requested, if necessary.

nested queries

select statements that contain one or more subqueries.

nonclustered index

An index that stores key values and pointers to data.

normalization rules

The standard rules of database design in a relational database management system.

null

Having no explicitly assigned value. NULL is not equivalent to zero, or to blank. A value of NULL is not considered to be greater than, less than, or equivalent to any other value, including another value of NULL.

object permissions

Permissions that regulate the use of certain commands (data modification commands, plus select, truncate table and execute) to specific tables, views or columns.

objects

See database object.

ODBC

The Open Database Connectivity (ODBC) interface, defined by Microsoft Corporation, a standard interface to database management systems in the Windows and Windows NT environments.

operating system

A group of programs that translates your commands to the computer, so that you can perform such tasks as creating files, running programs, and printing documents.

operating system file

Collection of data named and recognized by the operating system. SQL Server data is not stored in so-called operating system files but can be exported to operating system files using bulk copy.

optimizer

SQL Server code that analyzes queries and database objects and selects the appropriate query plan. It estimates the cost of each permutation of table accesses in terms of how much processing and disk writing time it will take.

page

A 2K block of data that is the minimal unit that can be read from or written to disk.

parameter

An argument to a stored procedure.

performance

The speed with which SQL Server processes queries and returns results. Performance is affected by several factors.

permission

The authority to perform certain actions on certain database objects or to run certain commands.

physical design

Mapping the logical design to the Transact-SQL data definition commands that actually create the databases on the server.

physical key

A column name, or set of column names, used in a create index statement to define an index on a table. Physical keys on a table are not necessarily the same as the logical keys.

physical read

A disk I/O to access a data, index, or log page. SQL Server for Windows NT estimates physical reads and logical reads when optimizing queries. See logical read.

primary key

The column or columns whose values uniquely identify a row in a table.

privilege

The authority to perform certain actions on certain database objects or to run certain commands. Synonymous with permission.

projection

One of the basic query operations in a relational system. A projection is a subset of the columns in a table.

query

1. A request for the retrieval of data with a select statement.

2. Any SQL statement that manipulates data.

query plan

The ordered set of steps required to carry out a query, complete with the access methods chosen for each table.

recovery

The process of rebuilding one or more databases from database dumps and log dumps.

referential integrity

The rules governing data consistency, specifically the relationships among the primary keys and foreign keys of different tables. SQL Server addresses referential integrity with user-defined triggers and with referential integrity constraints.

relational database

A collection of tables that stored interrelated data.

relational database management system

RDBMS, a system for storing and retrieving data from two-dimensional tables in which SQL use is standard.

relationship

Describes how entities are related. A basic step in logical design of a database is to identify the relationships between the entities you have identified.

remote procedure calls

A stored procedure executed on a different SQL Server from the server the user is logged into.

replication

For databases, a process by which the changes to data in one database (including creation, updating, and deletion of records) are also applied to the corresponding records in other database.

restriction

A subset of the rows in a table. Also called a selection, it is one of the basic query operations in a relational system.

return status

A value that indicates that the procedure completed successfully or indicates the reason for failure.

roles

Provide individual accountability for users performing system administration and security-related tasks in SQL Server. The System Administrator, System Security Officer, and Operator roles can be granted to individual server login accounts.

rollback transaction

A Transact-SQL statement used with a user-defined transaction (before a commit transaction has been received) that cancels the transaction and undoes any changes that were made to the database.

row

A set of related columns that describes a specific entity. Also called a record.

rule

A specification that controls what data may be entered in a particular column, or in a column of a particular user-defined datatype.

sa

The login name for the Sybase System Administrator.

savepoint

A marker that the user puts inside a user-defined transaction. The user can later use the rollback transaction command with the savepoint name to cancel any commands up to the savepoint, or commit transaction to actually complete the commands.

selection

A subset of the rows in a table. Also called a restriction, it is one of the basic query operations in a relational system.

server user ID

The ID number by which a user is known to SQL Server.

sort order

Used by SQL Server to determine the order in which to sort character data.

SQL

Structured Query Language (SQL), the language used to communicate with a relational database and that is the subject of standards set by several standards bodies.

SQL Server

The server in Sybase's client/server architecture. SQL Server manages multiple databases and multiple users, keeps track of the actual location of data on disks, maintains mapping of logical data description to physical data storage, and maintains data and procedure caches in memory.

statement

A statement begins with a keyword that names the basic operation or command to be performed.

stored procedure

A collection of SQL statements and optional control-of-flow statements stored under a name. SQL Server-supplied stored procedures are called system procedures.

subquery

A select statement that is nested inside another select, insert, update or delete statement, or inside another subquery.

system administration

An assortment of tasks including but not limited to managing SQL Server's physical storage, creating and backing up databases, creating user accounts, granting permissions, and running diagnostic and repair functions. See also database administration.

System Administrator

A user authorized to handle SQL Server system administration, including creating user accounts, assigning permissions, and creating new databases.

system databases

The databases on a newly installed SQL Server: master, which controls user databases and the operation of the SQL Server; tempdb, used for temporary tables; model, used as a template to create new user databases; and sybsystemprocs, which stores the system procedures. Distinguished from user databases.

system procedures

Stored procedures that SQL Server supplies for use in system administration. These procedures are provided as shortcuts for retrieving information from the system tables, or mechanisms for accomplishing database administration and other tasks that involve updating system tables.

system table

One of the data dictionary tables. The system tables keep track of information about the SQL Server for Windows NT as a whole and about each user database. The master database contains some system tables that are not in user databases.

table

A collection of rows (records) that have associated columns (fields). The logical equivalent of a database file.

temporary database

The database in SQL Server called tempdb that provides a storage area for temporary tables and other temporary working storage needs.

throughput

The volume of work completed in a given time period. It is usually measured in transactions per second (TPS).

Transact-SQL

The SQL dialect used in Sybase SQL Server.

transaction

A grouping of a series of Transact-SQL statements so that they are treated as a single unit of work. Either all statements in the group are executed or no statements are executed. The tables queried during the transaction are locked until the transaction is complete.

transaction log

A system table (syslogs) in which all changes to the database are recorded.

trigger

A special form of stored procedure that goes into effect when a user gives a change command such as insert, delete, or update to a specified table or column. Triggers are often used to enforce referential integrity.

unique indexes

Indexes that do not permit any two rows in the specified columns to have the same value. SQL Server checks for duplicate values when you create the index (if data already exists) and each time data is added.

update

An addition, deletion, or change to data, involving the insert, delete, truncate table, or update statements.

user database

Database created by a user, distinguished from system databases.

user-defined datatype

A definition of the type of data a column can contain that is created by the user. These datatypes are defined in terms of the existing system datatypes. Rules and defaults can be bound to user-defined datatypes (but not to system datatypes).

user ID

The ID number by which a user is known in a specific database. Distinct from server user ID.

variable

An entity that is assigned a value. SQL Server has two kinds of variables, called local variables and global variables.

view

A named select statement that is stored in the database as an object. It allows users to "view" a subset of rows or columns from one or more tables.


Chapter 3: Using SQL Server [Table of Contents]