Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 "Delete archived topics" timeout
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

clj
Junior Member

145 Posts

Posted - 12 July 2004 :  13:49:42  Show Profile
Hello

When I try to delete archived topics over 1 year old, I get the following:

"Topics older than 7/12/2003 6:33:44 PM have been deleted from the selected archive forum."

(which they have) but then I get an error....

Error Number: -2147217871
Source: Microsoft OLE DB Provider for SQL Server
File: /forum/admin_forums.asp
Description: Timeout expired.
Code: No code available
Line: 430
Time: 12/07/2004 17:50:00
Script name : /forum/admin_forums.asp

Line 429/430 are

strsql = "DELETE FROM " & strArchiveTablePrefix & "REPLY WHERE R_DATE < '" & strDateOlderThan & "'" & fIDSQL
my_conn.execute(strsql),,adCmdText + adExecuteNoRecords

so I think it's the replies that are not being deleted.

I have tried changing the timeout value at line 436 in admin_forums.asp but this makes no difference.

Does anyone have any ideas what to do please?
Should I manually delete the replies from the database?

Thanks for your advice,
Clare

Edited by - clj on 13 July 2004 13:23:49

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 14 July 2004 :  04:34:44  Show Profile
Do you have many topics over a year old? Try upping the time period (e.g., 2 years) to start with and try deleting batches of topics rather than all of them at once.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

clj
Junior Member

145 Posts

Posted - 14 July 2004 :  06:38:33  Show Profile
Hi Shaggy, Thanks for your reply.

No I don't have many topics over 1 year old, infact if I look on the forum I can't see any because I think they have been deleted, but not their replies (I can't see the replies on the site - but I think they are still in the database).

I'm not sure how to 'up' the time period - the maximum option on the drop down is one year.

I have just been through and deleted each forum section one by one. This seemed to work (although I had to do some twice or 3 times as they timedout to start with) so I think this is something I will have to keep on top of.

If anyone has any insight into how I can delete from all forums archives without a timeout error I would appreciate it.

Thanks!

PS: The forum is about 2 years old
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 14 July 2004 :  07:11:03  Show Profile  Send ruirib a Yahoo! Message
Probably the best way to do it would be from Query Analizer. Can you do that?


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

clj
Junior Member

145 Posts

Posted - 19 July 2004 :  13:18:41  Show Profile
Hi ruirib

Thanks for your advice, I wrote the SQL to screen and copied it to Query Analyser which worked a treat!

Many thanks again,
Clare
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 1.26 seconds. Powered By: Snitz Forums 2000 Version 3.4.07