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: MS SQL Server
 deleted thread recovery?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

fastrax
Starting Member

35 Posts

Posted - 05 March 2006 :  04:35:54  Show Profile
So I was cleaning up some spam by posters and managed to delete a thread of 7 pages. Just wondering if there is anyway of recovering the thread. My backup is a few days old and I don't want to go back that far in time, if I don't have to.

Stats
SQL 2000
modded snitz 3.4.04
I have access to the SQL server, if it helps me... Any help would be great or just put me out of my misery.

If I do have to revert to the backup of the database, can I just "copy and paste" the thread from the backup to the production database?

Edited by - fastrax on 05 March 2006 04:47:25

laser
Advanced Member

Australia
3859 Posts

Posted - 05 March 2006 :  06:17:59  Show Profile
The short answer is there is no undelete.

The long answer is to restore the database.

The longer answer is that if you can restore your backup to another location and pull only those records that make the thread (you can use TOPIC_ID in the tables), then insert THOSE records into your current database.

Obviously backup before you do any of this
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 05 March 2006 :  06:22:04  Show Profile  Send ruirib a Yahoo! Message
It's not as simple as copying, cause you probably would have changes of Ids. If you could restore the database with some other name, then you could possibly create a query to retrieve the topic in question and another to retrieve its replies. For each query, you could use DTS to import the data from the backup DB to the live DB, making sure that you configure DTS to preserver identity values.


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

laser
Advanced Member

Australia
3859 Posts

Posted - 05 March 2006 :  15:46:56  Show Profile
What IDs would you have to change ? I can't think of any. The topic_id would not be reused.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 05 March 2006 :  15:56:49  Show Profile  Send ruirib a Yahoo! Message
If he simply copied and pasted a new topic id would be generated, since topic id is an identity field.


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

laser
Advanced Member

Australia
3859 Posts

Posted - 06 March 2006 :  03:30:50  Show Profile
I didn't say anything about copy & paste ... but whatever !

Go to Top of Page

fastrax
Starting Member

35 Posts

Posted - 13 March 2006 :  22:43:23  Show Profile
Sorry I didn't get back and let you know what has happened. I learned that I forgot to include the SQL data base when I built this server and consequently I lost the info. thankfully this valuable lesson on checking your backups periodically was not huge loss. I was able to recover most of what was posted in the thread using the trick of work offline. I think I lost only one page in the end and now the back up is doing the data base as well. Live and learn. Thanks for your help guys.
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 0.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07