0

我在运行报告时收到错误 - “报告处理期间发生错误。(rsProcessingAborted)”

这是我的查询:

SELECT COUNT(I.Id)   AS Count_Id
      , U.FirstName  AS AffectedUser
  FROM IncidentDimvw
       JOIN (s) ...
 WHERE  WIAUF.DeletedDate IS NULL
   AND DSD.LanguageCode = 'ENU'
   AND (I.CreatedDate BETWEEN (@StartDate) AND (@EndDate))
   AND IC.IncidentClassificationValue = (@Classification)
 GROUP BY DSD.DisplayName, U.FirstName
HAVING COUNT(I.Id) = (@CountId)

当我在过滤器中选择全部时,它会返回以下错误。不知道如何进一步解决此错误。

Incorrect syntax near ','.
 ----------------------------
 Query execution failed for dataset 'AffectedUser'. (rsErrorExecutingCommand)
 ----------------------------
 An error has occurred during report processing. (rsProcessingAborted)

请给我一个更好的解决方案。

4

2 回答 2

0

问题已解决。实际上问题出在我的查询中。

WHERE Fieldname IN (@Parametername)

这是选择多个值的正确查询。

于 2013-05-28T04:16:47.207 回答
0

我遇到了同样的问题,现在已经解决了。使用 WHERE Column_name In(@parameter) 而不是 WHERE Column_name =(@parameter)

于 2015-11-04T12:40:50.623 回答