Ask a Question related to Coldfusion Database Access, Design and Development.
-
Aneesha #1
Access Coldfusion SQL driver directly
Hi
Anybody know if I can access coldfusion MS SQL driver directly like I can
access the mysql driver
eg
<cfscript>
clazz = CreateObject("java", "java.lang.Class");
clazz.forName("org.gjt.mm.mysql.Driver");
driverManager = CreateObject("java", "java.sql.DriverManager");
conurl = "jdbc:mysql://server/db?user=u&password=p";
connection = driverManager.getConnection(conurl);
</cfscript>
Thanks
Aneesha Guest
-
coldfusion JDBC driver setting
I have coldfusionmx 7 installed on red hat linux enterprise 4 . How can i change the coldfusion JDBC driver to oracle 10g JDBC driver, that's may... -
oracle thin driver/coldfusion mx 7
I'm running mx 7 on sun solaris 5.8. how do I configure mx 7 to connect to an oracle thin driver -
MS Access Driver for MAC or alternatives
Hello all, Have installed CF 7 on my MAC running OSX. Everything is fine except for it does not show an MS Access Driver in the dropdown list... -
Need Microsoft Access DB driver for Mac OS
Is there a driver I can install or what can I put in instead of the Microsoft Access driver when setting up a DSN on my mac version of Coldfusion? ... -
ColdFusion 5/Oracle 10g Native Driver
We are upgrading from Oracle 8.1 to Oracle 10g. We are using ColdFusion 5 Enterprise Edition. When setting up data sources using native drivers,... -
-
Aneesha #3
Re: Access Coldfusion SQL driver directly
Would you happen to know what the clazz.forName is?
Thanks
Aneesha Guest
-
mxstu #4
Re: Access Coldfusion SQL driver directly
It depends on which one you're using. I've used both the macromedia driver and
the ms driver. Sorry for all the extra text.. I was too lazy to cut out the
class names ;-)
getPageContext().getClass().forName("macromedia.jd bc.MacromediaDriver");
getPageContext().getClass().forName("com.microsoft .jdbc.sqlserver.SQLServerDrive
r");
mxstu Guest
-
Aneesha #5
Re: Access Coldfusion SQL driver directly
Thank you very much.
I'm trying to experiment with batch updates:
[url]https://www6.software.ibm.com/developerworks/education/x-insert/x-insert-8-1.html[/url]
Aneesha Guest
-
mxstu #6
Re: Access Coldfusion SQL driver directly
Do you have to register to access that link?
mxstu Guest
-
Aneesha #7
Re: Access Coldfusion SQL driver directly
Yes -- you have to register to access a few things on that site.
This is what I'm doing:
class = createObject("java", "java.lang.Class");
class.forName("macromedia.jdbc.sqlserver.SQLServer Driver");
dm = createObject("java","java.sql.DriverManager");
con =
dm.getConnection("jdbc:macromedia:sqlserver://sqlserver;databaseName=dbname","us
ername","password");
st = con.createStatement();
st.addBatch(sql1);
st.addBatch(sql2);
st.addBatch(sql3);
st.executeBatch();
st.close();
con.close();
Aneesha Guest
-
mxstu #8
Re: Access Coldfusion SQL driver directly
Okay. I would be curious to see if there is any difference in performance
between your code and a CFQUERY update using CFQUERYPARAM, which is supposed to
provide enhanced performance when executing the same statement w/parameters
multiple times.
mxstu Guest



Reply With Quote

