Results 1 to 9 of 9

Thread: mysql script?

  1. #1

    Thread Starter
    Banned nareth's Avatar
    Join Date
    Jun 2004
    Posts
    1,206

    Resolved 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.

  2. #2
    Hyperactive Member mudfish's Avatar
    Join Date
    Feb 2004
    Location
    Chit Chat
    Posts
    353

    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

  3. #3

    Thread Starter
    Banned nareth's Avatar
    Join Date
    Jun 2004
    Posts
    1,206

    Re: mysql script?

    doesnt help

  4. #4
    Hyperactive Member mudfish's Avatar
    Join Date
    Feb 2004
    Location
    Chit Chat
    Posts
    353

    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

  5. #5

    Thread Starter
    Banned nareth's Avatar
    Join Date
    Jun 2004
    Posts
    1,206

    Re: mysql script?

    this doest really help either...

    nvm it

  6. #6
    Hyperactive Member mudfish's Avatar
    Join Date
    Feb 2004
    Location
    Chit Chat
    Posts
    353

    Re: mysql script?

    Use your computer explore to get to it.

    Quote Originally Posted by mudfish
    "Schedule Task" you can run a batch job there.
    Attached Images 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

  7. #7
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: mysql script?

    Quote 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.
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  8. #8

    Thread Starter
    Banned nareth's Avatar
    Join Date
    Jun 2004
    Posts
    1,206

    Re: mysql script?

    none if it helps. you just cant do it in mysql so.. bye

  9. #9
    Hyperactive Member mudfish's Avatar
    Join Date
    Feb 2004
    Location
    Chit Chat
    Posts
    353

    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
  •  



Click Here to Expand Forum to Full Width