?
Solved

Filter and Sorting in RDL

Posted on 2008-10-12
4
Medium Priority
?
2,356 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 17

Expert Comment

by:dbaSQL
ID: 22701870
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
ID: 22702334
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 1000 total points
ID: 22702356
0

Featured Post

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Suggested Courses

762 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