Thank You, Hareni, that's exactly what I needed.

Steve "Cutter" Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_____________________________
http://blog.cutterscrossing.com

Hareni Venkatramanan wrote:
> Hi,
> 
> You can make use of the functions in CFIDE/adminapi/datasource to
> install the sample dbs.
> 
> Run this script:
> 
> <cfset cfusion = server.coldfusion.rootdir>
> <cfset sep = createObject("java", "java.io.File").separator>
> <cfscript>
>       datasource = createObject("component",
> "CFIDE.adminapi.datasource");
>       datasource.setDerbyEmbedded(name="cfdocexamples"
>                                       , database=cfusion &
> "#sep#db#sep#cfdocexamples"
>                                       );
>       datasource.setDerbyEmbedded(name="cfbookclub"
>                                               , database=cfusion &
> "#sep#db#sep#bookclub"
>                                       );
>       datasource.setDerbyEmbedded(name="cfartgallery"
>                                       ,database=cfusion &
> "#sep#db#sep#artgallery"
>                               );
>       datasource.setDerbyEmbedded(name="cfcodeexplorer"
>                                               ,database=cfusion &
> "#sep#db#sep#cfcodeexplorer"
>                               );
> 
> </cfscript>
> 
> Make sure that you have the .cfm file in CFIDE/administrator folder else
> the above script will throw an exception mentioning that the current
> user is not authorized to invoke the method.
> 
> Thanks,
> Hareni
> 
> 
> 
> -----Original Message-----
> From: Cutter (CFRelated) [mailto:[EMAIL PROTECTED] 
> Sent: 26 September 2007 20:14
> To: CF-Talk
> Subject: CF 8 Sample DBs
> 
> Anyone know how to install the sample db's for CF8 after the server has 
> already been installed without them? Just the db's?
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289514
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to