Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql SSRS执行日志目录中没有记录_Sql_Sql Server_Reporting Services - Fatal编程技术网

Sql SSRS执行日志目录中没有记录

Sql SSRS执行日志目录中没有记录,sql,sql-server,reporting-services,Sql,Sql Server,Reporting Services,我试图分析Sql Server Reporting Services实例中的报表使用情况 这很好: 选择c.名称、el.用户名、el.TimeStart 来自ExecutionLog el EL.reportid=c.itemid上的内部联接目录c 但我后来意识到ExecutionLog中有几条记录在目录中没有条目: 选择c.名称、el.用户名、el.TimeStart 来自ExecutionLog el EL.reportid=c.itemid上的左联接目录c 其中c.Path为NULL 我认

我试图分析Sql Server Reporting Services实例中的报表使用情况

这很好:

选择c.名称、el.用户名、el.TimeStart

来自ExecutionLog el

EL.reportid=c.itemid上的内部联接目录c

但我后来意识到ExecutionLog中有几条记录在目录中没有条目:

选择c.名称、el.用户名、el.TimeStart

来自ExecutionLog el

EL.reportid=c.itemid上的左联接目录c

其中c.Path为NULL

我认为这是由于报告被更新/删除。是否仍要保留目录项。
我可以创建一个夜间作业来保存目录信息,但这似乎有点过分了

该历史数据的默认保留期是60天

您需要将ExecutionLogDaysKept属性设置为-1,以便ExecutionLog数据不会过期


您可以在此处阅读并了解有关EnableExecutionLogging和ExecutionLogDaysKept主题的更多信息:

不幸的是,您必须创建一个辅助目录表,并将其从原始的Use INSERT更新到。。。当不存在时,报告可以被删除,正如你提到的OK,那很好,只是不想继续进行,如果有一个侵入性较小的选项。谢谢