views:

279

answers:

5

When Using SQL Server Reporting Services (client Reports), whenever a Client (rdlc) report Opens Visual Studio Loads entire application datasets,

how to speedup loading this all datasets or how to change the process to only load specific Dataset to use in Report ?

A: 

Are you trying to create the .rdlc at runtime?

Alexander
No, We have More than 100 reports and designing these reports takes much times. now opening a rdlc becomes a nightmare for us and want to find a way to speed up these process . we have design reports in simple SSRS designer.
+1  A: 

Bulk Insert (or the bcp utility) is your Friend for speedy data imports. Your probably going to have to write a data loader in some language though.

Hassan Syed
A: 

database snapshot could be an option http://www.sql-server-performance.com/articles/dba/sql_server_database_snapshot_p1.aspx

zapping
A: 

I may be understanding you question wrong, but on Win Forms I've been loading the needed data sets manually. I basically have a method that loads the proper data from my database, attach the needed data sets to my report viewer using Me.ReportViewer1.LocalReport.DataSources.Add, then I just display my report using Me.ReportViewer1.LocalReport.ReportEmbeddedResource. My reports are embedded resources, but you can load it from a file too, I just can't remember off the top of my head. Once everything is loaded, call RefreshReport, and the report displays. Well, those are the main points, I don't have my code to look, but I know those are the basic steps.

Currently I have been researching how to load data sets on the fly as the user navigates through the report. My work around for this at the moment is to capture the ReportError event, check what report is trying to be displayed from the sender (this is the report viewer object), and load the dataset using the above. The only issue that I am having is that I don't have a loading screen when I am loading the dataset at this point, so it looks like my application freezes. I haven't figured out how to get back to that circular loading screen, but for now, I have a loading window that is displayed while I load. remember, when you get the error, the report trying to be displayed is already set as the local repot, so all you have to do is have a case/if statment checking for the report and loading the data as needed.

JohnathanKong
A: 

Can't you set a default parameter to something which stops much being returned, and only change it to a real one at run-time?

Rob Farley