User`s guide
the statement, performs the requested operation, and returns any data requested to the client software.
If the server returns any data, the client software displays the data to the user.
23.2.2.1 Stored procedures
In addition to the common relational database attributes (tables, fields, records, and so on) many SQL
DBMS systems support stored procedures. A stored procedure is a compiled SQL program consisting
of one or more SQL statements. A stored procedure can be used to define an SQL query that you can
use over and over again. Furthermore, variables, conditional expressions, and variable arguments can
be defined in the stored procedure so that you are prompted to provide information before the procedure
is executed.
Since stored procedures can return a result set, they can provide a specific set of data when executed.
In fact, Crystal Reports allows you to execute a stored procedure on an SQL database and use the
returned data to design a report. If the stored procedure is designed to prompt a user for information
to base its query on, Crystal Reports will prompt you for that information when you select the stored
procedure for your report.
23.2.2.1.1 To select an SQL stored procedure
1.
Choose Options from the File menu.
The Options dialog box appears.
2.
Click the Database tab and ensure that Stored Procedures is selected.
Selecting "Stored Procedures" automatically displays any available stored procedures when you
log on to an SQL database.
3.
In addition, you can specify Table name LIKE and Owner LIKE options if you wish.
2012-03-14510
Understanding Databases