Not sure what you mean? Surely reading the XML in via cffile etc it
programmatic.






"This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant,
Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions." 
Visit our website at http://www.reedexpo.com

-----Original Message-----
From: Brad Wood
To: CF-Talk
Sent: Tue Feb 06 20:49:19 2007
Subject: RE: data source metadata

> If you own the server, just look at neo-query.xml.

But that wouldn't be programmatically.

> If you have access to the AdminAPI and on CF7, then yes.

Yeah, that actually works as well as the service factory.

The annoying thing is that if you specify your database in the jdbc url
(like a SeeFusion wrapped data source) then the database name shows up
empty and you apparently have to parse it from the jdbc url yourself.

I even looked at the getmetadata() which had more stuff in it than I
ever know existed, but it didn't seem to have the database name.


function get_database_name_by_data_source(data_source_name)
{
        dss = CreateObject("java","coldfusion.server.ServiceFactory");
        jbdc_url =
dss.getDataSourceService().getDataSource(data_source_name).getDataSource
Def().geturl();
        return jbdc_url;
}

function get_database_name_by_data_source2(data_source_name)
{
   adminObj = createObject("component","cfide.adminapi.administrator");
   adminObj.login("iamallpowerfuladmin");
 
   myObj =
createObject("component","cfide.adminapi.datasource").getdatasources(dat
a_source_name);
   
   return myObj.url;
}




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

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