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

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.

主站蜘蛛池模板: 临江市| 香港| 颍上县| 黑龙江省| 巫溪县| 五指山市| 迭部县| 太保市| 疏附县| 朔州市| 滕州市| 台湾省| 常熟市| 辽阳县| 威海市| 清丰县| 云安县| 六枝特区| 北安市| 佛学| 历史| 甘孜| 龙胜| 包头市| 临潭县| 嫩江县| 金秀| 元朗区| 光泽县| 孟连| 衡南县| 榆林市| 莱州市| 泰州市| 仪陇县| 荃湾区| 隆德县| 修武县| 三明市| 读书| 得荣县|