sql - ReportServer 和 ReportServerTempDB 的使用

标签 sql sql-server-2008 reporting-services

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

  • 报表服务器
  • ReportServerTempDB

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

最佳答案

阅读 report server database 上的文档

数据库是一起创建并按名称绑定(bind)的。默认情况下,数据库名称分别为 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.

关于sql - ReportServer 和 ReportServerTempDB 的使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27963931/

相关文章:

sql - 插入大于 2000 或 4000 字节的 BLOB 测试字符串

mysql - MySQL 中何时使用单引号、双引号和反引号

database - 在sql中使用select into语句

sql-server - 在 SQL Server 中生成 **bearer** CREATE TABLE 和 CREATE PROC 语句

sql - 增加 SQL Server 中的 NVARCHAR 列大小会导致索引重建吗?

sql-server - 将SSRS中的多个值参数传递给存储过程

reporting-services - SSRS Report Builder 3.0 排名/自动递增

mysql - 生成级数序列,显示得分最高的 n 个候选者和得分第二高的 n+5 个候选者,依此类推

sql - 将订阅中的 Reporting Services 参数值设置为当前日期

mysql - 删除主键也删除外键