Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Would a Linked Report serve well in this instance?

$
0
0

I found out a few users are coming in on Monday morning's and running SSRS 2005 reports, waiting for them to finish processing and executing, and then rendering and saving them as .PDF's.

A subscription would save them some time!

However, they specify some funky date ranges for the @StartDate and @EndDate parameters. Another user here helped me with the code for these @StartDate and @EndDate parameters (found further below). It involves creating another data set and passing the field values into the parameter values. I'm trying to avoid creating another copy of the report.

Question: Could I add the below data set to the original report, then create a linked report which uses these fields below as defaults for the date parameters? I'm not sure because I've never created a linked report.... 


Declare 
@STimeStamp datetime,
@PStartDate datetime,
@wed datetime


Set @STimeStamp=GETDATE()
set @PStartDate=@STimeStamp-DATEPART(dw,@STimeStamp)-17
set @wed=@PStartDate+6

print @STimeStamp
print @PStartDate
print @wed



Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>