Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

I would like to run an SSRS report using T-SQL or similar

Posted on 2014-12-02
3
Medium Priority
?
384 Views
Last Modified: 2014-12-10
I have a web based project and I need to kick off a report in SSRS that returns the report to a given email address  I am hoping to do this as part of a stored procedure sending the email address as a parameter.  Can this be done and how?
0
Comment
Question by:Alyanto
3 Comments
 
LVL 52

Expert Comment

by:Vitor Montalvão
ID: 40475621
I'm not a SSRS specialist but I think that can be done by configure the Report Server for e-mail delivery.
0
 
LVL 4

Accepted Solution

by:
jimtpowers earned 2000 total points
ID: 40476142
I have two reports that are scheduled to email particular folks. Go to the web server for your report server. Select the report and go to the management page for the report. Set up a subscription with the recipient's email address(es) and give it the date/time when to process the report. This will create a job on your SQL Server that you'll just leave alone. In my case, I render the reports in Excel format since that is what they are using. You can render to other formats as the need arises.

You will have to configure the SSRS service to be able to send email. Once that is done, subscriptions should take care of the rest.
0
 
LVL 1

Author Closing Comment

by:Alyanto
ID: 40491776
Excelent work
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to connect from SSMS v17.x to a SQL Server Integration Services 2016 instance or previous version, you get the error “Connecting to the Integration Services service on the computer failed with the following error: 'The specified service …
Ready to get certified? Check out some courses that help you prepare for third-party exams.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

963 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