Reporting Services report output to CSV

John Kelly 166 Reputation points
2021-08-03T15:35:00.023+00:00

Hi

I have a number of Reporting Services reports and i want one of these to be in CSV file format when it runs. I know that i can export this to Word, Excel, CSV etc when it has ran but is there a way to create this one report in CSV format at runtime.

This report has been written with Microsoft Visual Studio 2015 Shell (Integrated) software

Thanks

John

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
3,061 questions
0 comments No comments
{count} votes

Accepted answer
  1. Joyzhao-MSFT 15,631 Reputation points
    2021-08-04T02:07:39.897+00:00

    Hi @John Kelly
    When you preview a report in Report Builder or Report Designer or run a report on a Reporting Services report server, the report is always first rendered in HTML. After you run the report, you can export it to different file formats. see Renderers.
    Best Regards,
    Joy


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. John Kelly 166 Reputation points
    2021-08-05T09:18:55.113+00:00

    Hi Joy

    I had a look at the links you provided. This report is being sent to people so i will try this.
    .
    "If you can change the URL which the link is pointing to though (like you send the link in email or you have a custom portal/application), then you can change the URL to look like this:"

    http://<servername>/reportserver/?MyReportPath&rs:Command=Render&rs:Format=CSV

    Thanks for your help

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.