No problem glad to help. If you were on CF 6, you would have to hack through 
the factory to do these things (and it's not pretty) but the admin api helps 
solve this and like I mention Adobe will more than likely change the 
underlining factory from time-to-time but the APIs should stay solid through 
newer versions saving you from having to re-work your code each time.

John
[EMAIL PROTECTED]



-----Original Message-----
From: Brent Shaub [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 09, 2007 3:10 PM
To: CF-Talk
Subject: Re: Programmatically deleting a datasource

Thanks, John, this is a much more concise, readable (and apparently reliable) 
way to go.  In a matter of a few minutes, I was able to properly delete a 
datasource.  Then it was straight-forward to creating way this way too.

Again thanks,
Brent


>Brent,
>
>Use the AdminAPI instead of accessing the factory directly. The 
>adminapi will provide the ability to create/delete datasources. The 
>underlining factory could change with with future releases of CF and 
>the AdminAPI is there to provide a stable level of abstraction that you can 
>use.
>
>http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/h
>tml/wwhelp.htm?context=ColdFusion_Documentation&file=00001734.htm
>
>John
>[EMAIL PROTECTED]
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283301
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