Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute some SQL Statements Before Report

Status
Not open for further replies.

krishnappan

Programmer
Feb 7, 2008
21
0
0
US
Before my report kicks off, i want to execute some SQL statements like insert delete. Could you let me know how i can do that?
 
One option is to use a command that starts with your desired statements and ends with the select statement for the report (or for a subreport).

Another option is to use a UFL that provides SQL Statement functionality.

- Ido

view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Thanks for ur reply ....

did you mean add command?
if so is there any order in which the add command list is executed?

could u pls explain what is UFL?
 
For the 1st question, see:

A UFL is a User Function Library. You can create your own or purchase one that someone already developed. For a list of 3rd-party Crystal tools, see:
My "CUT Light" UFL provides SQL Calling functionality, so you can invoke SQL statements from Crystal functions.

- Ido

view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
In the add command i tried the following

Delete from temp_footnote;
select * my_table;

it says invalid character ... i even tried without semicolon , then it says sql statement not eneded properly ... could you give an syntax of adding multiple statement in a single add command .....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top