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
 Multiple forums in 1 SQL Server database?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

twd76
Starting Member

2 Posts

Posted - 18 February 2004 :  14:11:26  Show Profile  Visit twd76's Homepage
I need to have 2 totally separate forums for 2 separate set of users. Is this possible using the same SQL Server database?

Thanks in advance!

NorwegianViking
Junior Member

Denmark
119 Posts

Posted - 18 February 2004 :  16:11:30  Show Profile  Visit NorwegianViking's Homepage
That should be easy.
In SQL server you can have as many databases you like.
Two different databases. Each with a complete set of the DB's
Two different directories on your server, with duplicate instances of the forum SW, and then two different config.asp with points to each db.

kind regards
NorwegianViking

Mod installation for beginners | User registration problems?
Go to Top of Page

Radianation
Junior Member

USA
186 Posts

Posted - 18 February 2004 :  16:31:46  Show Profile  Visit Radianation's Homepage  Send Radianation an ICQ Message
So you just set the prefix from forum_ to something like forum1_ forum2_ etc ??
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 18 February 2004 :  19:29:59  Show Profile  Send ruirib a Yahoo! Message
You can, in fact, have two forums in the same database. There have been posts in the past that describe precisely what to do to achieve that. Try using the search.

NorwegianViking, with an hosting account is not that common to have more than a database. In that case, it's possible to use the same DB, and Snitz allows it through the use of table prefixes.


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

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 18 February 2004 :  19:40:29  Show Profile  Send ruirib a Yahoo! Message
Here is such a post: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=49982&SearchTerms=2,forums,1,DB

However, with SQL server, things are much simpler. Just do this:

1. Create a new folder and copy the forum files there.
2. Open the config.asp file for the second forum and change the value of the variables strTablePrefix, strMemberTablePrefix and strFilterTablePrefix to FORUM2_.

3. Run setup.asp now. Specify a user name and a password to the admin.

4. If setup went well, and if you want to have the same members to both forums go to config.asp again and set strMemberTablePrefix to the initial value (likely FORUM_, if you haven't changed it when you first setup your first forum. If you don't want to have the same set of members, skip this step altogether.

5. If having the same set of members, you can now delete FORUM2_MEMBERS. If not, you're done.

6. You should have two working forums in the same DB, now.


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

twd76
Starting Member

2 Posts

Posted - 19 February 2004 :  15:40:50  Show Profile  Visit twd76's Homepage
Thanks, ruirib ... that's exactly what I needed to know.

I must humbly admit that after reading your post I went back to the readme.htm and found the information in there. I should have thought about that before posting. Sorry!
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 19 February 2004 :  17:58:04  Show Profile  Send ruirib a Yahoo! Message
No problem, glad I could help.


Snitz 3.4 Readme | Like the support? Support Snitz too
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.22 seconds. Powered By: Snitz Forums 2000 Version 3.4.07