oaklanders
Technical User
- Dec 9, 2007
- 38
For the past 5 years I been using DSN connections to connect to Oracle in my Cold Fusion. Is there any other way to connect in Cold Fusion MX 7 without using DSN?
For example in Java, I can do this and not use any DSN:
Please advise.
Code:
<CFQUERY NAME="query_name" DATASOURCE="db_name">
SQL statements
</CFQUERY>
For example in Java, I can do this and not use any DSN:
Code:
DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
Connection conn = DriverManager.getConnection
("jdbc:oracle:thin:@hostname:1526:orcl", "scott", "tiger");
// @machineName:port:SID, userid, password
Please advise.