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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal 9 calls stored procedure twice

Status
Not open for further replies.

shawy

Programmer
Joined
Mar 11, 2003
Messages
4
Location
AU
Hi,

Quick question, why does Crystal call stored procedures twice?

John
 
If you have a subreport placed on your report, it'll have to make at least one call to the database for the subreport as well as another for the main report.

If the subreport is placed in a recurring section, then the database is interrogated each time that section is processed.

Naith
 
Yeah thats true but it also seems to do a stored procedure call without parameters then another call with parameters is there any reason for this?
 
Do you have subreports in your report?

How are you arriving at the conclusion that the database is getting interrogated twice - from looking at the database activity, or from looking at how Crystal handles the output.

If, like you say, you call your stored procedure without supplying the parameter values it expects, doesn't your procedure fall over?

Naith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top