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)
 2 forums side by side
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 13 March 2007 :  12:07:55  Show Profile  Visit MarkJH's Homepage
quote:
1.In EM, right click over the database where the tables you want, exist. In the popup menu, choose, Generate SQL Script~;
2. In the dialog that shows, on the General tab, click Show All. Then click to check All tables. or click individually in the forum tables you want;
3. Click the Options tab. In the table scripting options group, check "script indexes" and then check "script Primary Keys, Foreign keys...";
4. Click the Ok button, pick a file name and location. The script will be generated;

5. Open Query Analizer and connect to the server;
6. Using File -> Open, open the script created in 4 in Query Analizer;
7. Using Edit->Replace, replace all the occurrances of FORUM_ by FORUM2_ in the script;
8. Make sure the database name for the database where you want to create the tables is shown in the dropdown above the SQL editing window in Query Analizer.
9. Execute the script.

The new tables with the proper indexes should have been created by now... but you will have a blank database...

Done all of that. All went well.

Now, when I go into my www.bandlink.net/reviews/default.asp I get this error:

Microsoft OLE DB Provider for SQL Server error '80040e14'

Invalid column name 'FORUM_ID'.

/reviews/default.asp, line 112

Any ideas?

if (strShowModerators = "1") then
	'## Forum_SQL
	strSql = "SELECT MO.FORUM_ID, ME.MEMBER_ID, ME.M_NAME " & _
		 " FROM " & strTablePrefix & "MODERATOR MO" & _
		 " , " & strMemberTablePrefix & "MEMBERS ME"  & _
		 " WHERE (MO.MEMBER_ID = ME.MEMBER_ID )" & _
		 " ORDER BY MO.FORUM_ID, ME.M_NAME"

	Set rsChk = Server.CreateObject("ADODB.Recordset")
	rsChk.open strSql, my_Conn, adOpenForwardOnly, adLockReadOnly, adCmdText

	if rsChk.EOF then
		recModeratorCount = ""
	else
		allModeratorData = rsChk.GetRows(adGetRowsRest)
		recModeratorCount = UBound(allModeratorData,2)
	end if

	rsChk.close
	set rsChk = nothing

	if recModeratorCount = "" then
		fMods = " "
	else
		mFORUM_ID = 0
		mMEMBER_ID = 1
		mM_NAME = 2

		for iModerator = 0 to recModeratorCount
			ModForumID = allModeratorData(mFORUM_ID, iModerator)
			ModMemID = allModeratorData(mMEMBER_ID, iModerator)
			ModMemName = replace(allModeratorData(mM_NAME, iModerator),"|","#124")

			if iModerator = 0 then
				strForumMods = ModForumID & "," & ModMemID & "," & ModMemName
			else
				strForumMods = strForumMods & "|" & ModForumID & "," & ModMemID & "," & ModMemName
			end if
		next
	end if
end if

Edited by - MarkJH on 13 March 2007 12:11:07
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 13 March 2007 :  15:01:41  Show Profile  Send ruirib a Yahoo! Message
Hmmmm, I know what happened... the column should now be named FORUM2_ID. You will need to modify that. You probably have that in all tables where there is a FORUM_ID. Can you use EM to modify the columns that have that name?

Sorry, I caused this. I forgot that some colums also had the FORUM_ prefix. You will need to modify the column names in FORUM2_FORUM, FORUM2_MODERATOR, FORUM2_TOPIC, FORUM2_REPLY... dang...

Don't know whether it will be easier to drop the tables, change the script and recreate them again...

If you post a link to the script here I will edit for you, so that you can recreate the tables again without that problem.


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

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 13 March 2007 :  17:57:41  Show Profile  Visit MarkJH's Homepage
It's okay, I hadn't gone as far as trying to import data. I can quite easily drop the tables and run an updated script.

Here is the script.

Thanks, Rui.

Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 13 March 2007 :  18:19:18  Show Profile  Send ruirib a Yahoo! Message
You don't even need to drop them. Just run this script. Download it, remove the .txt extension and open it in EM and then execute it. I think the previous problems will have been sorted.


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

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 14 March 2007 :  13:55:19  Show Profile  Visit MarkJH's Homepage
The script runs through with only this error (which also occurs in the original script):

Warning: The table 'FORUM2_CONFIG' has been created but its maximum row size (9281) exceeds the maximum number of bytes per row (8060). INSERT or UPDATE of a row in this table will fail if the resulting row length exceeds 8060 bytes.

Is this a problem?
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 14 March 2007 :  14:35:37  Show Profile  Send ruirib a Yahoo! Message
No problems, but the table is not even used with Snitz 3.4.x. It's something that comes from 3.3.x Snitz versions.


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

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 20 March 2007 :  13:42:14  Show Profile  Visit MarkJH's Homepage
Initial testing is working out well. Come across one problem so far, though:

If I create a new forum on my second forums area (the one using FORUM2_FORUM) and create a new forum on the first forums area (the one using FORUM_FORUM) where both forums have the same ID, deleting the forum on the second forums area doesn't delete it from there but deletes it from the the first forums area.

So, deleting a forum on FORUM2_ doesn't remove it from FORUM2_FORUM but removes it from FORUM_FORUM. Would you know why it's not deleting it from FORUM2_FORUM?

Sorry if this is confusing!


Oops. I have a config_pop.asp file that I use for popups, including pop_delete. I hadn't updated that one to FORUM2_ for the strTablePrefix and strFilterTablePrefix. I think this is the reason for my little problem.

Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/

Edited by - MarkJH on 20 March 2007 13:50:14
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 1.55 seconds. Powered By: Snitz Forums 2000 Version 3.4.07