Groups | Blog | Home
all groups > sql server reporting services > november 2005 >

sql server reporting services : Slow Report/Excel Generation compared to Query execution time


Bruce L-C [MVP]
11/28/2005 10:54:00 AM
Excel export is very slow (as well as PDF). MS is going for fidelity of the
look of the report. What you want is more a data export to Excel. I do a lot
of this for my users. CSV is much much faster but in RS 2000 you need to do
a workaround.
Depending on how you design your reports you can do the following to export
to Excel. Or, what I do sometimes is make a copy of the report and clean it
up for data export and then hide it in list view. If you export from Report
Manager it puts CSV data in unicode which Excel puts all in one column. If
you export in ASCII then Excel does just as you want. To prevent a problem
with cells (Excel will object to sorting the data) you need to remove any
textboxes you have (for instance with a title, showing the parameters run
etc) and instead add additional header rows, merge the cells and put your
text in there instead. I add a link at the top of the report that says
Export Data. With RS 2005 you can configure it to use ASCII instead of
Unicode.

Here is an example of a Jump to URL link I use. This causes Excel to come up
with the data in a separate window:

="javascript:void(window.open('" & Globals!ReportServerUrl &
"?/SomeFolder/SomeReport&ParamName=" & Parameters!ParamName.Value &
"&rs:Format=CSV&rc:Encoding=ASCII','_blank'))"

If you don't want to have it appear in a new window then do this in jump to
URL:

=Globals!ReportServerUrl & "?/SomeFolder/SomeReport&ParamName=" &
Parameters!ParamName.Value & "&rs:Format=CSV&rc:Encoding=ASCII"

Very nice and very fast.


--
Bruce Loehle-Conger
MVP SQL Server Reporting Services



[quoted text, click to view]

D Witherspoon
11/28/2005 11:33:57 AM
I have a query that returns 71,000 rows. When I run it in query analyzer it
takes 11 seconds to execute and return all records. In reporting services I
came up with a report designed just to have the data eported to excel. It
seems to just take forever and then time out.

Has anyone experienced this?

AddThis Social Bookmark Button