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?
--
Steve "Cutter" Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_____________________________
http://blog.cutterscrossing.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289507
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4