Solved

SSRS Subscription - Only today's data

Posted on 2011-03-02
2
1,894 Views
Last Modified: 2012-05-11
I have a SSRS report that has a parameter named “SelectDate”, with a datatype of “text”.  It is associated with a dataset field:  CONVERT(DATE, tableName.smalldatetimefield, 101) AS RECEIVED_DATE.

When a date is manually entered in the report’s “SelectDate” parameter, the report runs successfully.

I am trying to set up a subscription to be emailed daily with data received that day (using today’s date in the “SelectDate” parameter field).  In the subscription setup, under “Report Parameter Values”, I have tried:

today(),
GETDATE(),
NOW(),
CONVERT(varchar(10), GETDATE(),101),  
CONVERT(varchar(10),today(),101),
CONVERT(varchar(10), NOW(),101)

I receive the following error:
“Failure sending mail: An error has occurred during report processing. Mail will not be resent.”

What should be placed in the subscription setup under “Report Parameter Values”?
0
Comment
Question by:nulad
2 Comments
 
LVL 39

Accepted Solution

by:
lcohan earned 500 total points
ID: 35019234
I think you need to add a GETDATE() default parameter value and please see link to find out how

http://www.sql-server-performance.com/articles/reporting/report_parameters_p1.aspx
0
 

Author Closing Comment

by:nulad
ID: 35019846
After I added a default value in the parameter instead of trying to add it to the subscription it worked properly.  Thank you so much for your help.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction: This article is aimed at report developers who are used to developing reports using relational databases and have gotten a first-time assignment to develop reports on OLAP cubes. It demonstrates how to build a report using SQL Ser…
Time Corrections for Reports Working with a report, we made some interesting discoveries about the time corrections/updates We are using the following Parameters: Starting Entered Date (Date) formatted as Data type: "Date/Time" Ending Entered …
This video discusses moving either the default database or any database to a new volume.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now