Professional Documents
Culture Documents
In This Presentation..
What is SQL Server Database? What does SQL Server Database contain? Database Architecture Files and Filegroups Understanding Log Files Database Design Considerations System Databases Resource Database Types of SQL Server Databases Database Objects
Database in SQL Server is made up of a collection of tables. These tables contain tables and other objects that are defined to support activities performed with the data. At physical level, the Database is can be seen as a collection of simple files. Each database can store either interrelated or unrelated data.
database consists of :
Data Different Objects useful for managing the Data
Data
is physically stored in specific objects called : TABLES There are tens of Database Objects that are needed for easy retrieval, working with and securing the data in a database.
Database Architecture
At minimum, every database has two operating system files: a data file and a log file. The Data File contains data and other objects and the Log files contain the information that is required to recover all transactions in the database. There are THREE different types of Files:
Primary Data Files (*.mdf) Secondary Data Files (*.ndf) Transaction Log File(s) (*.ldf)
Data files can be grouped together in FILEGROUPS for allocation and administration purposes. A Filegroup can contain any number of files inside it.
System Databases
When we install an instance of SQL Server 2005, following System databases are created by default:
msdb : Used by SQL Server Agent for scheduling alerts and jobs. tempdb : Workspace for holding temporary objects or
Resource Database
In addition to the FOUR system databases discussed previously, a separate system database called Resource database is also installed. But this database cannot be seen in SSMS for security reasons. Resource database is a read-only database that contains system objects that are included with SQL Server 2005. System objects are physically persisted in the Resource database.
Databases: Online Transaction Processing (OLTP) Databases are optimal for managing changing concurrent data. OLAP Databases: Online Analytical Processing (OLAP) Databases are used for organizing lots of stable data for easy analysis and retrieval.
Database Objects - I
Database Tables Views Constraints Rules Defaults Indexes Views Triggers Stored Procedures User Defined Functions
Database Objects - II
Cursors Synonyms Partitions Catalogs Logins Users Roles Files File Groups Certificates, etc