Solved

Filter and Sorting in RDL

Posted on 2008-10-12
4
2,343 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 250 total points
ID: 22702356
0

Featured Post

Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

695 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