Jump to content
We've recently updated our Privacy Statement, available here ×

Same Report called with different DB's


cpscdave

Recommended Posts

We have a live and devel version of a system thats intergrating with JasperServer.


Thusly we would like to be able to call the reports using either the devel database or the live databases with out having to have 2 versions of the report in JasperServer.


How can this be accomplished?
I tried adding a parameter to sepecify the database in the sql query eg

SELECT * FROM $P{DB}.table1

but it looks like its making the sql SELECT * FROM 'live_db'. and throws errors.

 

How can we get this to work???

Thanks

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 4 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...