Turning On Multiple Statements In ColdFusion 8 MySQL 4/5 Datasource

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.

  1. login to CF Admin
  2. select the DSN to edit
  3. display advanced settings
  4. in the Connection String edit field enter ‘allowMultiQueries=true’
  5. 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

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.

Join 178 other followers