Database query errors

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

  1. #1

    Default Database query errors

    Good morning,

    First off, I would like to give thanks in advance to those who help. I have
    the following query statement, but I still get an error, and I can't figure out
    whats wrong with it. Here's the query

    <cfquery datasource="financialfreedom" name="qffp">
    UPDATE Debits
    INSERT INTO Debits
    (Housing,SavingsCredit,Auto,Misc,Food,InsurMedical ,Personal,MonthlyIncome,Total_
    Expense,Recommended_Total,Net_Income)
    VALUES
    (#Housing#,#SavingsCredit#,#Auto#,#Misc#,#Food#,#I nsurMedical#,#Personal#,#Mont
    hlyIncome#,#Total_Expense#,#Recommended_Total#,#Ne t_Income#)
    </cfquery>

    And if I take out the UPDATE statement I get the following:
    ODBC Error Code = S1000 (General error)

    [Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable
    query.

    The error occurred while processing an element with a general identifier of
    (CFQUERY), occupying document position (51:1) to (51:51).

    I can't figure out whats going on. Any help is apreciated. Thanks!

    noobie2005 Guest

  2. Similar Questions and Discussions

    1. Intermittent query errors with JDBC drivers to DB2
      This is driving me stark-raving mad - can anyone help? We are using ColdFusion MX 6.1 and are getting intermittent query errors, actually they...
    2. CFM Query Errors
      :o Please help! What is wrong with the following queries? Select Count(*) seems to cause problems. Select OrderID, OrderDate, (SELECT...
    3. getting .mdb database errors? read this ..
      I have had loads of problems trying to WRITE data to my DB, using iis 5.1 on my local winxp machine, even though permissions were set correctly in...
    4. Access database with asp - unspecified error - a way to control errors
      > An obvious solution is to make a copy of the file, modify this file, How about a web interface for modifying data. They should not be treating...
    5. Errors with RMAN duplicate database
      I am running Oracle 9i (9.0.1.0.0) on SuSE linux 7.3 pro. I am trying to use RMAN to create a duplicate database (different name on the same...
  3. #2

    Default Re: Database query errors

    DOH! Yeah..thanks for pointing that out. I got it working shortly after I posted this. I have a different question though.

    The <CFGRAPH> tag, is that an 4.5 tag or an MX tag?
    noobie2005 Guest

  4. #3

    Default Re: Database query errors

    cfgraph is available in version 4.5. However, it worked differently then than
    it does now and the code is not interchangeable. If you are using version 4.5,
    you'll need the version 4.5 version of the cfml reference manual.

    Dan Bracuk 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