Solved

Filter and Sorting in RDL

Posted on 2008-10-12
4
2,318 Views
Last Modified: 2009-01-04
In RDL, we can do filter and sorting in Query: "Select * from tables where field_a > 100 order by field_b", or in "Filters" and "Sorting":  
         <Filter>
               <FilterExpression> = Fields!Field_a.Value </FilterExpression>
               <Operator> GreaterThan </Operator>
               <FilterValues>
                    <FilterValue> = 100 </FilterValue>
               </FilterValues>
         </Filter>
          <Sorting>
                 <SortBy>
                      <SortExpression> = Fields!field_b.Value <SortExpression>
                 </SortBy>
          </Sorting>
   I wonder which way is more efficient in terms of application performance (such as response time...).

0
Comment
Question by:treehouse2008
  • 2
4 Comments
 
LVL 17

Expert Comment

by:dbaSQL
Comment Utility
i have found it is easier, and sometimes faster, to let the report processor handle the sorting and filtering, rather than using the ORDER BY within your tsql.  
the same is mentioned within 'Hitchhiker's Guide to SQL Server 2000 Reporting Services', too.
0
 

Author Comment

by:treehouse2008
Comment Utility
But the book says:
"if you're issuing a query against a relational data source that is fully optimized for searching and sorting data, you should do your sort ordering on the database server as part of the query. Runtime sorting within the table on Reporting Services is problematic and has in fact overridden our SQL sort order."
0
 
LVL 17

Accepted Solution

by:
dbaSQL earned 250 total points
Comment Utility
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now