3 Replies Latest reply: Mar 11, 2014 4:42 AM by BKBK RSS

    Executing the SQL statement is not allowed - Error

    fgwenger Community Member


      I am getting "Executing the SQL statement is not allowed" for an INSERT cfquery that I'm running.  I checked the usual suspects:

       


      - DSN allows INSERT

       

      - I've seen reports online where certain field names or values are considered key words, so for protection CF blocks the query in this way (it would be nice if there was a different error message when it gets blocked this way vs. the DSN doesn't allow INSERT error message).  The field names and values were all benign strings, so it didn't seem like that.

       


      I took the same string for the query and ran it on another page and it ran fine (same DSN, too).