coldfusion - Railo: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified -



coldfusion - Railo: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified -

i have next piece of code read excel file , convert excel file:

var sql = "select * [#sheetname#$]"; createobject("java", "java.lang.class").forname("sun.jdbc.odbc.jdbcodbcdriver"); objinst = createobject("java","java.sql.drivermanager").getconnection( "jdbc:odbc:driver={microsoft excel driver (*.xls)};dbq=" & arguments.filename); stmnt = objinst.createstatement(); sheetdata = stmnt.executequery(sql); qrydata = createobject('java', 'coldfusion.sql.querytable').init(sheetdata); objinst.close();

the code works fine in coldfusion 8, 9, 10 , 11.

but when tried in railo, next error:

railo 4.2.1.008 error (java.sql.sqlexception) message [microsoft][odbc driver manager] info source name not found , no default driver specified cause java.sql.sqlexception stacktrace error occurred in d:\engineering\eclipse_workspace\simplymail\filename.cfm: line 22 20: objinst = createobject("java", 21: "java.sql.drivermanager").getconnection( 22: "jdbc:odbc:driver={microsoft excel driver (*.xls)};dbq=" & arguments.filename); 23: stmnt = objinst.createstatement(); 24: sheetdata = stmnt.executequery(sql);

unable find solution , posting here pointer.

coldfusion railo

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -