首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >SQL 2005 : Master、msdb、msdb、tempdb

SQL 2005 : Master、msdb、msdb、tempdb
EN

Stack Overflow用户
提问于 2011-03-04 12:34:36
回答 1查看 884关注 0票数 1

我有一个关于sql系统数据库的问题,那msdb和msdb这些数据库的用途是什么。

提前谢谢。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-03-04 12:40:06

检查MSdn :系统数据库和数据:http://msdn.microsoft.com/en-us/library/aa174522%28v=sql.80%29.aspx

Microsoft®SQL Server™2000系统有四个系统数据库:

代码语言:javascript
复制
* master

  The master database records all of the system level information for a SQL Server system. It records all login accounts and all system configuration settings. master is the database that records the existence of all other databases, including the location of the database files. master records the initialization information for SQL Server; always have a recent backup of master available.
* tempdb

  tempdb holds all temporary tables and temporary stored procedures. It also fills any other temporary storage needs such as work tables generated by SQL Server. tempdb is a global resource; the temporary tables and stored procedures for all users connected to the system are stored there. tempdb is re-created every time SQL Server is started so the system starts with a clean copy of the database. 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.

  By default, tempdb autogrows as needed while SQL Server is running. Unlike other databases, however, it is reset to its initial size each time the database engine is started. 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. You can avoid this overhead by using ALTER DATABASE to increase the size of tempdb.
* model

  The model database is used as the template for all databases created on a 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. Because tempdb is created every time SQL Server is started, the model database must always exist on a SQL Server system.
* msdb

  The msdb database is used by SQL Server Agent for scheduling alerts and jobs, and recording operators.
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/5189703

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档