This setting in CF Admin will give you grief if you are inserting a second command inside a CFQUERY tag to retrieve the last inserted record key.
- login to CF Admin
- select the DSN to edit
- display advanced settings
- in the Connection String edit field enter ‘allowMultiQueries=true’
- save the settings
You should be able to execute multiple SQL statements within a single <CFQUERY> block now.
Originally posted on Ben Nadel’s site – Turning On Multiple Statements In ColdFusion 8 MySQL 4/5 Datasource. Thanks Ben!
Advertisement