Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/reporting-services/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
Reporting services 如何在SSRS 2008 R2中仅查找失败的用户详细信息?_Reporting Services - Fatal编程技术网

Reporting services 如何在SSRS 2008 R2中仅查找失败的用户详细信息?

Reporting services 如何在SSRS 2008 R2中仅查找失败的用户详细信息?,reporting-services,Reporting Services,我只想查找失败的用户详细信息,但下面的查询提供了重复的记录。我找不到合适的解决办法 要查找失败的作业详细信息,我将使用以下查询: 从executionlog e中选择* 在e.reportid=c.itemid上加入目录c 其中c.name类似于“%reportname%” 和timestart>=“2013-04-15 09:00:00.000” 和状态“rsSuccess” 但是,上面的查询为特定报告提供了重复的值 如何获得独特的细节 注意:我们不能应用distinct或groupby,因

我只想查找失败的用户详细信息,但下面的查询提供了重复的记录。我找不到合适的解决办法

要查找失败的作业详细信息,我将使用以下查询:

从executionlog e中选择*
在e.reportid=c.itemid上加入目录c
其中c.name类似于“%reportname%”
和timestart>=“2013-04-15 09:00:00.000”
和状态“rsSuccess”
但是,上面的查询为特定报告提供了重复的值

如何获得独特的细节

注意:我们不能应用
distinct
groupby
,因为该表包含
ntext
image
数据类型的列

如果您只想要“失败的用户详细信息”,则根本不要选择
ntext
image
列。通过这种方式,您可以正常地执行以下操作:

选择DISTINCT
--参数,
--内容,,
--财产,,
--参数,
InstanceName、ReportID、用户名、请求类型、格式、TimeStart、TimeEnd、,
TimeDataRetrieval、TimeProcessing、TimeRendering、源、状态、字节数、,
[RowCount],ItemID,路径,名称,父ID,类型,中间,SnapshotDataID,
LinkSourceID,描述,隐藏,CreatedByID,CreationDate,ModifiedByID,
ModifiedDate、MimeType、SnapshotLimit、PolicyID、PolicyRoot、ExecutionFlag、,
行刑时间
从执行日志e
在e.reportid=c.itemid上加入目录c
其中c.name类似于“%reportname%”
和timestart>=“2013-04-15 09:00:00.000”
和状态“rsSuccess”
您甚至可以修剪更多的列。请注意,在许多情况下,无论如何


如果您对相应的
ntext
和/或
image
值感兴趣,则始终可以针对上述子查询再次加入
目录。

您好,感谢您的回复,由于图像和ntext数据类型的原因,您无法应用distinct。如果您保持状态“rssuccess”,您将获得重复的。因为除了rssuccess之外,还有许多其他状态,例如rsprocessingaborted、rsdenied、rsdatabaseservererror等。。所以我们应该得到相同参数的副本。对不起,但是你的评论对我来说毫无意义(可能是语言障碍?)。