Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Bug Reports (Closed)
 Bug 3.4.1? admin_mod_dbsetup.asp
 Forum Locked  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Aaron S.
Average Member

USA
985 Posts

Posted - 24 August 2002 :  12:38:06  Show Profile  Visit Aaron S.'s Homepage
When I added a dbs file, I got this message:

CREATE TABLE FORUM_SMILES( S_ID int IDENTITY (1, 1) PRIMARY KEY NOT NULL , S_CODE varchar(15) NULL , S_URL varchar(250) NULL , S_DESC varchar(250) NULL , S_VISIBLE int NULL DEFAULT 1, S_ENABLED varchar(20) NULL , S_COLSPAN int NULL DEFAULT 1)
CREATE TABLE FORUM_SMILES( S_ID int IDENTITY (1, 1) PRIMARY KEY NOT NULL , S_CODE varchar(15) NULL , S_URL varchar(250) NULL , S_DESC varchar(250) NULL , S_VISIBLE int NULL DEFAULT 1, S_ENABLED varchar(20) NULL , S_COLSPAN int NULL DEFAULT 1)
-2147217865 | Table 'FORUM_SMILES' does not exist.

It looks like it is running the sql stmt twice.

The dbs seemed to work fine... with all additions being made to the database.

--Aaron


DOWNLOAD GREAT NEW MODS HERE

Edited by - Aaron S. on 24 August 2002 12:41:06

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 24 August 2002 :  16:13:49  Show Profile
can you post the contents of the DBS file? DBS files must conform to a very specific format, I bet I know what it is though:

for example, the varchar(15) should be: varchar (15)

there should be a space in between the datatype and the size in parenthesis
Go to Top of Page

Aaron S.
Average Member

USA
985 Posts

Posted - 24 August 2002 :  17:00:21  Show Profile  Visit Aaron S.'s Homepage
Adding that space didn't seem to help... here is the dbs file contents:

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

Smile Manager 3.4
[DROP]
SMILES
[END]
[CREATE]
SMILES
S_ID
S_CODE#VARCHAR (15)#NULL#
S_URL#VARCHAR (250)#NULL#
S_DESC#VARCHAR (250)#NULL#
S_VISIBLE#int#NULL#1#
S_ENABLED#VARCHAR (20)#NULL#
S_COLSPAN#int#NULL#1#
[END]
[DROP]
SMILES2
[END]
[CREATE]
SMILES2
S2_ID
S2_ALLOWEDIT#int#NULL#1#
[END]
[INSERT]
Smiles2
(S2_ALLOWEDIT)#(1)
[END]
[CREATE]
MEMBERS_SMILES
MS_ID
MEMBER_ID#int#NULL#
S_ID#int#NULL#
[END]

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

Thanks for the help.

--Aaron

DOWNLOAD GREAT NEW MODS HERE
Go to Top of Page

Aaron S.
Average Member

USA
985 Posts

Posted - 24 August 2002 :  17:24:59  Show Profile  Visit Aaron S.'s Homepage
The error message probably comes from the fact that I do a DROP even though there is no table (clean install)... but I am confused why the list is duplicated.

--Aaron


DOWNLOAD GREAT NEW MODS HERE
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 24 August 2002 :  17:30:16  Show Profile
just go through and uncomment all of the:

'on error resume next

lines.

The error is being shown for the last operation, and is not being cleared for the next, so even though the next operation is successful, it's showing the error from the last operation.
Go to Top of Page

Aaron S.
Average Member

USA
985 Posts

Posted - 24 August 2002 :  17:35:50  Show Profile  Visit Aaron S.'s Homepage
That fixed it.

--Aaron

DOWNLOAD GREAT NEW MODS HERE
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 24 August 2002 :  17:37:53  Show Profile  Visit HuwR's Homepage
I think you'll find this lineis the culprit
S2_ALLOWEDIT#int#NULL#1#

it has an extra # at the end of the line which should not be there
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 24 August 2002 :  17:46:48  Show Profile
Huw, it was something I did. I had commented out most of the on error resume next lines, but doing so was causing the err from the previous operation to still be reported.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 24 August 2002 :  18:31:26  Show Profile  Visit HuwR's Homepage
yes I know, but that line is what was throughing the error, putting back the on error resume next just lets it carry on after the error.
Go to Top of Page

Aaron S.
Average Member

USA
985 Posts

Posted - 24 August 2002 :  18:59:45  Show Profile  Visit Aaron S.'s Homepage
I thought the error was being caused by dropping a table that doesn't exist.

--Aaron


DOWNLOAD GREAT NEW MODS HERE
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 24 August 2002 :  20:55:40  Show Profile  Visit HuwR's Homepage
yes, but you're also getting an error because of the extra #.

the on error resume next statements are all there for a reason, they should not be commented out, the code traps the errors returned to find out what is going on, otherwise it does what it did for aaron and stops if there is an error.
Go to Top of Page

Aaron S.
Average Member

USA
985 Posts

Posted - 24 August 2002 :  23:43:41  Show Profile  Visit Aaron S.'s Homepage
If I remove the DROP stmts, there are no errors.

So the extra # may be wrong, but it is not causing any problems.

--Aaron


DOWNLOAD GREAT NEW MODS HERE
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 28 August 2002 :  23:01:23  Show Profile
this is fixed in v3.4.02
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.17 seconds. Powered By: Snitz Forums 2000 Version 3.4.07