Error occurs in IIS 5 and Not IIS4

Ask a Question related to ASP, Design and Development.

  1. #1

    Default Re: Error occurs in IIS 5 and Not IIS4

    Suggest you attempt to Response.Write() the SQL statement you are sending to
    the database:

    Response.Write(strSQL)
    Response.End

    Cheers
    Ken

    "Reg Dwyer" <reg.dwyer@ausesales.com.au> wrote in message
    news:01f901c35a20$9af38610$a501280a@phx.gbl...
    : I hope this has been previously answered, however there is
    : probably a really simple answer.
    :
    : The error I receive is from the IIS5 server is
    : Error Type:
    : Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
    : [Microsoft][ODBC Microsoft Access Driver] Syntax error in
    : date in query expression 'procind = 4912101852003#hazard'.
    : assessment-new.asp, line 148
    :
    : This is generated from a referring page which has the
    : following code
    :
    : MM_editRedirectUrl = "assessment-new.asp?procind=" +
    : Request.QueryString("procind") + "#hazard"
    :
    : The code works reliably in IIS4 however it generates the
    : above message in IIS5,
    :
    : The intention is to have the referrer page refresh the
    : called page and position the screen at the appropriate
    : place.
    :
    : Any help on a workaround ??
    :
    : regards
    :
    : Reg
    :
    :
    :


    Ken Schaefer Guest

  2. Similar Questions and Discussions

    1. BUG: An 8144 error occurs when you try to attach adatabase to an instance of SQL Server by using SQL ServerEnterprise
      Hi guys... just wondering if any of you have come up with a 8144 database error... I'm getting this through calling cfstoredproc with more than...
    2. #24244 [Com]: odbc_errormsg() sometimes returns a bad string when no error occurs
      ID: 24244 Comment by: thorsten at rinne dot info Reported By: bl at btn dot de Status: No Feedback Bug Type: ...
    3. #25580 [WFx]: set_error_handler to a class/method resets class properties when error occurs
      ID: 25580 Updated by: sniper@php.net Reported By: paul dot liversidge at recycledpixels dot com Status: Wont...
    4. How to get Line no. when error occurs?
      Hi all! I have a problem in my VB6 component that is hard to understand.... Im using on error goto printErrReport In printErrReport i just...
    5. #24244 [Fbk->NoF]: odbc_errormsg() sometimes returns a bad string when no error occurs
      ID: 24244 Updated by: sniper@php.net Reported By: bl at btn dot de -Status: Feedback +Status: No...
  3. #2

    Default Re: Error occurs in IIS 5 and Not IIS4

    Hi Ken,

    Thanks for the reply, the problem seems to be more the
    resolution of the '#' character when the address is
    resolved at the mater page. Even attempting to pass '#'
    via the RequestQueryString(URL) has the server faling to
    resolve.

    This seems to be a change from the IIS4 version to IIS5.
    The scripts work fine in IIS4 and display correctly, IIS5
    fails

    Reg

    >-----Original Message-----
    >Suggest you attempt to Response.Write() the SQL statement
    you are sending to
    >the database:
    >
    >Response.Write(strSQL)
    >Response.End
    >
    >Cheers
    >Ken
    >
    >"Reg Dwyer" <reg.dwyer@ausesales.com.au> wrote in message
    >news:01f901c35a20$9af38610$a501280a@phx.gbl...
    >: I hope this has been previously answered, however there
    is
    >: probably a really simple answer.
    >:
    >: The error I receive is from the IIS5 server is
    >: Error Type:
    >: Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
    >: [Microsoft][ODBC Microsoft Access Driver] Syntax error
    in
    >: date in query expression 'procind =
    4912101852003#hazard'.
    >: assessment-new.asp, line 148
    >:
    >: This is generated from a referring page which has the
    >: following code
    >:
    >: MM_editRedirectUrl = "assessment-new.asp?procind=" +
    >: Request.QueryString("procind") + "#hazard"
    >:
    >: The code works reliably in IIS4 however it generates the
    >: above message in IIS5,
    >:
    >: The intention is to have the referrer page refresh the
    >: called page and position the screen at the appropriate
    >: place.
    >:
    >: Any help on a workaround ??
    >:
    >: regards
    >:
    >: Reg
    >:
    >:
    >:
    >
    >
    >.
    >
    Reg Dwyer Guest

  4. #3

    Default Re: Error occurs in IIS 5 and Not IIS4

    Hi,

    The error that you are posting is caused because you have an invalid SQL
    statement that you are sending to the database.

    Passing # in the URL should not present any problems, as long as it is an
    anchor name. However, if you are passing it as part of the query data, then
    you need to use Server.URLEncode() on it.

    That said, I don't understand what you are talking about when you say "the
    server is failing to resolve...". The URL is being resolved. Somehow you are
    trying to put this data into an SQL statement, and you are trying to send
    that to the database, and the database is saying that the SQL statement is
    invalid.

    [url]www.adopenstatic.com/faq/80040e14.asp[/url]
    for examples.

    As I suggested before:

    <%
    Response.Write(strSQL)
    Response.End
    %>

    and post the output to the newsgroup.

    Cheers
    Ken

    "Reg Dwyer" <reg.dwyer@ausesales.com.au> wrote in message
    news:036501c35a4c$ebaf1480$a601280a@phx.gbl...
    : Hi Ken,
    :
    : Thanks for the reply, the problem seems to be more the
    : resolution of the '#' character when the address is
    : resolved at the mater page. Even attempting to pass '#'
    : via the RequestQueryString(URL) has the server faling to
    : resolve.
    :
    : This seems to be a change from the IIS4 version to IIS5.
    : The scripts work fine in IIS4 and display correctly, IIS5
    : fails
    :
    : Reg
    :
    :
    : >-----Original Message-----
    : >Suggest you attempt to Response.Write() the SQL statement
    : you are sending to
    : >the database:
    : >
    : >Response.Write(strSQL)
    : >Response.End
    : >
    : >Cheers
    : >Ken
    : >
    : >"Reg Dwyer" <reg.dwyer@ausesales.com.au> wrote in message
    : >news:01f901c35a20$9af38610$a501280a@phx.gbl...
    : >: I hope this has been previously answered, however there
    : is
    : >: probably a really simple answer.
    : >:
    : >: The error I receive is from the IIS5 server is
    : >: Error Type:
    : >: Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
    : >: [Microsoft][ODBC Microsoft Access Driver] Syntax error
    : in
    : >: date in query expression 'procind =
    : 4912101852003#hazard'.
    : >: assessment-new.asp, line 148
    : >:
    : >: This is generated from a referring page which has the
    : >: following code
    : >:
    : >: MM_editRedirectUrl = "assessment-new.asp?procind=" +
    : >: Request.QueryString("procind") + "#hazard"
    : >:
    : >: The code works reliably in IIS4 however it generates the
    : >: above message in IIS5,
    : >:
    : >: The intention is to have the referrer page refresh the
    : >: called page and position the screen at the appropriate
    : >: place.
    : >:
    : >: Any help on a workaround ??
    : >:
    : >: regards
    : >:
    : >: Reg
    : >:
    : >:
    : >:
    : >
    : >
    : >.
    : >


    Ken Schaefer Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139