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 MOD-Group
 MOD Add-On Forum (W/Code)
 CLASSIFIEDS mod
 New Topic  Reply to Topic
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 4

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 21 April 2009 :  07:22:38  Show Profile  Reply with Quote
Replace your "dbs_classifieds.asp" with the following, then retry it.


Snitz Classifieds Ads 3.4
[DROP]
ADS_CONTENT
[END]
[DROP]
ADS_CATEGORY
[END]
[CREATE]
ADS_CONTENT
ID
TOPIC_ID#int##
NAME#varchar(75)#NULL#
EMAIL#varchar(50)##
DATE_POSTED#varchar (20)##
PRICE#varchar(20)#NULL#
AD_TITLE#varchar(100)##
CONTENT#memo##
ADDRESS#varchar(100)#NULL#
CITY#varchar(50)##
STATE#varchar(20)##
ZIP#varchar(12)#NULL#
LINK#varchar(100)#NULL#
IMAGE_URL#varchar(75)#NULL#
ADDED_BY#int##
[END]
[CREATE]
ADS_CATEGORY
ID
CATEGORY_NAME#varchar(50)##
DESCRIPTION#memo#NULL#
[END]
[INSERT]
ADS_CATEGORY
(category_name, description)#('Antiques', 'Coins, Furniture, Instruments, Collectibles, more...')
[END]
[INSERT]
ADS_CATEGORY
(category_name, description)#('Computers', 'Accessories, Desktop, Laptop, more...')
[END]
[INSERT]
ADS_CATEGORY
(category_name, description)#('Real Estate', 'Apartments, Condos, more...')
[END]
[INSERT]
ADS_CATEGORY
(category_name, description)#('Automobiles', 'Cars, Imports, Motocycles, more...')
[END]
[INSERT]
ADS_CATEGORY
(category_name, description)#('Wanted', 'Merchandise, Services,  more...')
[END]
[INSERT]
ADS_CATEGORY
(category_name, description)#('Relationships', 'Man seeking Woman, Woman seeking Man, etc...')
[END]
Go to Top of Page

zakazn
New Member

58 Posts

Posted - 21 April 2009 :  07:32:00  Show Profile  Reply with Quote
Thanks for that Carefree - I have done that and now get the following:-


Snitz Classifieds Ads 3.4

Dropping Table..

Table does not exist
Dropping Table..

Table does not exist
Creating table(s)...
CREATE TABLE FORUM_ADS_CONTENT( ID int IDENTITY (1, 1) PRIMARY KEY NOT NULL , TOPIC_ID int NOT NULL , NAME varchar(75) NULL , EMAIL varchar(50) NOT NULL , DATE_POSTED text (20) NOT NULL , PRICE varchar(20) NULL , AD_TITLE varchar(100) NOT NULL , CONTENT memo NOT NULL , ADDRESS varchar(100) NULL , CITY varchar(50) NOT NULL , STATE varchar(20) NOT NULL , ZIP varchar(12) NULL , LINK varchar(100) NULL , IMAGE_URL varchar(75) NULL , ADDED_BY int NOT NULL )
Table already exists

Creating table(s)...
CREATE TABLE FORUM_ADS_CATEGORY( ID int IDENTITY (1, 1) PRIMARY KEY NOT NULL , CATEGORY_NAME varchar(50) NOT NULL , DESCRIPTION memo NULL )
Table already exists

Adding new records..
INSERT INTO FORUM_ADS_CATEGORY (category_name, description) VALUES ('Antiques', 'Coins, Furniture, Instruments, Collectibles, more...')
INSERT INTO FORUM_ADS_CATEGORY (category_name, description) VALUES ('Antiques', 'Coins, Furniture, Instruments, Collectibles, more...')
-2147217865 | [Microsoft][ODBC Microsoft Access Driver] Could not find output table 'FORUM_ADS_CATEGORY'.

