too few parameters expect 2 - error

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

  1. #1

    Default too few parameters expect 2 - error

    Hi

    Can anyone help me out of this:

    id2 = request.form("f_email_n")

    sSQL = "DELETE * FROM newsletter WHERE e-mail='" & id2 & "'"
    Set oRS = oConn.Execute(sSQL)

    Gives me error: to few parameters. Expect 2....

    Thank you

    Flokke


    Flokke Guest

  2. Similar Questions and Discussions

    1. to few parameters. Expect 2 - error
      Hi Can anyone help me out of this: id2 = request.form("f_email_n") sSQL = "DELETE * FROM newsletter WHERE e-mail='" & id2 & "'" Set oRS =...
    2. Perl and Expect: "Error: could not connect pty as controlling terminal!"
      Hi, I'm using Perl with the Expect module. Sometimes when I spawn off a new process using Expect, I see this error: "Error: could not connect...
    3. Error Too few parameteres expect 1
      Works fine. Recid = rs("id") SQLstmt = "SELECT * FROM courses WHERE ID=" & Request.QueryString("Recid") When i combine two tables SQLstmt...
    4. Too few parameters. Expected error
      "Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message news:<OEuOwifODHA.2224@TK2MSFTNGP10.phx.gbl>... Sorry still having problems with...
    5. Error = No value given for one or more required parameters.
      Yes, it all seems OK. But can I "test" certain areas like you can in VB with the immediate window.
  3. #2

    Default Re: too few parameters expect 2 - error

    Why do you have a dash in your column name?

    Either change it to email without the dash (recommended) or surround the
    column name with [square brackets].

    The error indicates that the database is trying to find columns e and mail,
    subtract them, and compare the result to the string id2.

    Also, you don't say DELETE *, just DELETE table WHERE. You're deleting
    rows, not columns, so you don't need to specify columns...



    "Flokke" <Mathieu.vanneste@flockdesignNOSPAM.be> wrote in message
    news:3f67097d$0$1303$ba620e4c@reader2.news.skynet. be...
    > Hi
    >
    > Can anyone help me out of this:
    >
    > id2 = request.form("f_email_n")
    >
    > sSQL = "DELETE * FROM newsletter WHERE e-mail='" & id2 & "'"
    > Set oRS = oConn.Execute(sSQL)
    >
    > Gives me error: to few parameters. Expect 2....
    >
    > Thank you
    >
    > Flokke
    >
    >

    Aaron Bertrand [MVP] 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