简体   繁体   中英

SSRs parameters is empty report not running

I am using reportbuilder to build a report, using a subreport inside report. For different dates I am some ad_site is empty, data from query is not coming. data set query is

declare @count int

select count(distinct(computer_name)) as machine_count
  , ad_site as ad_site,ad_zone as ad_zone
from SCCM_PCrefreshdata
where ad_site is not null and snapshotdate like @startdate
group by ad_site,ad_zone

If I am entering date '2019-03-01' there is no data in table and same I am using ad_site for parameter in subreport

在此输入图像描述

I HAVE kept parameter as allow nulls

在此输入图像描述

Even after that if I run report and enter start date, for which data is not existing it gives following error

在此输入图像描述

如果您希望保留参数以允许为空,则您的数据集查询也应引用此概念,即:其中ad_site为null且快照日期为@startdate

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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