Term
|
Definition
Another term for
Database |
|
|
Term
|
Definition
Eight pages
Page is 8KB
8KB * 8 = 64 KB
All objects are stored here; basic unit in the databases
One object to the 8 pages is a UNIFORM EXTENT
MIXED EXTENT is when objects are too small they just go (many of them) onto one Extent |
|
|
Term
|
Definition
8KB
The basic unit of the DB |
|
|
Term
|
Definition
This is a physical disk drive
It can have several or just one partition |
|
|
Term
|
Definition
|
|
Term
|
Definition
OnLine
Transaction
Processing
gets data into the DB |
|
|
Term
|
Definition
OnLine
Analytical
Processing
focuses on getting info out of the DB |
|
|
Term
|
Definition
default extension of the database file
This is the primary |
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
database files
take up how many databases |
|
Definition
One database per database file and can exceed beyond it |
|
|
Term
What happens when you don't specify transaction log size when you create a new DB |
|
Definition
It is resized to 25% of the size
of your data file request |
|
|
Term
|
Definition
You use this to create a logical filegrouping
of the DB
It's to improve admin on VLDBs
It doesn't improve performance
-if you work with small DBs with RAID5
You separate them into:
data or tables
nonclustered indexes
|
|
|
Term
|
Definition
primary default (where the system files must go and the first data file goes)
user defined
you can add additional filegroups using
ALTER DATABASE |
|
|
Term
Can a filegroup contain:
indexes
tables
text
ntext
image data? |
|
Definition
|
|
Term
Can a file be a member of
more than one filegroup
at a time? |
|
Definition
|
|
Term
What are the components of
RDBMS? |
|
Definition
maintain relationships
among the data
in the DB
ensures data is being stored correctly and follows rules defining the relationships
recovers data in case of failure |
|
|
Term
What does the New DB follow? |
|
Definition
|
|
Term
What must you specify when you create a DB
In SQL Server? |
|
Definition
at least one file to store data
at least one file to hold transaction log |
|
|
Term
Where can you store data files
and log files? |
|
Definition
SAN Storage Area Network
iSCSI-based network
locally attached drive |
|
|
Term
|
Definition
Redundant
Array of
Independent
Disks |
|
|
Term
|
Definition
striping
writes data
across multiple hard disk PARTITIONS
in a
STRIPE SET
best speed but
no fault tolerance |
|
|
Term
|
Definition
mirroring
this is slow because you must write to disk twice |
|
|
Term
|
Definition
this is when you place a separate controller
for each drive in the mirror |
|
|
Term
|
Definition
parity checksums
are written across all disks in the stripe set
However
if more than one disk in the
stripe set fails
you lose all your data |
|
|
Term
|
Definition
mission critical systems
incredible speed and fault tolerance
However
you use more than twice the disk space of RAID 1
MS recomends 5 and 1: 5 for data files and 1 for log files so they can be mirrored |
|
|
Term
|
Definition
2 uses Hamming code to recover from 2 disk drive failures in the array
3 uses a single check per group
4 supports independent reads and writes
These are much faster and are called Hardware Solutions |
|
|
Term
|
Definition
actual database record
8192KB
8060 is for data storage
except for variable length, rows don't span more than one page they stay in one |
|
|
Term
|
Definition
These store
index keys and levels making up the entire index tree
On a single page you can have many entries (unlimited) |
|
|
Term
|
Definition
contains a 16-Byte pointer
to a linked list of text pages
that holds the actual data |
|
|
Term
GAM
Global Allocation Map
pages |
|
Definition
maps the data pages
what's filled and what's available for filling |
|
|
Term
|
Definition
Keeps track as to why an extent (set of 8 pages) exists |
|
|
Term
|
Definition
keeps track of free space on the other pages
up to 8000 pages |
|
|
Term
How does SQL Server manage memory I/O? |
|
Definition
|
|
Term
How does SQL Server manage disks? |
|
Definition
It does so in 64KB chunks |
|
|
Term
|
Definition
since SQL server handles memory in 8KB chunks and disk in 64KB chunks BUT
Microsoft OS Windows write to disk I/O in 4KB Chunks,
this may result
"torn pages" |
|
|
Term
How does data get read or written (in what unit?) |
|
Definition
this occurs in page units
However they are held in (cached) memory until
an extent (8 pages) has been reached
Data cache is divided into 8KB buffers |
|
|
Term
How do you create a database in SQL |
|
Definition
|
|
Term
How do you create reports on a DB |
|
Definition
select the DB
in Management Studio
right click
choose reports |
|
|
Term
|
Definition
stored procedure that addresses configuration |
|
|
Term
|
Definition
this reports the internal DB identifier
Gives detail about your DB |
|
|
Term
|
Definition
system stored procedures
an example of the detail available about your DB |
|
|
Term
|
Definition
this gives you details about your DB |
|
|
Term
|
Definition
stored procedures that gives you info about all databases in your SQL Server |
|
|
Term
|
Definition
under DB's properties and options
this will let you choose the language and whether it is case sensitive |
|
|
Term
|
Definition
log records almost nothing
from last back up to present
used for simple DBs like OLAP |
|
|
Term
Bulk-Logged Recovery Model |
|
Definition
SELECT INTO
BCP
BULK INSERT
only bulk operations may be lost
you set this option just before doing Bulk Insert
You need to do back up just before doing Bulk Insert |
|
|
Term
Default Full Recovery Model |
|
Definition
highest level of protection |
|
|
Term
|
Definition
80 means SQL Server 2000
90 means 2005
100 means 2008 |
|
|
Term
|
Definition
None
Checksum
Torn_Page_Detection |
|
|
Term
|
Definition
Read-Only (true or false)
State:
OFFLINE
NORMAL
EMERGENCY |
|
|
Term
EMERGENCY Database State Settings |
|
Definition
DB becomes read-only
logging is disabled
sysadmin fixer server role has limited access
Used for troubleshooting purposes
Only set by sysadmin fixer server role |
|
|
Term
|
Definition
- SINGLE_USER (one user at a time with a single connection)
restricts access to:
db_owner
db_creator
sysadmin security roles |
|
|