Tech Rocks

Coldfusion
Java
JQuery

An online resource for latest web technologies like Coldfusion, JRun, Pro*C, JQuery, HTML5, PHP, W3C, Java, J2EE, C, C++, ORACLE, PL/SQL, MySql, Ajax, Coldbox, Fusebox, UNIX, JavaScript, NodeJS and much more...

Wednesday, November 26, 2008

using cfquery inside cfscript

http://www.bennadel.com/blog/186-Running-ColdFusion-Queries-Inside-CFSript-Tags.htm

objResults2 = CreateObject("java","coldfusion.sql.QueryTable").Init(CreateObject("java","coldfusion.server.ServiceFactory").DataSourceService.GetDataSource("#Application.DB#").GetConnection().PrepareStatement("SELECT * FROM table").ExecuteQuery());


0 comments :

Post a Comment