Category: derby

Jun 8 2007

More on Coldfusion 8's Derby database

A couple of links (just for my own reference really) on some useful tips on using Derby: Steve Bryant at Coldfusion Journal and good ole Ben Forta (apologies if this is repeating other people's stuff, its mainly for my brain)

0 comments - Posted by Mark Drew at 2:47 PM - Categories: derby | coldfusion

Jun 7 2007

Coldfusion 8: Creating a Derby database

I am not sure how many people noticed but ColdFusion 8 now comes with an in-built database called Apache Derby. This is great for people needing to deploy applications that need a little database that might be highly performant but without the need for complex queries etc. (read SnipEx here). To get you started, it comes with the sample applications already installed, but what if you want to create your own database, and point a datasource to it? Well, help is at hand, this is what I did to create a test database and point a DSN to it: Firstly, go to (in a terminal window) the directory where you will create the database files, in my case I was going to create it under /Applications/ColdFusion8/db/ . Then run the following command: > java -jar /Applcations/ColdFusion8/lib/derbyrun.jar ij (obviously substituting your path to the jar). Once you have done that, you can now create a database by entering: ij> connect 'jdbc:derby:cfeclipse_test;create=true'; Where cfeclipse_test is the name of your database, to exit just type "exit ;" Now that you have created the database you can create a DSN entry for it, all you have to do is create a DSN of type "Apache Derby Embedded" and point it to the folder where you created the databse, in this case it would be "/Applications/ColdFusion8/db/cfeclipse_test" It should all now work, and you have a DSN to create your tables and run your queries against. For more info on Derby, check out: http://db.apache.org/derby/docs/dev/getstart/

5 comments - Posted by Mark Drew at 4:44 PM - Categories: derby | coldfusion

Search Archives

Categories

coldfusion cfeclipse personal apple cfconferences webdev model-glue blogging ukcfug cfunited coldspring adobe scotch on the rocks presentations cfobjective lost reactor jobs flex eclipse ajax model-glue frameworks max reference google podcasting fusebox ask md spam railo eventvalidation donations tattoo snipex music microsoft fusiondebug flying blue dragon air wishlist tips rant open bluedragon java graphic novels funny eventguard derby blog aptana apple xml webservices transfer tashr subversion spry regex quack pownce podcast ooops mvc metrics jquery itunes hosting groovy gadgets flash firefox doh! directing development coldfusioncamp codeshare cfug cfonwheels cfdevcon apollo

Monthly Archives