简体   繁体   English

SSRS-突然,报告仅显示“无可用数据”

[英]SSRS - Suddenly the report only shows “No Data Available”

To get the data for my report I use a stored procedure. 为了获取报告的数据,我使用了存储过程。

One of the SP parameters is called "date" and was unused until yesterday, when I added a report parameter called "date" which passes a date value to the SP. SP参数之一称为“日期”,直到昨天才使用,直到我添加了一个称为“日期”的报告参数,该参数将日期值传递给SP。

But after that the chart in my report only showed the message "No data available." 但是之后,我报告中的图表仅显示消息“无可用数据”。 So I set the report parameter "date" back to NULL so the SP ignores the "date" parameter (like it was before). 因此,我将报表参数“ date”设置回NULL,因此SP会忽略“ date”参数(就像以前一样)。 But the chart still shows "No data available". 但是图表仍然显示“无可用数据”。

When I execute the SP (with and without "date" parameter) the SP delievers data. 当我执行SP(带有和不带有“ date”参数)时,SP推导器数据。

I have no idea, why the report doesn't show the data... 我不知道为什么报表不显示数据...

It sounds like the SSRS interface is not passing the DATE value in the format your SP is expecting. 听起来SSRS界面未按SP期望的格式传递DATE值。 I would use SQL Profiler to find the exact parameter format which SSRS is passing. 我将使用SQL Profiler查找SSRS传递的确切参数格式。 From there, you can edit the SP or report as needed. 从那里,您可以根据需要编辑SP或报告。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM