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
 File Attachment Mod db uddate
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

mb
Starting Member

9 Posts

Posted - 26 April 2001 :  09:03:25  Show Profile
What is wrong by the sql statement
Adding Column...


File Attachment Mod

Creating table(s)...
CREATE TABLE FORUM_USERFILES( F_FILEID COUNTER CONSTRAINT PrimaryKey PRIMARY KEY , MEMBER_ID int NOT NULL , F_FILENAME text (255) NOT NULL , F_FILESIZE int NULL , F_REPLY_ID int NULL , F_TOPIC_ID int NULL )
-2147217900 | [Microsoft][ODBC Microsoft Access 97 Driver] Table 'FORUM_USERFILES' already exists.

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

Adding Column...
ALTER TABLE FORUM_MEMBERS ADD COLUMN M_ALLOWDOWNLOADS int NULL DEFAULT 1
-2147217900 | [Microsoft][ODBC Microsoft Access 97 Driver] Syntax error in ALTER TABLE statement.
Adding Column...
ALTER TABLE FORUM_MEMBERS ADD COLUMN M_ALLOWUPLOADS int NULL DEFAULT 1
-2147217900 | [Microsoft][ODBC Microsoft Access 97 Driver] Syntax error in ALTER TABLE statement.
Table(s) updated

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

Updating Forum Values..
DELETE FROM FORUM_MODS WHERE (M_NAME = 'Attachment' OR M_CODE = 'Attachment')

Value(s) updated succesfully
--------------------------------------------------------------------------------

Adding new records..
INSERT INTO FORUM_MODS (M_NAME,M_CODE,M_VALUE) VALUES ('Attachment','faMaxSize','512')
INSERT INTO FORUM_MODS (M_NAME,M_CODE,M_VALUE) VALUES ('Attachment','faExtensions','.zip:.mdb:.txt:.asp')
INSERT INTO FORUM_MODS (M_NAME,M_CODE,M_VALUE) VALUES ('HModEnable','Attachment','1')

Value(s) updated succesfully



mb
Starting Member

9 Posts

Posted - 26 April 2001 :  09:41:38  Show Profile
Could it be possible that database driver
not understand default syntax
ALTER TABLE FORUM_MEMBERS ADD COLUMN M_ALLOWDOWNLOADS int NULL DEFAULT 1
After edit the .dbs file without #1
the columns will write in the db

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 26 April 2001 :  14:55:16  Show Profile  Visit HuwR's Homepage
You are correct, for some reason the access97 driver does not like the default syntax, and I can't find any info on what it might be, so what you did was ok

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