I have an app that gets data from SQL Server and displays a crystal report. I'm filling a Dataset then using it as the datasource for the report. The SQL stored proc takes up to 60 seconds because it has to go get data from our SAP system. After the report is displayed in a CrystalReportViewer control, the user will have the ability to export the report to various file formats. I don't want to run the stored procedure again because it takes so long. And I don't want to maintain an instance of the report object due to concurrent user licensing for Crystal and not knowing how long a user will wait before exporting the report.
Right now I see two options.
1. Save the dataset as a Session variable.
2. Write the dataset to an XML file.
I know using Session variables takes a lot of server resources, but I'm not sure if that would be better than the disk access needed to write the XML file then read it when it's needed again.
Anyone have an opinion on which would be better? Or any other ideas?
Thanks,
Shanti
Right now I see two options.
1. Save the dataset as a Session variable.
2. Write the dataset to an XML file.
I know using Session variables takes a lot of server resources, but I'm not sure if that would be better than the disk access needed to write the XML file then read it when it's needed again.
Anyone have an opinion on which would be better? Or any other ideas?
Thanks,
Shanti