Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Access DB Error

    Hey guys - I just copied my site from a box running IIS
    5.0 to a new box running IIS 6.0. When I try to access
    the DB via an ASP page is get the following error
    message. The same exact site runs fine on the other
    server but I really need to change it over to the new
    server. Any thoughts? I have checked the SQL statement
    and its fine as well as the connection string and the
    actual database. The error message I am getting is shown
    below.

    SQL STATEMENT
    SELECT * FROM User WHERE SSN='592444792'

    ERROR MESSAGE
    Microsoft JET Database Engine error '80040e14'

    Syntax error in FROM clause.

    /default.asp, line 17

    Ryan Smith Guest

  2. Similar Questions and Discussions

    1. Error "creating file: 1008:5, -5000 Access Denied Error"
      I'm unable to install Flash Player 9 in OS X (10.4.8). I followed the following tech note: http://www.adobe.com/go/4aa64290 * I uninstalled Flash...
    2. [microsoft][odbc microsoft access driver] syntax error (missing operator) in query expression error
      I have a query I want to run using DBQwiksite siftware, which produces the syntax error (missing operator) in query expression error when...
    3. Web Service + Anon Access, but getting 401 Access Denied Error
      I have a simple webservice that just returns a string. The security for this is set to windows authentication in IIS (XP Professional) and anonymous...
    4. Java Script error (error 3) when trying to access Commands
      Hello folks: I have been a long time lurker/reader of this forum. As of yesterday, out of nowhere, when accessing 'Commands' from the top level...
    5. Error 711 and Error 5, Remote access connection manager service
      I'm trying to set up a dial-up connection, but my computer will not start Remote Access Connection Manager or Remote Access Auto Connection...
  3. #2

    Default Re: Access DB Error


    Isn't User a Reserved Word ... maybe try

    Select * From [User] Where SSN='592444792'





    On Wed, 7 Jan 2004 22:40:04 -0800, "Ryan Smith" <jsmith3465@aol.com>
    wrote:
    >Hey guys - I just copied my site from a box running IIS
    >5.0 to a new box running IIS 6.0. When I try to access
    >the DB via an ASP page is get the following error
    >message. The same exact site runs fine on the other
    >server but I really need to change it over to the new
    >server. Any thoughts? I have checked the SQL statement
    >and its fine as well as the connection string and the
    >actual database. The error message I am getting is shown
    >below.
    >
    >SQL STATEMENT
    >SELECT * FROM User WHERE SSN='592444792'
    >
    >ERROR MESSAGE
    >Microsoft JET Database Engine error '80040e14'
    >
    >Syntax error in FROM clause.
    >
    >/default.asp, line 17
    >
    Brynn Guest

  4. #3

    Default Re: Access DB Error

    Brynn wrote:
    > Isn't User a Reserved Word ... maybe try
    >
    > Select * From [User] Where SSN='592444792'
    >
    Better yet, change the name of the table so it isn't a reserved keyword.
    Here is a list of the words you should avoid for table and column (field)
    names:
    [url]http://www.aspfaq.com/show.asp?id=2080[/url]

    Of course, if you have no control over the design of the database, or can't
    bring yourself to change the name of the table for some reason, then Brynn's
    solution will work. Using the brackets tells the query parser to ignore the
    contents of the brackets.


    HTH,
    Bob Barrows

    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Bob Barrows 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