官术网_书友最值得收藏!

Database tempdb

Even if database tempdb seems to be a regular database like many others, it plays a very special role in every SQL Server instance. This database is used by SQL Server itself as well as by developers to save temporary data such as table variables or static cursors. As this database is intended for a short lifespan (temporary data only, which can be stored during execution of stored procedure or until session is disconnected), SQL Server clears this database by truncating all data from it or by dropping and recreating this database every time when it's started.

As the tempdb database will never contain durable data, it has some special internal behavior and it's the reason why accessing data in this database is several times faster than accessing durable data in other databases. If this database is corrupted, restart SQL Server.

主站蜘蛛池模板: 黄陵县| 西乡县| 临沧市| 吉水县| 尼玛县| 滦平县| 通化市| 郎溪县| 顺昌县| 旌德县| 锦州市| 大庆市| 黔西县| 杭州市| 贵溪市| 黄骅市| 璧山县| 三门县| 怀仁县| 秀山| 泾阳县| 新兴县| 定兴县| 化州市| 富阳市| 荥阳市| 甘谷县| 中卫市| 蒙阴县| 永登县| 平昌县| 宁晋县| 平和县| 江安县| 顺义区| 无为县| 新昌县| 揭东县| 永寿县| 左贡县| 丰原市|