|
-
April 6th, 1999, 08:35 AM
#1
SQL statement works in ISAPI in IIS 3.0 but not in IIS 4.0
Hi - I have written an ISAPI dll which queries a SQL Server database when it receives a POST request with the necessary parameters. However I get a DBException : Invalid column name "OCHOP" when the SQL statement is
SELECT * from table WHERE ib_stock_loc_no = "OCHOP"
Here the column name is supposed to be ib_stock_loc_no but it complains about an invalid column OCHOP !!
However this happens only on IIS 4.0 and not on IIS 3.0 !! I have SQL Server 6.5 on both the web servers running 4.0 and 3.0. And the ISAPI has been developed under Visual Studio 6.0.
Any help will be appreciated
Arun.
-
April 6th, 1999, 09:48 AM
#2
Re: SQL statement works in ISAPI in IIS 3.0 but not in IIS 4.0
What data access technology are you using?
-
April 6th, 1999, 09:58 AM
#3
Re: SQL statement works in ISAPI in IIS 3.0 but not in IIS 4.0
I am using the MFC ODBC classes CDatabase and CRecordset.
-
July 8th, 1999, 11:59 AM
#4
Re: SQL statement works in ISAPI in IIS 3.0 but not in IIS 4.0
I have no idea if this helps but I use single quotes for the SELECT statement when I work with strings.
For. ex. SELECT * from table WHERE ib_stock_loc_no = 'OCHOP'.
Isac
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|