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: Database: MySql
 Archive forum error message
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

cobrachen
Starting Member

48 Posts

Posted - 25 December 2008 :  10:05:21  Show Profile
This is the first time I received this error message:

Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[MySQL][ODBC 3.51 Driver][mysqld-5.0.67-log]Duplicate entry '2-7-12-171' for key 1

/cobrachen/forum/admin_forums.asp, line 489

The command at line 489 is:

my_conn.execute(strsql),,adCmdText + adExecuteNoRecords

The story is: I tried to archive one of my board and I had mismatched error. Then I tried to run it again and received this error.

I could archive the forum and did it after I migrate to MySQL. I also changed some of the columns to use a different data type as suggested in one of the post here. I know the recount function is not working and I am using the SQL statement, also posted here to do it.

Any one has clues to this error?

Thank you very much.<

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 25 December 2008 :  10:32:30  Show Profile  Send ruirib a Yahoo! Message
Previous archive failed and now you have duplicate records on a table, either FORUM_A_TOPICS or FORUM_A_REPLY. You will need to delete the duplicate records, no way around that.<


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

cobrachen
Starting Member

48 Posts

Posted - 30 March 2009 :  09:09:32  Show Profile
I have tried to archive different boards in my forum several times and all of them failed. I used to have MS SQL Server and never had this problems before. Now I can not archive and have to run my own SQL to clena out those duplicated records.

So far my experience told me that the archive function does not work well with MySQL. Anyone has any solutions or work around? Much appreciate.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 30 March 2009 :  11:33:09  Show Profile  Send ruirib a Yahoo! Message
The archive function works the same with all databases. Maybe your web server / db server configuration has changed and that is affecting the archive function. I know a lot of MySQL forums where archiving just proceeds smoothly.


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

cobrachen
Starting Member

48 Posts

Posted - 30 March 2009 :  13:52:48  Show Profile
ruirib,

Could you give me some examples of changes that may affect archive process?

Thanks.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 30 March 2009 :  14:56:41  Show Profile  Send ruirib a Yahoo! Message
I just meant that you may have now a web server, Db server too loaded to handle the archiving process. You can increase the page timeout, may help.


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

cobrachen
Starting Member

48 Posts

Posted - 30 March 2009 :  15:56:25  Show Profile
How do I change the page timeout from the forum settings without chnage the source code? I can not access the server since I am using a hosting service.

Thanks.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 30 March 2009 :  16:37:58  Show Profile  Send ruirib a Yahoo! Message
http://classicasp.aspfaq.com/general/how-do-i-increase-timeout-values.html


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

cobrachen
Starting Member

48 Posts

Posted - 30 March 2009 :  17:18:33  Show Profile
ruirib,

I believe that you mean the changes should make to the page which runs archive process, correct?
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 30 March 2009 :  17:36:24  Show Profile  Send ruirib a Yahoo! Message
Yes.


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

cobrachen
Starting Member

48 Posts

Posted - 12 April 2009 :  13:52:32  Show Profile
I just tried another round with much less record to archive and here is the error message:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Driver Manager] Invalid string or buffer length

/cobrachen/forum/admin_forums.asp, line 503

I have to clean out the bad record from the database myself again. If you have any idea of waht happened, much appreciate.
Go to Top of Page

SiSL
Average Member

Turkey
671 Posts

Posted - 12 April 2009 :  14:02:21  Show Profile  Visit SiSL's Homepage
While I use SQLserver specific function for it, I really think standard Archive function needs some changes... Such as:

Limit number of records per-pass, and redirect page back to whichever step till it is done.

Like max 100 records per pass... It gave me quite headache before...

CHIP Online Forum

My Mods
Select All Code | Fix a vulnerability for your private messages | Avatar Categories W/ Avatar Gallery Mod | Complaint Manager
Admin Level Revisited | Merge Forums | No More Nested Quotes Mod
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 12 April 2009 :  14:31:14  Show Profile  Send ruirib a Yahoo! Message
The problem with MySQL engine used in most forums, is that there is no support for transactions, so doing what can be done with SQL Server (the script SiSL is talking about supports that), is not possible.

Anyway, this is a case where the use of Access really limits what we can do, even if we probably would need to have different scripts for different DBs.


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

cobrachen
Starting Member

48 Posts

Posted - 12 April 2009 :  14:39:55  Show Profile
So for the archive with MySQL, any suggestions?

Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 12 April 2009 :  14:54:13  Show Profile  Visit modifichicci's Homepage
only to try, as the function is working well on my mysql and in some others i have installed, try adding
delrep.CursorLocation=AdUseClient

after
strsql = "select * from " & strTablePrefix & "REPLY WHERE REPLY_ID = " & drs("REPLY_ID") about line 498..

mybe it is not the solution, but trying it it's so short time...

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 12 April 2009 :  14:55:22  Show Profile  Send ruirib a Yahoo! Message
That last error seems a different error, not at timeout thing, not really sure what happened.
I would suggest a forum by forum archive and for a small time period, to minimize the occurrance of errors.

For the reasons explained here, the SQL Server version I wrote is not available. Can't write one for MySQL, not at this moment.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 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 0.12 seconds. Powered By: Snitz Forums 2000 Version 3.4.07