This content has been marked as final.
Show 3 replies
-
1. Re: Executing the SQL statement is not allowed - Error
fgwenger Mar 3, 2010 10:20 AM (in response to fgwenger)SOLVED: I decided to enter this in here, just to get it into web searches for others since I couldn't find anything.
- I was calling a function for one of the values in the query: get_db_status_code("initialize") 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. I moved the function call outside of the query and loaded a temp variable for use in the query and it then worked. -
2. Re: Executing the SQL statement is not allowed - Error
Adam Tuttle Mar 10, 2014 8:59 AM (in response to fgwenger)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 .
To find this setting, edit the DSN and click the "Show Advanced Settings" button.
-
3. Re: Executing the SQL statement is not allowed - Error
BKBK Mar 11, 2014 4:42 AM (in response to fgwenger)To help any searchers, please kindly mark the answer as correct.


