|change report query based on connected database [message #721756]
||Fri, 02 September 2011 14:23
| Alessio Pollero
Registered: August 2011
I'm developing some report with BIRT, each report have a Dataset with an SQL query inside, then from my Java application through Report Engine API i pass the JDBC connection object with a code like this : |
The database connection that the java application pass to the report task could be linked to different database server (mainly MySQL, PostgreSQL and Sql Server ), since some query are quite complex some times i need to change some expression in the query based on the database server type linked by the connection because the syntax can vary from database server to database server ...
Is there a way for change the entire query or a part of it based on the database server type linked to the connection ?
How can i do it ?
Powered by FUDForum
. Page generated in 0.01619 seconds