0% found this document useful (0 votes)
86 views2 pages

SQL Server Database Types Explained

This document summarizes the different system databases available in SQL Server. It describes the Master database, which manages the SQL Server instance and contains system objects. It also describes the TempDB database, which stores temporary objects and is reset on restart. Finally, it describes the Model database, which acts as a template for new user databases, and the MSDB database, which manages SQL Server Agent configurations.

Uploaded by

ShivaSahu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
86 views2 pages

SQL Server Database Types Explained

This document summarizes the different system databases available in SQL Server. It describes the Master database, which manages the SQL Server instance and contains system objects. It also describes the TempDB database, which stores temporary objects and is reset on restart. Finally, it describes the Model database, which acts as a template for new user databases, and the MSDB database, which manages SQL Server Agent configurations.

Uploaded by

ShivaSahu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Different System database available:

Master Database:
Master
o Purpose - Core system database to manage the SQL Server instance.
o The Master database is the logical repository for the system objects
residing in the sys schema.
o The first database in the SQL Server startup process.

TempDB :
o Temporary database to store temporary tables, table variables, cursors,
work tables, row versioning, create or rebuild indexes sorted in TempDB,
etc.
o Each time the SQL Server instance is restarted all objects in this database
are destroyed, so permanent objects cannot be created in this database.
o Each time a SQL Server instance is rebooted, the TempDB database is
reset to its original state

Model
o Template database for all user defined databases
o User defined tables, stored procedures, user defined data types, etc can
be created in the Model database and will exist in all future user defined
databases
o The database configurations such as the recovery model for the Model
database are applied to future user defined databases

MSDB
o Primary database to manage the SQL Server Agent configurations
o Provides some of the configurations for the SQL Server Agent service.

Ans 4: 1- tbl_all_constraint( table with Primary Key, Default Constraint, Check
Constraint ), 2- tbl_fk_constraint ( table with Foreign Key).
Ans5 : Union : it keeps performs a DISTINCT on the result set, eliminating any duplicate rows.
UNION ALL does not remove duplicates and it therefore faster than UNION.
Ans6:
ASCII,LTRIM,SOUNDEX,CHAR,NCHAR,SPACE,CHARINDEX,PATINDEX,STR,CONCAT,QUOTEN
AME,
STUFF,DIFFERENCE,REPLACE,SUBSTRING,FORMAT,REPLICATE,UNICODE,LEFT,REVERSE,U
PPER,LEN,RIGHT,LOWER,RTRIM

You might also like