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)
 Retrieving archived posts
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 28 June 2004 :  19:43:49  Show Profile  Send ruirib a Yahoo! Message
It does, Richard, if done from Access.


Snitz 3.4 Readme | Like the support? Support Snitz too

Edited by - ruirib on 28 June 2004 19:44:29
Go to Top of Page

HiRez_L
Starting Member

USA
23 Posts

Posted - 28 June 2004 :  19:45:12  Show Profile
That's what I was worried about . . . I'm pretty sure when the topics were archived, that the topic ID is recalculated, so restoring the archived topics and replies may result in duplicate key fields . . .

Rusty Felty
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 28 June 2004 :  19:48:08  Show Profile  Send ruirib a Yahoo! Message
When topics and replies are archived, all ID's are kept, since there are no autonumber fields in the archive tables.

I tested the restore queries with a Snitz DB and it all went well, as I expected.


Snitz 3.4 Readme | Like the support? Support Snitz too

Edited by - ruirib on 28 June 2004 19:48:48
Go to Top of Page

HiRez_L
Starting Member

USA
23 Posts

Posted - 28 June 2004 :  20:00:04  Show Profile
SO what's the verdict, then? Should I click yes?

Rusty Felty
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 28 June 2004 :  20:08:04  Show Profile  Send ruirib a Yahoo! Message
I can't advise that until you tell me whether the replies are duplicated or not. If the replies are the same, for the same ID's, then you don't even need to do it, since they are already on the replies table.


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

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 28 June 2004 :  20:09:29  Show Profile  Send ruirib a Yahoo! Message
You see I suspect that the replies may have not been deleted, when the archiving was done, so I need to know that.


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

HiRez_L
Starting Member

USA
23 Posts

Posted - 28 June 2004 :  20:15:39  Show Profile
I don't think I can get at the tables to check without clicking through this dialog box.

Rusty Felty
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 28 June 2004 :  20:18:46  Show Profile  Send ruirib a Yahoo! Message
Cancel the dialog box and open the tables. DO not click yes, ok?


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

HiRez_L
Starting Member

USA
23 Posts

Posted - 28 June 2004 :  20:25:25  Show Profile
OK, I cancelled the dialog box and am looking at the tables. I'll take one topic as an example. The first topic in FORUM_A_TOPICS is HTML, and it's TOPIC_ID is 3. FORUM_TOPICS also has a topic HTML with a TOPIC_ID of 3, presumably because the first query worked. Prior to running your query, there was no longer an HTML topic in my forums, unless you clicked on archived forums, where you couldn't reply to any topic. FORUM_A_REPLY has 7 entries with TOPIC_ID 3. FORUM_REPLY has 7 entries with TOPIC_ID 3 . . . so it looks as though you may be right.

Rusty Felty

Edited by - HiRez_L on 28 June 2004 20:26:22
Go to Top of Page

HiRez_L
Starting Member

USA
23 Posts

Posted - 28 June 2004 :  20:33:17  Show Profile
OK, I closed the DB and went to the site, it looks like all the topics are restored . . . except there are 2 copies of each topic. I clicked on several of them, and there are, for each topic, one with all the replies, and one that just has the topic subject . . . anyway. I think I can go in and delete all the no reply duplicates now and be back in business. Thanks for all your help. Any other gotcha's I should watch out for at this point?

Rusty Felty
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 28 June 2004 :  20:34:27  Show Profile  Send ruirib a Yahoo! Message
Try this query...
[code]
SELECT FORUM_A_REPLY.* FROM FORUM_A_REPLY LEFT JOIN FORUM_REPLY ON FORUM_A_REPLY.REPLY_ID=FORUM_REPLY.REPLY_ID WHERE FORUM_REPLY.REPLY_ID IS Null
[code]
How many records does it show?


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

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 28 June 2004 :  20:36:06  Show Profile  Send ruirib a Yahoo! Message
Ok, forget it. I just noticed your post. Just delete the duplicates, and run the queries that delete the archived topics and replies afterwards.


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

HiRez_L
Starting Member

USA
23 Posts

Posted - 28 June 2004 :  21:13:40  Show Profile
Duplicated deleted, all topics restored with their replies. Thanks for the help!

Rusty Felty
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 29 June 2004 :  05:02:13  Show Profile  Send ruirib a Yahoo! Message
You're welcome.


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