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

Report Subscription - Send email after saving to windows share Expand / Collapse
Author
Message
Posted Monday, August 26, 2013 3:32 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Tuesday, October 1, 2013 11:59 AM
Points: 38, Visits: 89
I have a SSRS data subscription that saves a file to windows share. The report runs monthly.
There is a new requirement now that after the file gets saved to the windows share, an email needs to be generated to users mentioning that the file is available at the windows shared location.

Please help if this is possible. I only see either windows file or email option in SSRS.

thanks
kk
Post #1488511
Posted Tuesday, August 27, 2013 12:15 PM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Wednesday, August 27, 2014 2:47 PM
Points: 1,170, Visits: 1,211
kk1173 (8/26/2013)
I have a SSRS data subscription that saves a file to windows share. The report runs monthly.
There is a new requirement now that after the file gets saved to the windows share, an email needs to be generated to users mentioning that the file is available at the windows shared location.

Please help if this is possible. I only see either windows file or email option in SSRS.

Would it be possible to run the report from SSIS and then use SSIS' Send Mail task to email that it is completed? You could create a SQL Agent job and schedule it to run monthly.

There's an article here on SSC: http://www.sqlservercentral.com/articles/Integration+Services+(SSIS)/93504/

HTH,
Rob
Post #1488892
Posted Tuesday, August 27, 2013 12:37 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Tuesday, October 1, 2013 11:59 AM
Points: 38, Visits: 89
Thanks but that may not be possible. Is there any other workaround?
Post #1488905
Posted Wednesday, August 28, 2013 10:45 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Thursday, August 28, 2014 2:26 PM
Points: 278, Visits: 806
You could also set an Agent job to periodically monitor the status of the File Share subscription, using the Subscription table in the ReportServer db. Then, upon successful completion and whatever other parameters you wanted, it could kick off the second Email subscrip.

If you absolutely HAD to use *only* SSRS, then you might be able to get away with a similar approach as outlined HERE, but instead your EXISTS clause would again read from the Subscriptions table on the ReportServer db to find a successful saving of the FileShare subscription file. You would probably have to run it like every 5 minutes starting when your FileShare subscrip fires, and then have it go for some amount of time until you're sure the FileShare subscrip would be done.

I've never tried it before, I would just use SSIS, but off the dome it seems like it might work?

Post #1489324
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse