Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Schedule report After 110 Days of the Past quarter Expand / Collapse
Author
Message
Posted Tuesday, February 19, 2013 9:07 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, September 17, 2013 2:07 PM
Points: 171, Visits: 556
Hi ,
I want to schedule a report every 110 days after a Quater.

Example: Last quater is december 31 2012 + 110 days .So my report will run again on April 20 ( which is 110 days after last quater).

Can any one tell me how to do this?

Thanks,
Komal
Post #1421706
Posted Tuesday, February 19, 2013 9:24 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Yesterday @ 1:12 PM
Points: 1,342, Visits: 1,514
To get last day of last quarter:

select DATEADD(qq,DATEDIFF(qq,-1,(DATEADD(qq,DATEDIFF(qq,0,GETDATE()),0))-1),-1)


Then add 110.
Post #1421718
Posted Tuesday, February 19, 2013 9:34 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, September 17, 2013 2:07 PM
Points: 171, Visits: 556
I can get the last quarter date.But need to add subscription to run after 110 days after last quater.
Post #1421722
Posted Tuesday, February 19, 2013 9:47 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Yesterday @ 8:24 AM
Points: 12,887, Visits: 31,835
not a reporting services guru, but for regular scheduled jobs, i can create a job which does something, like send an email or update or whatever, that runs every day, but only does something on 110 days after some specific date calculation.

can't you do the same in reporting services? send only if data meets a certain criteria, and schedule it to run every day forever(so it effectively SENDS 4 times a year,but checks whether it should run ever day)


Lowell

--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #1421727
Posted Tuesday, February 19, 2013 9:58 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, September 17, 2013 2:07 PM
Points: 171, Visits: 556
If i schedule it to run daily through subscriptions ( ssrs), in SSRS, report will run daily but populates data only on that particular day( checking condition if today is 110th day after a quater and run my storedprocedure).

I dont want to send a blank report to the users daily.
Post #1421739
Posted Tuesday, February 19, 2013 10:16 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Yesterday @ 8:24 AM
Points: 12,887, Visits: 31,835
I'm awful sure there is a solution to that; I know i've seen lots of SSRS topics like "don't send if no data is found", kind of threads.
this was just the first google item i found:

http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/00115772-65cc-43fa-83b6-e05344bfdd89/


Lowell

--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #1421749
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse