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

Parameterized Query Issue with {?}


CodyKrafft

Recommended Posts

Hi, 

Querys take longer in Jaspersoft then other query tools. My current theory is parameters from Jaspersoft could be the thing throwing off the query optimizer and taking longer than DBViz because of the '?' that is passed in the query. 

Is there a way to substute the '?' for something else when the query is built?

Thanks,

 

Example

query in Dataset query and Dialog box 

SELECT TOP 1
COL1,

COL2,

COL3
FROM TABLE1
WHERE  COL1 = $P{P1} AND COL2 LIKE $P{P2}

Query Sent 

SELECT TOP 1
COL1,

COL2,

COL3
FROM TABLE1
WHERE  COL1 = 1 AND COL2 LIKE '?'

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...