Datasheet
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.3 How does Crystal Reports use SQL?
When you connect to an SQL database, Crystal Reports acts as an SQL client application, connecting
to your SQL server through your network.
When you design a report that accesses SQL data, Crystal Reports builds an SQL query. This query
can be seen by choosing Show SQL Query from the Database menu.
2011-05-16512
Understanding Databases










