Master Database
Master Database
SQL Server Database Administrator needs to have a sound knowledge of System Databases in
SQL Server. System databases are an integral part of the SQL Server product as it depends on
the System Databases to function. Having a good knowledge of System Databases will help the
Database Administrator to perform day-to-day tasks effectively.
Master Database
Model Database
MSDB Database
Resource Database
Tempdb Database
Master Database
Every instance of SQL Server will have an independent Master database; as it captures
instance level configuration information.
The information which is captured in the Master database includes SQL Server instance
level configurations, linked server configurations, SQL Server Logins, Service Broker
Endpoints, System Level Stored Procedures, and System level Functions etc.
The system and user databases related information such as name and location for user and
system database are captured in Master database.
If master database is corrupted or if it is not available then the SQL Server Service will
not start.
The Master database basically consists of two physical files, namely master.mdf (data
file) and mastlog.ldf (log file).
Model Database
The Model database is basically used as a template when creating databases in SQL
Server.
Basically SQL Server takes a copy of Model database whenever a user tries to create a
new database in SQL Server.
This also means that if a user creates any tables, stored procedures, user defined data
types or user defined functions within a Model database; then those objects will be
available in every newly created database on that particular instance of SQL Server.
The Model database basically consists of two physical files namely Model.mdf (data file)
and ModelLog.ldf (log file).
MSDB Database
MSDB also stores information related to configuration of Service Broker, Log Shipping,
database backups and restore information, Maintenance Plan Configuration,
Configuration of Database Mail, Policy Bases Information of SQL Server 2008 etc.
The MSDB database basically consists of two physical files namely MSDBData.mdf
(data file) and MSDBLog.ldf (log file).
If the MSDB database is corrupted or damaged then scheduling information used by SQL
Server Agent will be lost. This will result in the failure of all scheduled activities.
Tempdb Database
This database stores all the temporary tables and the temporary results generated by
group by, order by, distinct clause etc.
Resource Database
The Resource database is a read-only database that contains all the system objects that are
included with SQL Server.
The Resource database does not contain user data or user metadata.
The Resource database makes upgrading to a new version of SQL Server an easier and
faster procedure.
What is a Warehouse?
In other words the data warehouse contains the raw material for managements decision
support system.
A data warehousing system can perform advanced analysis of operational data without
impacting operational systems.
The main emphasis for OLTP systems is put on very fast query processing, maintaining
data integrity and an effectiveness measured by number of transactions per second.
OLAP
OLAP applications are widely used by Data Mining techniques. In OLAP database there is
aggregated, historical data, stored in multi-dimensional schemas (usually star schema).
OLTP System OLAP System
Online Transaction Processing Online Analytical Processing
(Operational System) (Data Warehouse)