>> Have looked at the adminapi's datasoure.cfc, according to it, one
>> method named DeleteDatasource would require only one parameter of
>> "dsnname" to delete a current cf8 datasource but it didn't.
>
>Did you login first?
>
><cfscript>
> admin = createObject("component","cfide.adminapi.administrator");
> wasLoggedIn = admin.login(myAdminPassword);
> if (wasLoggedIn) {
> adminDSN = createObject("component","cfide.adminapi.datasource");
> adminDSN.deleteDataSource("MyDatasourceName");
> WriteOutput("Datasource deleted");
> }
> else {
> WriteOutput("Login Failed");
> }
></cfscript>
Ok, so, it looks like it did not like the way I called it, <cfinvoke ...
parmName (don't remember the exact name)... value="MyDatasourceName"> but the
way you did, don't have access to the other computer right now, can't test it,
many thanks though.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315257
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4