too few parameters expected 1

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default too few parameters expected 1

    Hello,
    I am getting the error message Error: java.sql.SQLException:
    [Microsoft][ODBC Microsoft Access 97 Driver] Too few parameters. Expected 1.
    All column names in SQL command are matching with all in the database.
    Still the same error is coming .
    The query "select * from user" works fine.But the simple query "select
    username from user"
    giving me the error.And "username" field exists in table.
    Also i m only getting the error while using Microsoft Access .It works fine
    with all other database like SQL or Oracle.
    Is it a problem with driver?
    Please help.

    Thanks.


    ash_log Guest

  2. Similar Questions and Discussions

    1. Too few parameters. Expected 1.
      I've searched all over the place, and can't find a solution to this error message to my query. I've come across it before, and I know that a common...
    2. Too few parameters. Expected 2.
      My form page: <cfform action="InstreamUpdate2.cfm" method="post"> <CFQUERY NAME="EditQueryInstreamWork" DATASOURCE="Instreamworks"> select *...
    3. not getting what i expected
      Hi I am working on a site with php & mysql. all that code is fine. However i now am adding in a banner/click thru code. Now here's my dilemma,...
    4. create parameters without creating parameters
      cant you create ado command parameteres without creating a parameter object? i have a function that takes the name of a stored proc, and two...
    5. Too few parameters. Expected error
      "Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message news:<OEuOwifODHA.2224@TK2MSFTNGP10.phx.gbl>... Sorry still having problems with...
  3. #2

    Default Re: too few parameters expected 1

    I immediatedly thought of keywords, but I don't think that's the case here.
    Check the spelling and make sure the four words in your Access query are
    actually separated by spaces!
    BKBK Guest

  4. #3

    Default Re: too few parameters expected 1

    Username might be a reserved word in access
    try putting brackets around it

    SQLMenace Guest

  5. #4

    Default Re: too few parameters expected 1

    Does the same thing happen when you run the query in Access directly, ie with
    Cold Fusion?

    Originally posted by: ash_log
    Hello,
    I am getting the error message Error: java.sql.SQLException:
    [Microsoft][ODBC Microsoft Access 97 Driver] Too few parameters. Expected 1.
    All column names in SQL command are matching with all in the database.
    Still the same error is coming .
    The query "select * from user" works fine.But the simple query "select
    username from user"
    giving me the error.And "username" field exists in table.
    Also i m only getting the error while using Microsoft Access .It works fine
    with all other database like SQL or Oracle.
    Is it a problem with driver?
    Please help.

    Thanks.




    Dan Bracuk Guest

  6. #5

    Default Re: too few parameters expected 1

    Thanks a lot . My problem got solved.It was Actually a version problem.

    Thanks,

    ash_log :)

    ash_log 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