Print Page | Close Window

Error TDeleteExpiredQuarantineThread.Exec

Printed From: LogSat Software
Category: Spam Filter ISP
Forum Name: Spam Filter ISP Support
Forum Description: General support for Spam Filter ISP
URL: https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=5956
Printed Date: 21 January 2025 at 2:35am


Topic: Error TDeleteExpiredQuarantineThread.Exec
Posted By: support GLD
Subject: Error TDeleteExpiredQuarantineThread.Exec
Date Posted: 22 January 2007 at 5:54am
Hi,
i have this error since i have upgraded to V3.1.3.614

(61648) Exception occurred during TDeleteExpiredQuarantineThread.Execute: 'tblquarantine' : nom d'objet incorrect -- UPDATE tblQuarantine SET Expire = 1 WHERE MsgDate <= :MsgDate AND ( (ServerID = 1) OR (ServerID = 0) OR (ServerID IS NULL) );

If i run this script of my MSSQL database :

UPDATE tblQuarantine SET Expire = 1 WHERE MsgDate <= MsgDate AND ( (ServerID = 1) OR (ServerID = 0) OR (ServerID IS NULL) )

This log error is not disappeared and SpamFilter cannot deleted expire e-mails.

Any Idea ????







Replies:
Posted By: LogSat
Date Posted: 22 January 2007 at 4:46pm
As far as running the script manually, the :MsgDate is actually a parameter in a query, and should be replaced with any date you wish to use as a reference. For example like this:

UPDATE tblQuarantine
SET Expire = 1
WHERE
MsgDate <= '1/10/2007 12:00:00 AM'
AND ( (ServerID = 1) OR (ServerID = 0) OR (ServerID IS NULL) )

In regards to the error, can you see if the above query executes without errors when running it directly within Query Analyzer or the Enterprise Manager? If it works fine, can you double-check to ensure the database user that SpamFilter is using has read/write access to the SpamFilter database and the tblQuarantine table?


-------------
Roberto Franceschetti

http://www.logsat.com" rel="nofollow - LogSat Software

http://www.logsat.com/sfi-spam-filter.asp" rel="nofollow - Spam Filter ISP


Posted By: support GLD
Date Posted: 23 January 2007 at 4:07am
Hi, 
No error when i execute this query.   
Spamfilter user have the good rights for reading and writing on database and tblQuarantine table.
We use MS SQL Server 2000 Std SP4 on Windows 2003 Srv Std.
best regards


Posted By: support GLD
Date Posted: 23 January 2007 at 5:43am
If i Downgrade V3.1.3.614 to V3.1.3.605 :

No problem :
(14836) Deleted Expired quarantined items (345)

best regards



Posted By: LogSat
Date Posted: 23 January 2007 at 9:37pm
The *only* difference between the two versions is that in 3.1.3.614 the queries have been converted all to lowercase. The error you reported states that the "tblquarantine" object cannot be located. The table name is actually tblQuarantine.

SQL Server is by default not case-sensitive. Did you by any chance configure it for case-sensitive queries? If so, yes, this would cause a problem.

-------------
Roberto Franceschetti

http://www.logsat.com" rel="nofollow - LogSat Software

http://www.logsat.com/sfi-spam-filter.asp" rel="nofollow - Spam Filter ISP


Posted By: support GLD
Date Posted: 24 January 2007 at 4:13am
it's a good idea but SQL 2000 is setting on SQL_Latin1_general_CP850_BIN (Latin1-General, binary sort for Unicode Data, SQL Server Sort Order 40 on Code Page 850 for non-Unicode Data. It isn't configured in case sensitive (CI).

best regards


Posted By: LogSat
Date Posted: 24 January 2007 at 10:26pm
Actually the _BIN (binary sort) option does indeed cause case-sensitive searches:

Binary (_BIN)1

Sorts and compares data in SQL Server tables based on the bit patterns defined for each character. Binary sort order is case sensitive and accent sensitive. Binary is also the fastest sorting order. For more information, see Using Binary Collations.

You can change the collation to one that is case insensitive by issuing a query similar to:

ALTER DATABASE SpamFilter
COLLATE SQL_Latin1_General_CP1_CI_AS


-------------
Roberto Franceschetti

http://www.logsat.com" rel="nofollow - LogSat Software

http://www.logsat.com/sfi-spam-filter.asp" rel="nofollow - Spam Filter ISP


Posted By: __M__
Date Posted: 25 January 2007 at 8:35am
Roberto, I bet your wishing that you standardized on the lower case from day one now. 

It's always the way that something as insignificant ends up causing lots of little problems.

Mike


Posted By: support GLD
Date Posted: 25 January 2007 at 8:36am
Thank You,
SpamFilter is working fine now with V3.1.3.614 !!!

best regards


Posted By: LogSat
Date Posted: 25 January 2007 at 8:44am
...and to think the **only** reason that, 4 years ago, we opted to use a mix of lower case/upper case was to make the table names easier to read! I remember specifically the 30 seconds moment of doubt the very first time while creating the tables in MS Access . Yeap, how do I wish we had done otherwise!

-------------
Roberto Franceschetti

http://www.logsat.com" rel="nofollow - LogSat Software

http://www.logsat.com/sfi-spam-filter.asp" rel="nofollow - Spam Filter ISP



Print Page | Close Window