Re: excecuting stored procedures
- From: Perfect Reign <theperfectreign@xxxxxxxxx>
- Date: Thu, 2 Feb 2006 08:14:33 -0800
On 1 Feb 2006 21:31:30 -0800, someone posing as hems took a five minute
break from flipping burgers to boot up the etch-a-sketch and scribbled:
Hi,
Can I Schedule excecution of stored procedure in crystal report XI.
I want to schedule it for daily. Please anyone help me on this.
Not quite sure what you're asking here.
You want to schedule the stored proc (I'm assuming on MSSQL?) to run based
on a given time from within Crystal Reports?
AFAIK, Crystal has no built-in method for calling stored procs on a
scheduled basis.
You do have several options, however.
The stored procedure will return a dataset at a given time - that is the
data at the time the procedure was run. You can put this into a "temporary"
or "holding" table and schedule the stored procedure to run at any given
time. This would be done on the SQL Server itself.
(If you've upgraded from MSSQL to MySQL , DB2 or Oracle you probably have
similar options, but I'm not as familiar with them.)
You can then run the report against the "temporary" table to pick up the
data that had been placed there.
FWIW, you might want to just look at scheduling the report to run at a
given time. IIRC, there are many third-party packages to schedule the
running of crystal reports. Thus, you simply select your dataset from the
results of the stored procedure, and schedule the report to run at x time
and you're done.
I think many of these products even run on Wintendo if you're still stuck
using that and haven't upgraded to Linux yet.
HTH!
--
kai - theperfectreign at yahoo dot com
remember - a turn signal is a statement, not a request
.
- References:
- excecuting stored procedures
- From: hems
- excecuting stored procedures
- Prev by Date: suppress exporting to pdf if no reords in report
- Next by Date: Export des Eats Crystal Report
- Previous by thread: excecuting stored procedures
- Next by thread: Like Command in SelectionFormula
- Index(es):
Relevant Pages
|