Professional Documents
Culture Documents
Management System
Core Concepts
Lecture 1
Database Management System: CORE
Concepts
Integrity
Performance DATABASE
Reliability
APPLICATION 1
APPLICATION 2 DBMS
DATABASE
APPLICATION …N
Centralized Database
• Used by single central processor or multiple
processors in client/server network
Distributed Database
• Database stored in more than one physical
location
• Partitioned database
• Duplicated database
INTEGRATION
HOSTED SOLUTION
ADVANCED FEATURES
db db
db db db db db
INSTANCES SECURITY
STORAGE AVAILABILITY
Stability
• If an instance goes down, everything goes down.
Security
• Each instance has its own instance-wide security.
Performance
• Control how many resources used by each instance.
Configuration and Compliance
• Each instance can be configured independently from
one another.
• WINDOWS Authentication
• Windows Accounts based on active directory
• MIXED Mode
• Windows accounts
• SQL Login accounts
LOCAL System
DOMAIN Account
Recommended to use separate accounts
for each services:
▪ Database Engine
▪ SQL Server Agents
▪ Analysis Services
▪ Reporting Services
Existing database?
Don’t just import: re-architect
Existing process?
Physical assets: order forms, filing cabinets,
people
Creating Database
Database files
• File groups, Size, location
Database option
• Automatic, Cursor, Miscellaneous, State, etc.
• Compatibility level
• Recovery Model
• Attributes (fields/columns)
• Data types
• Primary Key
• Default value
• Check Constraint
• Unique Keys
• Computed Column
• character / string data types
Exact Numbers
• int - /+ 2 billion
• smallint - 32,768 to + 32,767
• tinyint - 0 to 255
• bigint - /+ 2^63
• money - /+ 922,337,203,685,477.5808
• smallmoney - /+ 214,748.3648
• decimal / numeric - fixed precision and scale (p,s)
• ▪ Ex: decimal (9,2) -> max value of: 9999999.99
Approximate Numbers
• float(n) / real
date
time
datetime
datetime2
datetimeoffset
smalldatetime
binary
varbinary
bit
xml
uniqueidentifier
user defined
geometry
geography
Thank you!!!