|
|
 |
RE: FN-FORUM: Suggestions please
date posted 15th August 2003 16:11
You have a system table called "datacheck" (or something) with a field
called "lastdeleted"
So a logins in and as part of that login routine, you do;
SELECT lastdelete FROM datacheck
Then check (however you're doing it) the lastdelete date to see if it's
today. If it is, then just carry on, if it's yesterday then you know you
need to run your routine to do the delete.
Once you've run the delete routine, simply do=20
UPDATE datacheck SET lastdelete =3D getdate() (or now() or whatever =
you're
using for your RDBMS)
Cheers
Andy
-----Original Message-----
From: PAMELA WHITTAKER [EMAIL REMOVED]
Sent: 15 August 2003 16:34
To: Andy Macnaughton-Jones
Subject: Re: FN-FORUM: Suggestions please
But how do you know when the system last checked?
----- Original Message -----=20
From: "Andy Macnaughton-Jones" [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Friday, August 15, 2003 4:29 PM
Subject: RE: FN-FORUM: Suggestions please
Person A logs in.
Checks to see when the system last checked
If it was "today" then just move on
Otherwise delete the old files and set the "last checked" flag.
Person B then logs in 10 mins later
Checks to see when the system last checked
It is today, so just move on
Etc. etc.
-----Original Message-----
From: PAMELA WHITTAKER [EMAIL REMOVED]
Sent: 15 August 2003 16:15
To: Andy Macnaughton-Jones
Subject: FN-FORUM: Suggestions please
Hi,
I am writing a timesheet at the moment and I want to make sure that
noting over 5 years old is kept on the database. The only way I can
think of is going through and deleting everything over five years old
every time someone logs in to the system which could be more than once a
day. especially on a Friday. Can anyone think of a way of only doing it
once a day please.
Thanks
Pam
'=20
=20
NTMail K12 - the Mail Server for Education
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
redmail.com - webmail with a difference!
10Mb for just GBP 9.99 a year. Launch special 1Gb for GBP 99.99 a year
IMAP, POP3, Spam Filtering and Anti Virus as standard. Visit
http://www.redmail.com/?fl-signup to join.
To advertise here: http://www.freelancers.net/advertising.html
=3D=3D=3Dredmail.com - webmail with a difference!
10Mb for just GBP 9.99 a year. Launch special 1Gb for GBP 99.99 a year
IMAP, POP3, Spam Filtering and Anti Virus as standard. Visit
http://www.redmail.com/?fl-signup to join.
To advertise here: http://www.freelancers.net/advertising.html
Unsub: http://www.freelancers.net/rm.php?gp6AD7472EBA1720C003
To Post a New Message: [EMAIL REMOVED]
Forum Homepage: http://www.freelancers.net/forum.php
http://www.freelancers.net - freelancers and freelance jobs
'=20
=20
NTMail K12 - the Mail Server for Education
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
redmail.com - webmail with a difference!
10Mb for just GBP 9.99 a year. Launch special 1Gb for GBP 99.99 a year
IMAP, POP3, Spam Filtering and Anti Virus as standard. Visit
http://www.redmail.com/?fl-signup to join.
To advertise here: http://www.freelancers.net/advertising.html
|
 |
|