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: MOD Implementation
 Required Reading - DBS Error
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

weeweeslap
Senior Member

USA
1077 Posts

Posted - 14 December 2008 :  19:12:15  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message

Required Reading v1.0

Adding new records..
INSERT INTO FORUM_CONFIG (C_VARIABLE,C_VALUE) VALUES ("TPID","0")
INSERT INTO FORUM_CONFIG (C_VARIABLE,C_VALUE) VALUES ("TPID","0")
-2147217900 | [Microsoft][ODBC SQL Server Driver][SQL Server]The name 'TPID' is not permitted in this context. Only constants, expressions, or variables allowed here. Column names are not permitted.

--------------------------------------------------------------------------------

Adding Column M_REQUIRED...
ALTER TABLE FORUM_MEMBERS ADD M_REQUIRED int NULL DEFAULT 0
Column added successfully
UPDATE FORUM_MEMBERS SET M_REQUIRED=0
Populating Current Records with new Default value
Table(s) updated

I am on SQl server and obtained that error message when running the dbs file. Hmm should the mod work after that? I did not proceed with adding it after running the dbs file.<

coaster crazy

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 14 December 2008 :  19:18:24  Show Profile
Actually, that file worked fine with Access. Let me see if I can figure out what the problem is with Sql Server.<

Edited by - Carefree on 14 December 2008 19:20:16
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 14 December 2008 :  19:25:09  Show Profile
I looked at the reserved keywords for Sql Server 2005 and TPID isn't anywhere to be found.

Does anyone have any idea on why this won't work with SQL?<
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 14 December 2008 :  19:26:21  Show Profile
The mod will NOT work without that field, no. Let's see if someone who's a SQL expert can help.<
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 14 December 2008 :  19:40:00  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
ok, thanks.<

coaster crazy
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 14 December 2008 :  20:34:36  Show Profile
I wonder if it'll work from the Alternative Mod Setup option ... it's worth a try.

Click the Alternative Mod Setup link and paste these few lines in and try that:

[insert]
CONFIG
(C_VARIABLE,C_VALUE)#("TPID","0")
[END]

Let me know if it works that way.<
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 14 December 2008 :  20:35:06  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
Forgot to mention I am mssql server 2000/<

coaster crazy
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 14 December 2008 :  20:50:13  Show Profile
Well according to a file I read on Sql Server 2000, you can trick it into accepting a word it's interpreting as reserved. To do so, the word must be enclosed in brackets.

Thus, the alternative mod text would be:
[insert]
CONFIG
(C_VARIABLE,C_VALUE)#("[TPID]","0")
[END]


If it doesn't work the way I posted a couple replies ago, try this one.<
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 14 December 2008 :  20:53:59  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
hmm it did not trick it Here's a copy and paste of the output:

There were 3 lines of code


Database Update


Adding new records..
INSERT INTO FORUM_CONFIG (C_VARIABLE,C_VALUE) VALUES ("[TPID]","0")
INSERT INTO FORUM_CONFIG (C_VARIABLE,C_VALUE) VALUES ("[TPID]","0")
-2147217900 | [Microsoft][ODBC SQL Server Driver][SQL Server]The name '[TPID]' is not permitted in this context. Only constants, expressions, or variables allowed here. Column names are not permitted.

--------------------------------------------------------------------------------

If there were errors please post a question in the MOD Implementation Forum at
Snitz Forums
<

coaster crazy
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 14 December 2008 :  23:47:21  Show Profile
What a pain. I'll rewrite the bits which use that variable and we can try a different name.

OK - rewrote those pages, uploaded back to SnitzBitz.<

Edited by - Carefree on 14 December 2008 23:52:27
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 15 December 2008 :  01:14:11  Show Profile
Maybe he has another column in his database that is called TPID?<

Support Snitz Forums
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 15 December 2008 :  01:50:22  Show Profile
Possibly. I changed the variable in all the pages to eliminate the problem.<
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 15 December 2008 :  14:43:24  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
hmmm I tried 1.1 and here's the error message:
quote:


Required Reading v1.0

Adding new records..
INSERT INTO FORUM_CONFIG (C_VARIABLE,C_VALUE) VALUES ("Top_Iden","0")
INSERT INTO FORUM_CONFIG (C_VARIABLE,C_VALUE) VALUES ("Top_Iden","0")
-2147217900 | [Microsoft][ODBC SQL Server Driver][SQL Server]The name 'Top_Iden' is not permitted in this context. Only constants, expressions, or variables allowed here. Column names are not permitted.

--------------------------------------------------------------------------------

Adding Column M_REQUIRED...
ALTER TABLE FORUM_MEMBERS ADD M_REQUIRED int NULL DEFAULT 0
ALTER TABLE FORUM_MEMBERS ADD M_REQUIRED int NULL DEFAULT 0
-2147217900 | [Microsoft][ODBC SQL Server Driver][SQL Server]Column names in each table must be unique. Column name 'M_REQUIRED' in table 'FORUM_MEMBERS' is specified more than once.


I know the second indicates I already have that table due to running the dbs the firs ntime but the first error message is a new one for me, I think?<

coaster crazy
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 15 December 2008 :  15:24:42  Show Profile  Visit Etymon's Homepage
Shouldn't that be FORUM_CONFIG_NEW ? How old is your forum? ... What version of Snitz?<
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 15 December 2008 :  15:47:31  Show Profile
I used the forum_config table, not the new one. I wonder if possibly he doesn't have the forum_config table in his database. I'll write it to use the new config table and see if that resolves it.<
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 15 December 2008 :  16:04:16  Show Profile
OK - I changed it to use the config_new table instead of the config table. It' back out on SnitzBitz.

Don't worry about the error report on forum members table, it already installed the first time you ran it. We just have to solve the first half.<
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next 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 0.51 seconds. Powered By: Snitz Forums 2000 Version 3.4.07