<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - Executing the SQL statement is not allowed - Error</title>
    <link>https://forums.adobe.com/community/coldfusion/coldfusion_database?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Tue, 11 Mar 2014 11:42:39 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-03-11T11:42:39Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: Executing the SQL statement is not allowed - Error</title>
      <link>https://forums.adobe.com/message/6198507?tstart=0#6198507</link>
      <description>&lt;!-- [DocumentBodyStart:7fbf1377-53ac-4871-a03c-63b00b0eb033] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;To help any searchers, please kindly mark the answer as correct. &lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:7fbf1377-53ac-4871-a03c-63b00b0eb033] --&gt;&lt;img src='/beacon?t=1415921112634' /&gt;</description>
      <pubDate>Tue, 11 Mar 2014 11:42:39 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6198507?tstart=0#6198507</guid>
      <dc:date>2014-03-11T11:42:39Z</dc:date>
      <clearspace:dateToText>8 months 4 days ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Executing the SQL statement is not allowed - Error</title>
      <link>https://forums.adobe.com/message/6195681?tstart=0#6195681</link>
      <description>&lt;!-- [DocumentBodyStart:42b832c5-fa82-4e64-94bb-be2615a44f39] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Since this is the first google result for this error message I thought I'd also add that you will get this error message if the Datasource explicitly disallows the type of SQL statement you're attempting to run. For example if you're attempting to run an UPDATE statement, and the UPDATE checkbox is not turned on, then you will get this error .&lt;/p&gt;&lt;p&gt;To find this setting, edit the DSN and click the "Show Advanced Settings" button.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:42b832c5-fa82-4e64-94bb-be2615a44f39] --&gt;</description>
      <pubDate>Mon, 10 Mar 2014 15:59:47 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6195681?tstart=0#6195681</guid>
      <dc:date>2014-03-10T15:59:47Z</dc:date>
      <clearspace:dateToText>8 months 5 days ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Executing the SQL statement is not allowed - Error</title>
      <link>https://forums.adobe.com/message/2633055?tstart=0#2633055</link>
      <description>&lt;!-- [DocumentBodyStart:cd5f90ba-344a-4d05-8b9d-8b47e9f05f06] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;SOLVED: I decided to enter this in here, just to get it into web searches for others since I couldn't find anything.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;span&gt;- I was calling a function for one of the values in the query:&amp;nbsp; get_db_status_code("initialize")&amp;nbsp; Apparently CF parses the query to see if it's allowed BEFORE it runs the CFML in it, so something in that function name, or the parameter "initialize" was a key word that CF doesn't allow.&amp;nbsp; I moved the function call outside of the query and loaded a temp variable for use in the query and it then worked.&lt;/span&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:cd5f90ba-344a-4d05-8b9d-8b47e9f05f06] --&gt;</description>
      <pubDate>Wed, 03 Mar 2010 18:20:29 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/2633055?tstart=0#2633055</guid>
      <dc:date>2010-03-03T18:20:29Z</dc:date>
      <clearspace:dateToText>4 years 8 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Executing the SQL statement is not allowed - Error</title>
      <link>https://forums.adobe.com/message/2633023?tstart=0#2633023</link>
      <description>&lt;!-- [DocumentBodyStart:84f8ba8d-d8e6-4d06-9fec-366737fc8b94] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;&lt;br/&gt;I am getting "Executing the SQL statement is not allowed" for an INSERT cfquery that I'm running.&amp;nbsp; I checked the usual suspects:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;- DSN allows INSERT&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;- 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).&amp;nbsp; The field names and values were all benign strings, so it didn't seem like that.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;I took the same string for the query and ran it on another page and it ran fine (same DSN, too).&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:84f8ba8d-d8e6-4d06-9fec-366737fc8b94] --&gt;</description>
      <pubDate>Wed, 03 Mar 2010 18:20:09 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/2633023?tstart=0#2633023</guid>
      <dc:date>2010-03-03T18:20:09Z</dc:date>
      <clearspace:dateToText>4 years 8 months ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

