What are the System databases and it uses in SQL Server?

System data bases are defined by Microsoft and required for SQL server to function. These data bases include the Master, Model, MSDB, Temp DB, Resource, and Distribution databases, Which are utilized in replication, as well as the ReportServer and ReportServerTempDB databases for reporting services.

USES are:

1. Master database-

  • PURPOSE; stores metadata for  the SQL Server instance, including system configuration settings, login accounts, and database information.
  • SIGNIFICANCE; The master database is essential for SQL Server to start  and function; without it, the server wont operate. 
  • CONTENT; Contains information about linked servers, TCP endpoints, and master keys.

2. Model database-

  • PURPOSE; serves as the template for all new databases created  on the SQL server instance.
  • SIGNIFICANCE; configuring the model database  efficiently can help ensure consistent settings across newly created database.
  • CONTENT; contains default configurations  and objects that will will be present in any new database.

3. MSDB Database-

  • PURPOSE; Used by SQL server agent for  scheduling alerts and jobs, and stores information related to backups, database mail, and service broker.
  • SIGNIFICANCE; msdb is vital for managing scheduled tasks, alerts and backup/ restore operations.
  • CONTENT; Contains data on SQL Server agent jobs, backup and restore history, maintenance plans, and other system-related operations.

4.Tempdb Database-

  • PURPOSE; Stores temporary user objects like global and temporary tables, temporary stored procedures, table variables, cursors, and tables returned in table-valued functions.
  • SIGNIFICANCE; tempdb is used  for internal SQL server operations, including sorting, and is automatically recreated on server startup.
  •  CONTENT; Stores temporary tables ( Both local and global), table variables, temporary stored procedures, cursors, and other work tables.

























Comments

Popular posts from this blog

SQL Server Service Account Password Rotation (Including SPN Updates and AAG Handling)

How to use Azure Automatic performance tuning ?

How to Upgrade SQL Server from 2014 to 2022, Apply the Latest Patches Post-Upgrade, and Install the Latest SSMS Tool?