
After reading about Derby, the open-source database engine from Apache included with ColdFusion 8, I got the idea that the embedded version would be a great tool for distributing sample applications, which often use Access databases or include a script to create an SQL Server or MySQL database.
Ben Forta briefly explains the difference between the client-server version and the embedded version of Derby, and then describes how to create an embedded database at the same time as the datasource is created in the ColdFusion Administrator — you just need to add “create=true” to the connection string field in the advanced settings, to tell the engine to create the database if it doesn’t already exist. Pretty simple:

For sample applications, which are typically installed on development machines that have access to the ColdFusion administrator, it can be done entirely through code using the AdminAPI:
This is a great addition to ColdFusion and definitely something I’m going to be using. The end of reliance on Access, imagine that!
June 26, 2007 at 3:29 am
Remember that you must prove that you know your CF Administrator password before <cfinvoke>‘ing the cfide.adminapi components.
<cfinvoke component=“cfide.adminapi.administrator” method=“login” adminPassword=“mY_sEcReT_aDmIn_PaSsWoRd” >
<cfinvoke component=“cfide.adminapi.datasource“
…
February 17, 2009 at 10:11 pm
does this work on all platforms ?