In SQL Server 2000 and SQL Server version 7.0, every database, including the system databases, has its own set of files and does not share those files with other databases. The msdb database is used by SQL Server Agent for scheduling alerts and jobs, and recording operators. Because tempdb is created every time SQL Server is started, the model database must always exist on a SQL Server system. When a CREATE DATABASE statement is issued, the first part of the database is created by copying in the contents of the model database, then the remainder of the new database is filled with empty pages. The model database is used as the template for all databases created on a system. You can avoid this overhead by using ALTER DATABASE to increase the size of tempdb. If the size defined for tempdb is small, part of your system processing load may be taken up with autogrowing tempdb to the size needed to support your workload each time to restart SQL Server. Unlike other databases, however, it is reset to its initial size each time the database engine is started. Because temporary tables and stored procedures are dropped automatically on disconnect, and no connections are active when the system is shut down, there is never anything in tempdb to be saved from one session of SQL Server to another.īy default, tempdb autogrows as needed while SQL Server is running. tempdb is re-created every time SQL Server is started so the system starts with a clean copy of the database. tempdb is a global resource the temporary tables and stored procedures for all users connected to the system are stored there. It also fills any other temporary storage needs such as work tables generated by SQL Server. Tempdb holds all temporary tables and temporary stored procedures. master records the initialization information for SQL Server always have a recent backup of master available. master is the database that records the existence of all other databases, including the location of the database files. It records all login accounts and all system configuration settings. The master database records all of the system level information for a SQL Server system. Microsoft® SQL Server™ 2000 systems have four system databases: