ReportServer 和 ReportServerTempDB 的使用

Use of ReportServer and ReportServerTempDB

我的机器上安装了 SQL Server 2008 以及 Reporting Services 配置管理器。当我连接到 SQL 服务器时,我发现那里已经有两个数据库。

我知道ReportServer是用来存放报表、数据源、快照、订阅等的,但是ReportServerTempDB是干什么用的呢?为什么创建?有必要(供我们使用)吗?

阅读 report server database

上的文档

数据库一起创建并按名称绑定。默认情况下,数据库名称分别为 reportserverreportservertempdb

Report Server Temporary Database

Each report server database uses a related temporary database to store session and execution data, cached reports, and work tables that are generated by the report server. Reporting Services does not re-create the temporary database if it is missing, nor does it repair missing or modified tables. Although the temporary database does not contain persistent data, you should back up a copy of the database anyway so that you can avoid having to re-create it as part of a failure recovery operation. If you back up the temporary database and subsequently restore it, you should delete the contents. Generally, it is safe to delete the contents of the temporary database at any time. However, you must restart the Report Server Windows service after you delete the contents. If you delete the temporary database, you can create a new database, and then run the Catalogtempdb.sql script to add the table structure. The temporary database must have the same root name as the primary report server database.