iggythedog91 Posted April 30, 2020 Share Posted April 30, 2020 Hello guys,I have to MSSQL databases and I want to use query A or query B to select the good one.I used a parameter in the query :Select orderDate, totalSales FROM $P{Database}And I ran into this error : the variable of type "@P0" must be declaredDo you have any clue in order to solve this error ? Link to comment Share on other sites More sharing options...
Solution arnaudsimon091 Posted May 11, 2020 Solution Share Posted May 11, 2020 Hello Iggy,Your query should work if you use $P!{Database}, this syntax is mandatory.old question : https://community.jaspersoft.com/questions/1115771/how-set-sql-query-dataset-dynamically 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