Never mind. I figured it out. In case anyone needs the code for
future reference, here's how to create a Coldfusion datasource on the
fly (In this case using an "other" driver):
<cfscript>
//Instantiate the Admin API
createObject("component","cfide.adminapi.administrator").login
("myCFAdminPassword");
//Create the Datasource
createObject("component","cfide.adminapi.datasource").setOther
(dsnName,dsnURL,dbdriver,"PostgresDriver",dbowner,dbownerpass);
</cfscript>
- Jon
On Oct 25, 2006, at 2:46 PM, Jon Clausen wrote:
> I'm trying to create a Coldfusion datasource on the fly using the
> RDSInvoker method in the CFIDE.adminapi.base component.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258065
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4