Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
powerfresh #1
Using a datasource in a cfx Tag
Hello,
i have to write a Custom Tag, which needs some data from a database. I found
following example but I can't find the corresponding classes (DataSourceService
),
public static Connection getUsingCFService(String datasource) {
DataSourceService ds =
coldfusion.server.ServiceFactory.getDataSourceServ ice();
try {
return ds.getDatasource(datasource).getConnection();
} catch (SQLException e) {
throw new RuntimeException(e);
}
}
Is this example ok? Which jar-files do I need?
Thanks for reading
Thomas
powerfresh Guest
-
Two Datasource
I am using two datasouces, one has Stored Procedures and other has data. Is there a way to use query from SP from datasource one and execute it and... -
Join a query datasource and oledb datasource?
Using CF5 here. I have a query that I'm creating on the fly using the QueryNew() and QueryAddRow() functions. Then I run my query using... -
HELP!- Datasource
How do I specify a new datasource? -
Datasource and dll
I have created vb dll that need database connection(sql server).how can i use the coldfusion datasouurce for that dll. Advance thanks John che -
Update one datasource using a 2nd datasource?
I have a CF app using an Access 2000 DB, Treasury. One of the tables holds user data (i.e. location, city, state, supervisor, etc.). This data is...



Reply With Quote

