简体   繁体   English

SQL Reporting Services 2005-基于用户输入日期的日期字段?

[英]SQL Reporting Services 2005 - Date field based on a user entered date?

I have a report in report services 2005 that has two date fields. 我在报表服务2005中有一个报表,该报表具有两个日期字段。 The problem is that if users run this for a large section of time it uses too much resources on our server. 问题是,如果用户长时间运行此服务器,则会占用我们服务器上过多的资源。

It is possible to only allow the end user to enter the start date and then the end date be auto populated/derived from this field (for example they enter the 1st of a month and this automatically change the end date to the last of a month.) 可能只允许最终用户输入开始日期,然后从该字段自动填充/得出结束日期(例如,他们输入一个月的第一天,这会自动将结束日期更改为一个月的最后一天) )

Yes you can do this. 是的,您可以这样做。 Hide your end date parameter, edit the expression for the default value and do a dateadd function using the startdate parameter. 隐藏结束日期参数,编辑表达式的默认值,并使用startdate参数执行dateadd函数。

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

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