CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Guest

    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.


  2. #2
    Join Date
    Apr 1999
    Posts
    24

    Re: SQL statement works in ISAPI in IIS 3.0 but not in IIS 4.0

    What data access technology are you using?


  3. #3
    Guest

    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.


  4. #4
    Join Date
    Jul 1999
    Posts
    12

    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
  •  





Click Here to Expand Forum to Full Width

Featured