teamireport Posted September 29, 2009 Share Posted September 29, 2009 HI Folks,Like normal jdbc datasource connection how we creating, i want to know create datasource connection for hsql db in i-reportThis is for executing the samples report example shipped in the jasperreports distrubtion.I have started hsql db server and hsql manager from the comand line.and i have selected the appopritate datasource drive (HSQLDB (file) (org.hsqldb.jdbcDriver)) , after selecting this it asks the followingJDBC URL : jdbc:hsqldb:[PATH_TO_DB_FILES]/MYDATABASEi can understand 'PATH_TO_DB_FILES' means we need to specify the path of hsqldb directory presents in jasperreport distrubtion.i tried in all aspects, i'm something doing wrong mentioning the database name and database path ..Can anyone tell me how to specify the ' PATH_TO_DB_FILES' and what is the database name to give , i would like to know the same in windows enviroment as well as linux environment ?-teamireport Post Edited by teamireport at 09/29/2009 17:44 Link to comment Share on other sites More sharing options...
teamireport Posted September 29, 2009 Author Share Posted September 29, 2009 teamireportWrote: HI Folks, Like normal jdbc datasource connection how we creating, i want to know create datasource connection for hsql db in i-report This is for executing the samples report example shipped in the jasperreports distrubtion. I have started hsql db server and hsql manager from the comand line. and i have selected the appopritate datasource drive (HSQLDB (file) (org.hsqldb.jdbcDriver)) , after selecting this it asks the following JDBC URL : jdbc:hsqldb:[PATH_TO_DB_FILES]/MYDATABASE i can understand 'PATH_TO_DB_FILES' means we need to specify the path of hsqldb directory presents in jasperreport distrubtion. i tried in all aspects, i'm something doing wrong mentioning the database name and database path .. Can anyone tell me how to specify the ' PATH_TO_DB_FILES' and what is the database name to give , i would like to know the same in windows enviroment as well as linux environment ? -teamireport Link to comment Share on other sites More sharing options...
mdahlman Posted September 29, 2009 Share Posted September 29, 2009 teamireport, You wrote that you started the HSQL DB Server (...\demo\hsqldb\runServer.bat). To connect to that you should be using the JDBC Driver "HSQLDB (server) (org.hsqldb.jdbcDriver)". The default url is fine: jdbc:hsqldb:hsql://localhost. The username is sa; there is no password, but tick "Save password" anyway. And you should be all set. Regards,Matt Link to comment Share on other sites More sharing options...
teamireport Posted September 30, 2009 Author Share Posted September 30, 2009 Thanks for your responses Matt ! It's worked Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now