Author |
Topic  |
MarkJH
Senior Member
   
United Kingdom
1722 Posts |
Posted - 13 March 2007 : 12:07:55
|
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 |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 13 March 2007 : 15:01:41
|
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 |
 |
|
MarkJH
Senior Member
   
United Kingdom
1722 Posts |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 13 March 2007 : 18:19:18
|
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 |
 |
|
MarkJH
Senior Member
   
United Kingdom
1722 Posts |
Posted - 14 March 2007 : 13:55:19
|
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? |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
|
MarkJH
Senior Member
   
United Kingdom
1722 Posts |
Posted - 20 March 2007 : 13:42:14
|
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 |
 |
|
Topic  |
|
|
|