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)
 Column Prefix does not match...
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

vpwsys
Starting Member

United Kingdom
10 Posts

Posted - 11 August 2002 :  16:32:48  Show Profile
Hi,

I've literally just installed the current version of Snitz today, on an SQL Server 7.0 installation.

I modified the table prefixes so that the member list used a prefix of "Global_" (so that I can shortly make other sites but share the member list.

I now get:

Microsoft OLE DB Provider for SQL Server error '80040e14'
The column prefix 'Global_FORUM' does not match with a table name or alias name used in the query.

/forum/default.asp, line 211


from the homepage - am I bad? or is there something I should have done first? If not, what needs doing to fix this one?

Cheers
Vince

dayve
Forum Moderator

USA
5820 Posts

Posted - 11 August 2002 :  16:48:02  Show Profile  Visit dayve's Homepage
a query you are trying to execute still has FORUM_ instead of your newly edited GLOBAL_.

I bet the line 211 is the sql execute statement so please post the query which should be a few lines above.

Go to Top of Page

vpwsys
Starting Member

United Kingdom
10 Posts

Posted - 11 August 2002 :  16:52:07  Show Profile
Hello,

Here tis:

'## Forum_SQL - Build SQL to get forums via category
strSql = "SELECT " & strTablePrefix & "FORUM.FORUM_ID, " &_
strTablePrefix & "FORUM.F_STATUS, " &_
strTablePrefix & "FORUM.CAT_ID, " &_
strTablePrefix & "FORUM.F_SUBJECT, " &_
strTablePrefix & "FORUM.F_URL, " &_
strTablePrefix & "FORUM.F_DESCRIPTION, " &_
strTablePrefix & "FORUM.F_TOPICS, " &_
strTablePrefix & "FORUM.F_COUNT, " &_
strTablePrefix & "FORUM.F_LAST_POST, " &_
strTablePrefix & "FORUM.F_TYPE, " &_
strTablePrefix & "FORUM.F_ORDER, " &_
strTablePrefix & "FORUM.F_PRIVATEFORUMS, " &_
strTablePrefix & "FORUM.F_A_COUNT, " &_
strMemberTablePrefix & "FORUM.F_SUBSCRIPTION, " &_
strMemberTablePrefix & "MEMBERS.MEMBER_ID, " &_
strMemberTablePrefix & "MEMBERS.M_NAME " &_
"FROM " & strTablePrefix & "FORUM " &_
"LEFT JOIN " & strMemberTablePrefix & "MEMBERS ON " &_
strTablePrefix & "FORUM.F_LAST_POST_AUTHOR = " &_
strMemberTablePrefix & "MEMBERS.MEMBER_ID " &_
" WHERE " & strTablePrefix & "FORUM.CAT_ID = " & rs("CAT_ID") & " " &_
" ORDER BY " & strTablePrefix & "FORUM.F_ORDER ASC" &_
", " & strTablePrefix & "FORUM.F_SUBJECT ASC;"

Edited by - vpwsys on 11 August 2002 16:58:33
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 11 August 2002 :  16:58:18  Show Profile  Visit dayve's Homepage
you need to change the TABLE NAMES as well.

Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 11 August 2002 :  16:59:43  Show Profile  Visit dayve's Homepage
wait, you want this only on ONE table? and you modified Table Prefix? I think your edits are looking for GLOBAL on all queries and tables then.

Go to Top of Page

vpwsys
Starting Member

United Kingdom
10 Posts

Posted - 11 August 2002 :  17:01:37  Show Profile
Hi,

Yeah, I've modified config.asp as follows:

strTablePrefix = "SiteA_"
strMemberTablePrefix = "Global_"

my SQL Database has got a Global_MEMBERS and then the rest are all SiteA_ prefix...

so now i'm confused :-)
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 11 August 2002 :  17:23:30  Show Profile  Visit dayve's Homepage
add this line right before line 211

response.write strSql

and then copy what it shows on your screen.

you did modify the members table name too right?

Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 August 2002 :  17:32:01  Show Profile  Send ruirib a Yahoo! Message
There are several bugs related to use of different table prefixes. I'll have a look for the links to the fixes, cause you'll experience other similar problems.
I'll post them in a sec...


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

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 August 2002 :  17:33:23  Show Profile  Send ruirib a Yahoo! Message
Ok, read this whole thread: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=30111

There are at least two fixes you'll need to apply, one to default.asp the other to inc_functions.asp.


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

vpwsys
Starting Member

United Kingdom
10 Posts

Posted - 11 August 2002 :  17:52:32  Show Profile
Both - thanks - changed both default.asp and incFunctions.asp and all works now.

Cheers!
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 August 2002 :  17:55:21  Show Profile  Send ruirib a Yahoo! Message
You're welcome .


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