我的计算机上安装了 SQL Server 2008 以及 Reporting Services 配置管理器。当我连接到 SQL Server 时,我发现那里已经有两个数据库。
- 报表服务器
- ReportServerTempDB
我知道ReportServer
是用来存储报表、数据源、快照、订阅等的。但是ReportServerTempDB
有什么用呢?它为何被创建?这有必要(供我们使用)吗?
最佳答案
阅读 report server database 上的文档
数据库是一起创建并按名称绑定(bind)的。默认情况下,数据库名称分别为 reportserver
和 reportservertempdb
。
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.
关于sql - ReportServer 和 ReportServerTempDB 的使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27963931/