Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Analysis Server and Reporting Services (2005)
 Calculation speed

Author  Topic 

jbphoenix
Yak Posting Veteran

68 Posts

Posted - 2009-12-23 : 15:12:36
Would a report run faster doing calculations in the dataset with sql OR doing the calculations in the actual report?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-12-23 : 15:21:47
It depends. You'd have to test it.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

yosiasz
Master Smack Fu Yak Hacker

1635 Posts

Posted - 2009-12-23 : 15:28:32
Like Tara says it depends. For example x-y or divides might be ok. but if you are doing some complex calculations then use sql as it is designed for that. also when you mean dataset what do you mean? is it inline SQL in the dataset or stored procedure?

<><><><><><><><><><><><><><><><><><><><><><><><><>
If you don't have the passion to help people, you have no passion
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2009-12-24 : 01:56:00
quote:
Originally posted by jbphoenix

Would a report run faster doing calculations in the dataset with sql OR doing the calculations in the actual report?


Can you post the code that does the calculation?
If you are using a cursor/while loop in sql, better you do calculation in the report. Also note that reporting service comes with some in-built functions that make you calculate in a better way

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -