Do you know why this advanced sql query:
SELECT
RTRIM(ID)
FROM
{TB}
WHERE {TB}.[COD] = @COD
When the Test button is clicked with "test1" in test value shows "Query returned no rows" but if the query is tested like this (with the parameter 'test1' directly passed:
WHERE {TB}.[COD] = 'test1'
the test query returns the result?
Are you passing values for the input parameters?
Please, check the follow pic:
Yes I have there "test1".
Can you take a pic from your test value?
Note: just more information
Edit:
Please, check this documetn Building Dynamic SQL Statements the Right Way
Edit 2:
Try use LIKE instance of =
Hi John,
Are you using a external database ou platform repository?
Are you sure about the query is correct and the output structure is accordingly?
John Jake wrote:
I think you should have to check once your input variable expand inline property.
it should to be set no.
Hope this will help you.
Regards
Rahul Sahu
Hello,
Please check the data type of the input parameter you are passing and also check if that input value is relevant to the data type of the entity attribute as well.
Hope it works!