18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
Excel connection string not successful
HI Narayana,
I am having issue with making a connection with JDBC ODBC drivers to excel
below is the error i am seeing
exception: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
Sahi version 3.5
fire fox 12
java version 7
MS Office 2007 (32 bit)
Install MS access driver for 32 bit
and JDB ODBC bridge
windows 7 64 bit
and finally i am new to sahi or java, can you please help me on this ASAP.
BElow is my connection string
var $db = _getDB("sun.jdbc.odbc.JdbcOdbcDriver", "jdbc:odbc:Driver={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)};DBQ=C:\\Users\\Bada0656\\sahi\\userdata\\TCM.xls;readOnly=false", "", );
var $attributes = $db.select("select UserId from [Logins$] WHERE Role='IT Racker'");
_debug($attributes);
Thanks in Adavance.
I am having issue with making a connection with JDBC ODBC drivers to excel
below is the error i am seeing
exception: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
Sahi version 3.5
fire fox 12
java version 7
MS Office 2007 (32 bit)
Install MS access driver for 32 bit
and JDB ODBC bridge
windows 7 64 bit
and finally i am new to sahi or java, can you please help me on this ASAP.
BElow is my connection string
var $db = _getDB("sun.jdbc.odbc.JdbcOdbcDriver", "jdbc:odbc:Driver={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)};DBQ=C:\\Users\\Bada0656\\sahi\\userdata\\TCM.xls;readOnly=false", "", );
var $attributes = $db.select("select UserId from [Logins$] WHERE Role='IT Racker'");
_debug($attributes);
Thanks in Adavance.
Comments
$db = _getDB("sun.jdbc.odbc.JdbcOdbcDriver", "jdbc:odbc:Driver={Microsoft Excel Driver (*.xls)}; DBQ=C:\\Users\\Bada0656\\sahi\\userdata\\TCM.xls; readOnly=false", "", "");
also make sure below points.
- worksheet name is "Logins" in TCM.xls
- a column in Logins "Role" with value 'IT Racker'.
I tried changing my driver but no luck.
Can you please suggest me any other solution, am i configuring wrong things.
i am completly new to java and sahi.
but no success.