Dec 16th, 2004, 08:43 AM
#1
Thread Starter
Banned
mysql script?
i want to make it so a row gets deleted after X hours, i do not want to do this with VB.
how can i do this with mysql?(sorry wrong forum)
Last edited by nareth; Dec 16th, 2004 at 11:22 AM .
Dec 16th, 2004, 08:54 AM
#2
Hyperactive Member
Re: mysql script?
The database guy here use a third party add on that will fire exe and other thing like backup! We run sql 2000 think it is called Schedule plus.
Mudfish AKA Bowfin
I can spell "If" all day right, just a coder!
"Always do sober what you said you'd do drunk. That will teach you to keep your mouth shut." -- Ernest Hemingway
Member of the ECCC
Dec 16th, 2004, 08:56 AM
#3
Thread Starter
Banned
Dec 16th, 2004, 09:10 AM
#4
Hyperactive Member
Re: mysql script?
My DBA say yes you can do it. Look into the "Schedule Task" you can run batch job there.
Mudfish AKA Bowfin
I can spell "If" all day right, just a coder!
"Always do sober what you said you'd do drunk. That will teach you to keep your mouth shut." -- Ernest Hemingway
Member of the ECCC
Dec 16th, 2004, 09:32 AM
#5
Thread Starter
Banned
Re: mysql script?
this doest really help either...
nvm it
Dec 16th, 2004, 09:42 AM
#6
Hyperactive Member
Re: mysql script?
Use your computer explore to get to it.
Originally Posted by
mudfish
"Schedule Task" you can run a batch job there.
Attached Images
Mudfish AKA Bowfin
I can spell "If" all day right, just a coder!
"Always do sober what you said you'd do drunk. That will teach you to keep your mouth shut." -- Ernest Hemingway
Member of the ECCC
Dec 16th, 2004, 09:50 AM
#7
Re: mysql script?
Originally Posted by
nareth
i want to make it so a row gets deleted after X hours, i do not want to do this with VB.
how can i do this with mysql?(sorry wrong forum)
Then how do you want to do it? As far as I know, there's no way to do it from within mySQL. It needs an outside job. Scheduler works fine (or even a service) on WIndows, if it's on an Apache/Linux/w PHP webserver, then a cron job to run a PHP page couls also do the trick.
Tg
EDIT: Oh, yeah and it will require that there be a time stamp field of somekind so you know how old the record is.
Dec 16th, 2004, 10:35 AM
#8
Thread Starter
Banned
Re: mysql script?
none if it helps. you just cant do it in mysql so.. bye
Dec 16th, 2004, 11:19 AM
#9
Hyperactive Member
Re: mysql script?
The batch file
Code:
isqlw -S srv1 -d PERSONNEL -E -i "\\srv2\SRV2DRVE\SQLDBA\Misc\Sql Queries\Personnel\Full_Time_Staff_By_Orgcode.sql" -o Z:\Personal\wkelley\Full_Time_Staff_By_Orgcode.txt
This call an sql script, might work with mysql, do not know do not have it!
Good luck m8
Mudfish AKA Bowfin
I can spell "If" all day right, just a coder!
"Always do sober what you said you'd do drunk. That will teach you to keep your mouth shut." -- Ernest Hemingway
Member of the ECCC
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width