Adding new records..
INSERT INTO FORUM_ADS_CATEGORY (category_name, description) VALUES ('Computers', 'Accessories, Desktop, Laptop, more...')
INSERT INTO FORUM_ADS_CATEGORY (category_name, description) VALUES ('Computers', 'Accessories, Desktop, Laptop, more...')
-2147217865 | [Microsoft][ODBC Microsoft Access Driver] Could not find output table 'FORUM_ADS_CATEGORY'.

Adding new records..
INSERT INTO FORUM_ADS_CATEGORY (category_name, description) VALUES ('Real Estate', 'Apartments, Condos, more...')
INSERT INTO FORUM_ADS_CATEGORY (category_name, description) VALUES ('Real Estate', 'Apartments, Condos, more...')
-2147217865 | [Microsoft][ODBC Microsoft Access Driver] Could not find output table 'FORUM_ADS_CATEGORY'.

Adding new records..
INSERT INTO FORUM_ADS_CATEGORY (category_name, description) VALUES ('Automobiles', 'Cars, Imports, Motocycles, more...')
INSERT INTO FORUM_ADS_CATEGORY (category_name, description) VALUES ('Automobiles', 'Cars, Imports, Motocycles, more...')
-2147217865 | [Microsoft][ODBC Microsoft Access Driver] Could not find output table 'FORUM_ADS_CATEGORY'.

Adding new records..
INSERT INTO FORUM_ADS_CATEGORY (category_name, description) VALUES ('Wanted', 'Merchandise, Services, more...')
INSERT INTO FORUM_ADS_CATEGORY (category_name, description) VALUES ('Wanted', 'Merchandise, Services, more...')
-2147217865 | [Microsoft][ODBC Microsoft Access Driver] Could not find output table 'FORUM_ADS_CATEGORY'.

Adding new records..
INSERT INTO FORUM_ADS_CATEGORY (category_name, description) VALUES ('Relationships', 'Man seeking Woman, Woman seeking Man, etc...')
INSERT INTO FORUM_ADS_CATEGORY (category_name, description) VALUES ('Relationships', 'Man seeking Woman, Woman seeking Man, etc...')
-2147217865 | [Microsoft][ODBC Microsoft Access Driver] Could not find output table 'FORUM_ADS_CATEGORY'.
Go to Top of Page

zakazn
New Member

58 Posts

Posted - 21 April 2009 :  11:51:53  Show Profile  Reply with Quote
Does anyone have an idea of why this is happening? Any help would be much appreciated.

Jill
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 21 April 2009 :  13:08:35  Show Profile  Visit AnonJr's Homepage  Reply with Quote
Not a clue. Its a bit confusing because its not dropping the tables as they don't exist, but its not creating the table due to the fact that it already exists - but it can't add the records because it doesn't exist. Your DB server may be schizophrenic...
Go to Top of Page

zakazn
New Member

58 Posts

Posted - 21 April 2009 :  13:35:47  Show Profile  Reply with Quote
quote:
Originally posted by AnonJr

Not a clue. Its a bit confusing because its not dropping the tables as they don't exist, but its not creating the table due to the fact that it already exists - but it can't add the records because it doesn't exist. Your DB server may be schizophrenic...


Well I am no expert, but that is sort of what I thought.

Anyone else have any ideas on how to fix this?
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 21 April 2009 :  18:36:45  Show Profile  Reply with Quote
About the only alternative is to manually add the tables to the DBase. You should take the board off-line first. If you need help, just ask.
Go to Top of Page

gary b
Junior Member

USA
267 Posts

Posted - 23 April 2009 :  22:57:54  Show Profile  Visit gary b's Homepage  Reply with Quote
I would triple-check database/website permissions. If you do not have access permission, the table in effect does not exist.

If you modify the SQL to utilize an existing table -- such as append a record, does the SQL execute properly?

Just 2 thoughts... a penny a piece.
Go to Top of Page
Page: of 4 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000 Version 3.4.07