SAP Crystal Reports 2011, Win User's Guide Page 119

  • Download
  • Add to my manuals
  • Print
  • Page
    / 718
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 118
A stored procedure is a compiled SQL program, consisting of one or more SQL statements, which
resides and runs on your SQL server. Although stored procedures can take time to set up properly,
they can be incredibly powerful.
The advantages of using stored procedures are most noticeable when reporting off large sets of data,
or when running reports that demand long, complex calculations. In such cases, you should ideally use
a predefined stored procedure that performs the complex work for you on the database server.
Because stored procedures reside on your SQL server, you may need to ask your Administrator about
accessing or setting up a stored procedure.
For more information on stored procedures, see Stored procedures.
6.5 Using enhanced record selection formulas
The most important thing you can do to speed up report processing is to limit the amount of data that
is returned from the database. Your primary tool for doing this is the record selection formula.
Crystal Reports analyzes your record selection formula and generates an SQL query from it. This SQL
query is then processed by the database, which sends the resulting records back to Crystal Reports.
Crystal Reports then evaluates the record selection formula locally for each of the records retrieved
from the database, thereby calculating the set of records used to generate the report.
Unnecessary records are eliminated at two stages: at the database with the SQL query and within
Crystal Reports by the record selection formula. For speed, you want as many records as possible to
be eliminated in the first stage. By designing your record selection formula effectively, you can off-load
much of the processing to the database server, thus eliminating unnecessary records before returning
them to Crystal Reports. This is commonly called "pushing record selection down to the database
server."
This section offers several tips to ensure that your record selection formulas can be pushed down to
the database server.
6.5.1 Pushing down record selectionan example
This example demonstrates the benefits of writing record selection formulas that can be pushed down
to the database server.
In the Orders table of the Xtreme sample database, there are 2192 records, of which 181 have order
dates prior to 2001. Suppose you want to report on only those records. On the one hand, you could
use this record selection formula:
Year ({Orders.Order Date}) < 2001
2012-03-14119
Designing Optimized Web Reports
Page view 118
1 2 ... 114 115 116 117 118 119 120 121 122 123 124 ... 717 718

Comments to this Manuals

Edwinfet 29 Feb 2024 | 09:13:09

What are the upsides of contracting skilled web optimization organizations? Expert search marketing companies utilize teams of experts focused on elevating your site's content for browsing engines. This encompasses researchingsearch phrases, adjusting on site characteristics, and managing off-domain enhancements. Moreover, these firms monitor adjustment in from Google parameters and refresh the text on your website as needed. This saves both you your time and your workers from unwanted a

KarenSkaky 17 Apr 2024 | 12:11:41

Securing the security of your home is essential in today's unsettled times. Among the best ways to safeguard your belongings and peace of mind is by committing in a trustworthy safe. Regardless of whether you're securing money, important documents, or precious heirlooms, a safe gives a protected repository solution. Regarding selecting the right safe for your house, there are several elements to consider. Above all, assess your safety requirements. Determine what items you plan to store in

Helenlal 18 Apr 2024 | 10:19:10

Arranging an open-air wedding in Phenix and anxious about the unpredictable weather? Don't let Mother Nature rain on your parade – truly! At [Event Rentals Phoenix], we provide stunning wedding tent rentals that will ensure your distinctive day goes off without an hitch. Our wedding tent rentals are created to supply both charm and functionality. Say "I do" under tha elegant canopy of one of our tents, surrounded by your loved ones and tha breathtaking scenery of Pheonix. With one assortmen

Helenlal 29 Apr 2024 | 07:23:21

In both personal and professional situations, encountering issues is unavoidable. However, mastering productive trouble-shooting techniques is key for triumphing over hurdles and accomplishing success. In this piece, we delve into the strategies and methods for efficiently addressing dilemmas. From analytical thinking to creative brainstorming, we look into various approaches that can help individuals tackle challenges with certainty and accuracy. Effective challenge solving begins wit

Chrisnug 29 Apr 2024 | 16:39:54

Hello, im noob :)