472,096 Members | 2,224 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,096 software developers and data experts.

Scheduale a stored procedure

Hi!

Im writing a asp.net webapp and I need some help with scheduling of a
stored procedure.
I'd like to know if it's possible to have a stored produdere (that I
have written) to be schedualed for execution. I'd like it to exec on
the mysql server on predetermined hours.

Cheers

//KrippZ

Jul 24 '06 #1
1 3034
Kr****@gmail.com wrote:
Hi!

Im writing a asp.net webapp and I need some help with scheduling of a
stored procedure.
I'd like to know if it's possible to have a stored produdere (that I
have written) to be schedualed for execution. I'd like it to exec on
the mysql server on predetermined hours.
Yes, using the EVENT feature of MySQL 5.1.
http://dev.mysql.com/doc/refman/5.1/en/events.html
However, 5.1 is still in beta currently.

The other solution is to write a scheduled job with "cron" (UNIX/Linux)
or "AT" (Windows) to run a command at a specific hour. The command you
run should be a script (shell script on UNIX/Linux, BAT script on
Windows) that executes whatever SQL statements you want.

Regards,
Bill K.
Jul 30 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Rhino | last post: by
8 posts views Thread by Thomasb | last post: by
2 posts views Thread by Dino L. | last post: by
2 posts views Thread by jed | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.