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
 Snitz Classified Ads SR1 :Dueling Errors
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

bdinicola
Starting Member

USA
14 Posts

Posted - 12 July 2001 :  13:45:44  Show Profile  Visit bdinicola's Homepage  Send bdinicola an AOL message  Send bdinicola an ICQ Message
quote:

quote:

Why am I getting this error whenever it tries to disply an ad?

Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near '='.

/forum/inc_functions.asp, line 1136



Found the reason to the prob. If you are
using SQL Server, you need to place fields of type TEXT, NTEXT etc as the last retrieved fields in your SQL statement.
e.g. in file classifieds_detail.asp the following lines of code line 60 should be coded as:


gsSQL = "Select ADS_CONTENT.ID as content_id, Topic_ID, ad_title, price, _image_url, added_By, city, state, email, date_posted, "gsSQL = gsSQL & "link, ADS_CATEGORY.ID, category_name, content FROM ADS_CONTENT _inner join ADS_CATEGORY on ADS_CONTENT.topic_id = ADS_CATEGORY.ID _WHERE ADS_CONTENT.ID = " & iadID

Somehow, there's some memory flow error when you used NTEXT fields in the middle of a sql field selection.



My stats: Win2k Server, MSSQL 7, IIS, Current/updated release of Snitz

I tried the fix, and now I get an error on the line above. When I go to the front page of the classifieds ( http://webdev.som.yale.edu/forums/classifieds.asp ) the space where it shows the most recent ads has this error in it:

Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near '='.

/forums/inc_functions.asp, line 1135

It's a hyperlink and when I click on it, I get this...

Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near '='.

/forums/pop_profile.asp, line 96

HELP! PLEASE!


HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 13 July 2001 :  08:35:32  Show Profile  Visit HuwR's Homepage
what are the _ in front of inner and where ? your query should be


gsSQL = "Select ADS_CONTENT.ID AS ADSCONTID, Topic_ID, ad_title, price, image_url, added_By, city, state, email, date_posted, "
gsSQL = gsSQL & "link, ADS_CATEGORY.id, category_name, content FROM ADS_CONTENT inner join ADS_CATEGORY on ADS_CONTENT.topic_id = ADS_CATEGORY.id WHERE ADS_CONTENT.ID = " & iadID


Go to Top of Page

bdinicola
Starting Member

USA
14 Posts

Posted - 13 July 2001 :  09:09:24  Show Profile  Visit bdinicola's Homepage  Send bdinicola an AOL message  Send bdinicola an ICQ Message
quote:

what are the _ in front of inner and where ? your query should be


gsSQL = "Select ADS_CONTENT.ID AS ADSCONTID, Topic_ID, ad_title, price, image_url, added_By, city, state, email, date_posted, "
gsSQL = gsSQL & "link, ADS_CATEGORY.id, category_name, content FROM ADS_CONTENT inner join ADS_CATEGORY on ADS_CONTENT.topic_id = ADS_CATEGORY.id WHERE ADS_CONTENT.ID = " & iadID



I don't know a great deal about sql so I don't understand what you're asking for.

Go to Top of Page

bdinicola
Starting Member

USA
14 Posts

Posted - 18 July 2001 :  10:45:05  Show Profile  Visit bdinicola's Homepage  Send bdinicola an AOL message  Send bdinicola an ICQ Message
I'm still having a problems with this add-on. Can't anyone help?

Could the problem be because the directory is forums not forum ??


Edited by - bdinicola on 20 July 2001 12:27:26
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.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07