Ask a Question related to ASP Database, Design and Development.
-
Richard #1
Automatic deletion of records
I have set up a WebSite with user submitted news items and discussion
groups, fed by an Access database.
I need to find a way to automatically delete news items and discussion
items - ie table records - on a regular basis in order to keep the
..mdb size down and news and discussion items recent.
I could of course use a GLOBAL.ASA session start script which compares
table record STAMP dates with the current DATE on say the 15th of each
month, deleting whichever records are older than say 3 months.
However, this would mean that the tables are checked on every session
start for that day of the month. The WebSite will be receiving a large
number of visitors and I don't want the script to have to run 500
times!! Who knows what that would do to the DB integrity!!??
Is there any way I can set the script to run just once a month without
it having to be triggered by a new session??
Thanks for any useful ideas.
Richard Guest
-
PREVENTING CSS DELETION
Hello, There is an option at the bottom of the CSS style list in Contribute, to remane or delete CSS styles. How do I configure Contribute to... -
More help with DB deletion
3 pages. Input of primary keys on page 1. checking to make sure primary keys match, and display data to be deleted on page 2. Deletion of data... -
Help with database deletion
we have the below 3 pages. delete_roster1, 2, 3.cfm from delete1 we have the user input two id fields, they are assigned to 2 different... -
Bookmarks deletion
using Adobe Acrobat 5.0 on windows pc I am new to creating pdfs however, I created a 39 page pdf with several bookmarks. I need to update this... -
Deletion problems
I am having two similar issues, and if I can figure one out, I might be able to figure out the other. a while back, I had a file that I couldn't... -
Bob Barrows #2
Re: Automatic deletion of records
Richard wrote:
[url]http://www.aspfaq.com/show.asp?id=2143[/url]> I have set up a WebSite with user submitted news items and discussion
> groups, fed by an Access database.
>
> I need to find a way to automatically delete news items and discussion
> items - ie table records - on a regular basis in order to keep the
> .mdb size down and news and discussion items recent.
>
HTH,
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Bob Barrows Guest
-
Mosley Jones III #3
Re: Automatic deletion of records
"Richard" <richardtinkler@yahoo.com> wrote in message
news:be39f0a3.0311011414.29eeec62@posting.google.c om...> I have set up a WebSite with user submitted news items and discussion
> groups, fed by an Access database.
>
> I need to find a way to automatically delete news items and discussion
> items - ie table records - on a regular basis in order to keep the
> .mdb size down and news and discussion items recent.
>
> I could of course use a GLOBAL.ASA session start script which compares
> table record STAMP dates with the current DATE on say the 15th of each
> month, deleting whichever records are older than say 3 months.
>
> However, this would mean that the tables are checked on every session
> start for that day of the month. The WebSite will be receiving a large
> number of visitors and I don't want the script to have to run 500
> times!! Who knows what that would do to the DB integrity!!??
>
> Is there any way I can set the script to run just once a month without
> it having to be triggered by a new session??
>
> Thanks for any useful ideas.
what about this
if Application("theLastDate") <> day(date) then
DO SOMTHING
Application("theLastDate") = day(date)
end if
this way it can not be done kmore than once in a day unless you restart the
app.
PS
Application variables last the life of the application (until you reboot the
web server)
Session variables last as long as the users Session
Mosley Jones III Guest
-
Jeff Cochran #4
Re: Automatic deletion of records
On 1 Nov 2003 14:14:17 -0800, [email]richardtinkler@yahoo.com[/email] (Richard)
wrote:
Run it as a scheduled task, in VBS. Heck, this is Access, you could>I have set up a WebSite with user submitted news items and discussion
>groups, fed by an Access database.
>
>I need to find a way to automatically delete news items and discussion
>items - ie table records - on a regular basis in order to keep the
>.mdb size down and news and discussion items recent.
>
>I could of course use a GLOBAL.ASA session start script which compares
>table record STAMP dates with the current DATE on say the 15th of each
>month, deleting whichever records are older than say 3 months.
>
>However, this would mean that the tables are checked on every session
>start for that day of the month. The WebSite will be receiving a large
>number of visitors and I don't want the script to have to run 500
>times!! Who knows what that would do to the DB integrity!!??
>
>Is there any way I can set the script to run just once a month without
>it having to be triggered by a new session??
create a macro that did what you wanted and schedule that.
Jeff
Jeff Cochran Guest



Reply With Quote

