Author |
Topic |
SaiyanJin
Junior Member
115 Posts |
Posted - 21 February 2001 : 16:57:01
|
Adding Column... ALTER TABLE FORUM_GUESTBOOK ADD COLUMN G_VARFIELD1 VARCHAR (100) NULL -2147217887 | Field 'G_VARFIELD1' already exists in table 'FORUM_GUESTBOOK'. Adding Column... ALTER TABLE FORUM_GUESTBOOK ADD COLUMN G_VARFIELD2 VARCHAR (100) NULL -2147217887 | Field 'G_VARFIELD2' already exists in table 'FORUM_GUESTBOOK'. Adding Column... ALTER TABLE FORUM_GUESTBOOK ADD COLUMN G_VARFIELD3 VARCHAR (100) NULL -2147217887 | Field 'G_VARFIELD3' already exists in table 'FORUM_GUESTBOOK'. Table(s) updated
--------------------------------------------------------------------------------
Creating table(s)... CREATE TABLE FORUM_GB_OPTIONS( G_ID int IDENTITY (1, 1) NOT NULL , G_VARFIELD1 VARCHAR (100) NULL , G_VARFIELD2 VARCHAR (100) NULL , G_VARFIELD3 VARCHAR (100) NULL , G_V1_SWITCH INT NOT NULL , G_V2_SWITCH INT NOT NULL , G_V3_SWITCH INT NOT NULL ) -2147217900 | Table 'FORUM_GB_OPTIONS' already exists.
--------------------------------------------------------------------------------
Adding new records.. INSERT INTO FORUM_GB_OPTIONS (G_V1_SWITCH, G_V2_SWITCH, G_V3_SWITCH, G_VARFIELD1, G_VARFIELD2, G_VARFIELD3) VALUES (0, 0, 0, 'ab', 'ab', 'ab') -2147217900 | The INSERT INTO statement contains the following unknown field name: 'G_VARFIELD2'. Make sure you have typed the name correctly, and try the operation again.
that's the error I got. What's wrong? I'm not confuse with the first 3 but the forth one is a definite error. I ran it twice, that's why I got that "already exist" message.
|
|
|
SaiyanJin
Junior Member
115 Posts |
Posted - 21 February 2001 : 17:10:40
|
never mind.
I manually changed the mis-spelled column name in the database. stimulator, you should double check and change the spelling on the code to create the database.
|
|
|
milez
Starting Member
USA
19 Posts |
Posted - 21 February 2001 : 19:49:44
|
Creating table(s)... CREATE TABLE FORUM_GUESTBOOK( G_ID COUNTER CONSTRAINT PrimaryKey PRIMARY KEY , G_NAME#VARCHAR (50)#NOT NULL# NOT NULL , G_EMAIL#VARCHAR (100)#NOT NULL# NOT NULL , G_WEBSITE#VARCHAR (100)#NULL# NOT NULL , G_ICQ#VARCHAR (30)#NULL# NOT NULL , G_MESSAGE#memo#NOT NULL# NOT NULL , G_DATE#VARCHAR (50)#NOT NULL# NOT NULL , G_VARFIELD1#VARCHAR (100)#NULL# NOT NULL , G_VARFIELD2#VARCHAR (100)#NULL# NOT NULL , G_VARFIELD3#VARCHAR (100)#NULL# NOT NULL ) -2147217900 | Syntax error in field definition. CREATE TABLE FORUM_GB_OPTIONS( G_ID COUNTER CONSTRAINT PrimaryKey PRIMARY KEY , G_VARFIELD1#VARCHAR (100)#NULL# NOT NULL , G_VARFILED2#VARCHAR (100)#NULL# NOT NULL , G_VARFIELD3#VARCHAR (100)#NULL# NOT NULL , G_V1_SWITCH#INT#NOT NULL# NOT NULL , G_V2_SWITCH#INT#NOT NULL# NOT NULL , G_V3_SWITCH#INT#NOT NULL# NOT NULL , G_V3_SWITCH#INT#NOT NULL# NOT NULL , G_V3_SWITCH#INT#NOT NULL# NOT NULL , G_V3_SWITCH#INT#NOT NULL# NOT NULL ) -2147217900 | Syntax error in field definition.
--------------------------------------------------------------------------------
Adding new records.. INSERT INTO FORUM_GB_OPTIONS -2147217900 | Syntax error in INSERT INTO statement.
--------------------------------------------------------------------------------
I get this error when I run the mod_dbsetup.asp. Any idea whats causing this? I'm using Version 3.1 SR4
|
|
|
Björn
Starting Member
19 Posts |
Posted - 22 February 2001 : 04:40:01
|
I tried your mod today and when I ran your mod_dbsetup.asp I got this: maybe you know what it means
Creating table(s)... CREATE TABLE FORUM_GUESTBOOK( G_ID int COUNTER NOT NULL , G_NAME VARCHAR (50) NOT NULL , G_EMAIL VARCHAR (100) NOT NULL , G_WEBSITE VARCHAR (100) NULL , G_ICQ VARCHAR (30) NULL , G_MESSAGE memo NOT NULL , G_DATE VARCHAR (50) NOT NULL , G_VARFIELD1 VARCHAR (100) NULL , G_VARFIELD2 VARCHAR (100) NULL , G_VARFIELD3 VARCHAR (100) NULL ) -2147217900 | [Microsoft][ODBC Microsoft Access Driver] Syntaxfehler in CREATE TABLE-Anweisung.
Creating table(s)... CREATE TABLE FORUM_GB_OPTIONS( G_ID int COUNTER NOT NULL , G_VARFIELD1 VARCHAR (100) NULL , G_VARFILED2 VARCHAR (100) NULL , G_VARFIELD3 VARCHAR (100) NULL , G_V1_SWITCH INT NOT NULL , G_V2_SWITCH INT NOT NULL , G_V3_SWITCH INT NOT NULL ) -2147217900 | [Microsoft][ODBC Microsoft Access Driver] Syntaxfehler in CREATE TABLE-Anweisung.
Adding new records.. INSERT INTO FORUM_GB_OPTIONS (G_V1_SWITCH, G_V2_SWITCH, G_V3_SWITCH, G_VARFIELD1, G_VARFIELD2, G_VARFIELD3) VALUES (0, 0, 0, 'ab', 'ab', 'ab') -2147217865 | [Microsoft][ODBC Microsoft Access Driver] Ausgabetabelle 'FORUM_GB_OPTIONS' nicht gefunden.
|
|
|
Da_Stimulator
DEV Team Forum Moderator
USA
3373 Posts |
Posted - 22 February 2001 : 15:26:11
|
quote:
Adding Column... ALTER TABLE FORUM_GUESTBOOK ADD COLUMN G_VARFIELD1 VARCHAR (100) NULL -2147217887 | Field 'G_VARFIELD1' already exists in table 'FORUM_GUESTBOOK'. Adding Column... ALTER TABLE FORUM_GUESTBOOK ADD COLUMN G_VARFIELD2 VARCHAR (100) NULL -2147217887 | Field 'G_VARFIELD2' already exists in table 'FORUM_GUESTBOOK'. Adding Column... ALTER TABLE FORUM_GUESTBOOK ADD COLUMN G_VARFIELD3 VARCHAR (100) NULL -2147217887 | Field 'G_VARFIELD3' already exists in table 'FORUM_GUESTBOOK'. Table(s) updated
--------------------------------------------------------------------------------
Creating table(s)... CREATE TABLE FORUM_GB_OPTIONS( G_ID int IDENTITY (1, 1) NOT NULL , G_VARFIELD1 VARCHAR (100) NULL , G_VARFIELD2 VARCHAR (100) NULL , G_VARFIELD3 VARCHAR (100) NULL , G_V1_SWITCH INT NOT NULL , G_V2_SWITCH INT NOT NULL , G_V3_SWITCH INT NOT NULL ) -2147217900 | Table 'FORUM_GB_OPTIONS' already exists.
--------------------------------------------------------------------------------
Adding new records.. INSERT INTO FORUM_GB_OPTIONS (G_V1_SWITCH, G_V2_SWITCH, G_V3_SWITCH, G_VARFIELD1, G_VARFIELD2, G_VARFIELD3) VALUES (0, 0, 0, 'ab', 'ab', 'ab') -2147217900 | The INSERT INTO statement contains the following unknown field name: 'G_VARFIELD2'. Make sure you have typed the name correctly, and try the operation again.
that's the error I got. What's wrong? I'm not confuse with the first 3 but the forth one is a definite error. I ran it twice, that's why I got that "already exist" message.
You sould not need to run the update unless you are upgrading. I've fixed the misspelled field name... I fixed it like 2 minutes after I uploaded cuz I realized it when testing. Sorry about that.
------- Da_Stimulator Snitz Forums Dev Team Member Snitz Test Center Need a Mod? |
|
|
Da_Stimulator
DEV Team Forum Moderator
USA
3373 Posts |
Posted - 22 February 2001 : 15:26:32
|
quote:
Creating table(s)... CREATE TABLE FORUM_GUESTBOOK( G_ID COUNTER CONSTRAINT PrimaryKey PRIMARY KEY , G_NAME#VARCHAR (50)#NOT NULL# NOT NULL , G_EMAIL#VARCHAR (100)#NOT NULL# NOT NULL , G_WEBSITE#VARCHAR (100)#NULL# NOT NULL , G_ICQ#VARCHAR (30)#NULL# NOT NULL , G_MESSAGE#memo#NOT NULL# NOT NULL , G_DATE#VARCHAR (50)#NOT NULL# NOT NULL , G_VARFIELD1#VARCHAR (100)#NULL# NOT NULL , G_VARFIELD2#VARCHAR (100)#NULL# NOT NULL , G_VARFIELD3#VARCHAR (100)#NULL# NOT NULL ) -2147217900 | Syntax error in field definition. CREATE TABLE FORUM_GB_OPTIONS( G_ID COUNTER CONSTRAINT PrimaryKey PRIMARY KEY , G_VARFIELD1#VARCHAR (100)#NULL# NOT NULL , G_VARFILED2#VARCHAR (100)#NULL# NOT NULL , G_VARFIELD3#VARCHAR (100)#NULL# NOT NULL , G_V1_SWITCH#INT#NOT NULL# NOT NULL , G_V2_SWITCH#INT#NOT NULL# NOT NULL , G_V3_SWITCH#INT#NOT NULL# NOT NULL , G_V3_SWITCH#INT#NOT NULL# NOT NULL , G_V3_SWITCH#INT#NOT NULL# NOT NULL , G_V3_SWITCH#INT#NOT NULL# NOT NULL ) -2147217900 | Syntax error in field definition.
--------------------------------------------------------------------------------
Adding new records.. INSERT INTO FORUM_GB_OPTIONS -2147217900 | Syntax error in INSERT INTO statement.
--------------------------------------------------------------------------------
I get this error when I run the mod_dbsetup.asp. Any idea whats causing this? I'm using Version 3.1 SR4
Update your mod_dbsetup.asp to the current version, included in the zip.
quote:
Creating table(s)... CREATE TABLE FORUM_GUESTBOOK( G_ID int COUNTER NOT NULL , G_NAME VARCHAR (50) NOT NULL , G_EMAIL VARCHAR (100) NOT NULL , G_WEBSITE VARCHAR (100) NULL , G_ICQ VARCHAR (30) NULL , G_MESSAGE memo NOT NULL , G_DATE VARCHAR (50) NOT NULL , G_VARFIELD1 VARCHAR (100) NULL , G_VARFIELD2 VARCHAR (100) NULL , G_VARFIELD3 VARCHAR (100) NULL ) -2147217900 | [Microsoft][ODBC Microsoft Access Driver] Syntaxfehler in CREATE TABLE-Anweisung.
Creating table(s)... CREATE TABLE FORUM_GB_OPTIONS( G_ID int COUNTER NOT NULL , G_VARFIELD1 VARCHAR (100) NULL , G_VARFILED2 VARCHAR (100) NULL , G_VARFIELD3 VARCHAR (100) NULL , G_V1_SWITCH INT NOT NULL , G_V2_SWITCH INT NOT NULL , G_V3_SWITCH INT NOT NULL ) -2147217900 | [Microsoft][ODBC Microsoft Access Driver] Syntaxfehler in CREATE TABLE-Anweisung.
Adding new records.. INSERT INTO FORUM_GB_OPTIONS (G_V1_SWITCH, G_V2_SWITCH, G_V3_SWITCH, G_VARFIELD1, G_VARFIELD2, G_VARFIELD3) VALUES (0, 0, 0, 'ab', 'ab', 'ab') -2147217865 | [Microsoft][ODBC Microsoft Access Driver] Ausgabetabelle 'FORUM_GB_OPTIONS' nicht gefunden.
Change the strConnString in your config.asp to the access 2000 connstring.
------- Da_Stimulator Snitz Forums Dev Team Member Snitz Test Center Need a Mod? |
|
|
Björn
Starting Member
19 Posts |
Posted - 22 February 2001 : 17:07:20
|
Hej Da_Stimulator,
I changed the string to Access2000 as you told me but now I got the misspelling mistake:
Adding new records.. INSERT INTO FORUM_GB_OPTIONS (G_V1_SWITCH, G_V2_SWITCH, G_V3_SWITCH, G_VARFIELD1, G_VARFIELD2, G_VARFIELD3) VALUES (0, 0, 0, 'ab', 'ab', 'ab') -2147217900 | The INSERT INTO statement contains the following unknown field name: 'G_VARFIELD2'. Make sure you have typed the name correctly, and try the operation again.
Downloaded your guestbook.zip again but the wrong spelling hasn't been fixed so far. Can you send me the update for the mod_dbsetup.asp because I don't know where to change so that everything will work?
Thanks, Björn
|
|
|
rick7165
Senior Member
USA
1094 Posts |
Posted - 22 February 2001 : 17:15:57
|
What I did is deleted the FORUM_GB_OPTIONS then ran the guestbook_update.dbs and it worked fine.
Test Site www.eastpasco.com Running on HuwR's SR4 release. Colors and Graphic scheme done by Richard Kinser. |
|
|
Björn
Starting Member
19 Posts |
Posted - 22 February 2001 : 17:59:35
|
Hello Rick,
that worked fine, thanks. The guestbook is running now. Just a further question. Is it possible to integrate the guestbook with the normal forums - so one can see them together on one html-page? But you don't have to register for posting inside the guestbook?
Björn
|
|
|
rick7165
Senior Member
USA
1094 Posts |
Posted - 22 February 2001 : 18:06:56
|
You can do that, but your forums would get very long... I would just set it up like Da_Stimulator said... I put a link to it in my inc_top.asp file.
You can reset the number of guest sign the book in guestbook.asp file on line 8 strGuestbookPageSize = 10 I moved mine up to 25.. Slows down some but keeps from going thru so many pages.
Test Site www.eastpasco.com Running on HuwR's SR4 release. Colors and Graphic scheme done by Richard Kinser. |
|
|
Da_Stimulator
DEV Team Forum Moderator
USA
3373 Posts |
Posted - 22 February 2001 : 18:25:47
|
Ok, zip updated with mispelling fix. Sorry about that guys. If you need to fix this, download drop.dbs To drop the Config table, then run the update from mod_dbsetup.asp.
The zip is also updated with the latest mod_dbsetup.asp, which you need to drop the table. I recommend only doing this if you are having one of the above errors.
The guestbook was made to be separate from the forums, but it contains the same look and feel. Just link to it from inc_top.asp or something, It cannot be run outside of snitz because of the functions and database use. You are not required to register to view/sign the guestbook.
------- Da_Stimulator Snitz Forums Dev Team Member Snitz Test Center Need a Mod? |
|
|
blackinwhite
Average Member
Turkey
657 Posts |
Posted - 22 February 2001 : 21:06:01
|
Thanks Da_Stimulator. It worked fine.
|
|
|
Oudie
New Member
Taiwan
70 Posts |
Posted - 22 February 2001 : 22:38:30
|
I have some suggest. I think it can put some picture(like our picture or .....) in message's right.
¤d¨½¬î¤ô¤@Àþ¶¡, ¤Ñ¦a¿W§Ú¼Ö¯«¥P; ²ö°Ý¬õ¹Ð·Ð´o¨Æ, ³p»»¨«¹M¤Ñ¥~¤Ñ... |
|
|
Björn
Starting Member
19 Posts |
Posted - 23 February 2001 : 04:27:12
|
Now it's working fine, thanks Da_Stimulator . Just another question. Is it possible to change the link colour only for the guestbook or does it always have to be the same as in the "normal" forums? And if it's possible,how? I'm questioning since I have problems seeing the links due to my colour choices.
Björn
|
|
|
rick7165
Senior Member
USA
1094 Posts |
Posted - 23 February 2001 : 08:06:13
|
Da_Stimulator sorry to bother you once again, but I'm trying to convert in the guestbook where the user name is... Right now if you click it your email client will open up. I wanted to use the CDONTS client, but I figured a better way for this to work for me. and in the process of learning I keep screwing up the guestbook.asp file. What I want that to do instead of opening email is to open thier profile.
Can you help me with this?
BTW.. I have the guestbook locked for members only.
Test Site www.eastpasco.com Running on HuwR's SR4 release. Colors and Graphic scheme done by Richard Kinser.
Edited by - rick7165 on 23 February 2001 08:08:58 |
|
|
Topic |
|
|
|