System Databases


SQL Server includes the following system databases:-

  • Master
  • Model
  • Msdb
  • Tempdb
  • Resource Database

Master:
The master database contains all of the system level information like logins, linked servers, endpoints, and other system-wide configuration settings. 
The master database is also stores information about the other databases on this instance and the location of their files. 
If the master database is not present, SQL Server cannot start via Configuration Manager.


model:

The model database is used as a template whenever a new user database is created. 

You can change most database properties like, collation, recovery model, create users, stored procedures, tables, views, etc – whatever changes made to model database are do applied to any new databases.


msdb:

The msdb system database is used by the SQL Server Agent, database mail, Service Broker, etc. 
One important item is that msdb holds backup history. 

Important Tables: 
msdb.dbo.backupset
determine when each database and filegroup was last backed up. 

Resource:
The resource database is a hidden system database.
Database id of resource database is 32767.
In resource database system objects are stored.  The data file location of resource database is C:\Program Files\Microsoft SQL Server\MSSQLXX.MSSQLSERVER\MSSQL\Binn. 

tempdb:

Is used for holding temporary objects, query processing and sorting purposes.
Tempdb is re-created every time the SQL Server service is started. 
By default tempdb starts at 8MB in size.
Any object created starting with #table will be stored into tempdb database.
It is best practice to have trace flags enabled for autogrow of tempdb and upto 8 tempdb log files to speed up execution of queries that uses temporary objects.


Ref:
Name

Azure Backup Database Clustering Crash Dumps DBCC Deadlock Link Server Log Shipping Maintenance Migration Mirroring Monitoring Performance Tuning Permissions Post Installations Prerequisites Replication Restore Database SQL Installations SQL on Linux SQL Uninstallations SSIS T-SQL Windows Server
false
ltr
item
hybriddba.blogspot.com: System Databases
System Databases
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnS6YpWjeQj2WXjPHJsi1UwjYupeYw62Ca6Y3HwvfibOvRXzafPKTSbZa00pMLGVYPHP_2-mMlbNlINZ_cAQGqLJ98dqiKxOAzqOFVwHl6rtGBhx3bzgfovTxQphyymV8cfD2H8LH2ixYY/s1600/1579263593465604-0.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnS6YpWjeQj2WXjPHJsi1UwjYupeYw62Ca6Y3HwvfibOvRXzafPKTSbZa00pMLGVYPHP_2-mMlbNlINZ_cAQGqLJ98dqiKxOAzqOFVwHl6rtGBhx3bzgfovTxQphyymV8cfD2H8LH2ixYY/s72-c/1579263593465604-0.png
hybriddba.blogspot.com
https://hybriddba.blogspot.com/2018/05/system-databases.html
https://hybriddba.blogspot.com/
https://hybriddba.blogspot.com/
https://hybriddba.blogspot.com/2018/05/system-databases.html
true
7679493960263860249
UTF-8
Not found any posts Not found any related posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU Tag ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Contents See also related Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy