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
 Removing Snitz Forum data on SQL database?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

TheGarbageBoy
Starting Member

2 Posts

Posted - 02 November 2004 :  17:23:07  Show Profile
Hi there,

We have a Snitz Forums 2000 Version 3.4.03 setup that has some tables on our SQL server. We are in the process of moving a few things and as a result would like to remove our current setup of Snitz Forums. My concern is I notice the Forum has some data on our SQL server and I don't see any option within the Snitz Forum administration to "uninstall Forum".

I just wondered if anyone could tell me a clean way to remove a Snitz Forum and its data on a SQL server, as opposed to manually deleting content and content folders?

Thanks in advance,
TGB.

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 02 November 2004 :  17:42:15  Show Profile  Send ruirib a Yahoo! Message
AFAIK, there is no such procedure. You'll just have to do it manually.


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

TheGarbageBoy
Starting Member

2 Posts

Posted - 02 November 2004 :  18:17:12  Show Profile
Thanks for your quick reply.

That's ok, I suspected as much.

Cheers.
Go to Top of Page

Podge
Support Moderator

Ireland
3776 Posts

Posted - 03 November 2004 :  09:21:26  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
drop database <insert database name>

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 03 November 2004 :  09:42:07  Show Profile  Send ruirib a Yahoo! Message
quote:
Originally posted by Podge

drop database <insert database name>


If there was nothing else in the databse that you'd want to keep, which didn't look like the case to me...


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

CPO
Starting Member

5 Posts

Posted - 04 November 2004 :  22:03:45  Show Profile
You may be able to use dynamic tsql script to do this, something like this maybe:

select 'DROP TABLE '+ so.name + '
GO' From sysobjects so
where so.name like 'forum_%'

If you run this in the database of your forum, it will give you a script in the results and you copy paste that into the query windo and run it to drop all tables that have a prefix of 'forum_' (which is what i prefixed my tables with, you might have done it differently, just replace the forum_ with whatever your prefix is). I hope this helps and that it works. I'm not responsible if it doesn't since i haven't tried it :)

Here's an sample of my results...

DROP TABLE FORUM_A_REPLY
GO
DROP TABLE FORUM_A_TOPICS
GO
DROP TABLE FORUM_ALLOWED_MEMBERS
GO
DROP TABLE FORUM_BADWORDS
GO
DROP TABLE FORUM_CATEGORY
GO
DROP TABLE FORUM_CONFIG_NEW
GO

By the way, since i didn't test this, i'm not sure about any of the referential integrity or anything (foreign keys and such). Which if there is any, this script won't account for that... It is possible to create a script to do that, but it would probably be easier to just drop them manually...

Hope this helps...

-CPO
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.77 seconds. Powered By: Snitz Forums 2000 Version 3.4.07