Good day everyone,
I am working with SSRS 2008 with an Oracle datasource -
Need to give the report parameter for the OrgSequenceNumber ... but they only need to be able to give the first couple numbers ...in other words they want a "starts with" parameter. I know this is LIKE @Parameter + '%' -- but I keep getting an "invalid number" error from the datasource. Any idea what I'm doing wrong?
THIS WORKS--
But this DOES NOT...
When prompted I enter 16 as the parameter value and then I get the "ORA-01722:Invalid Number" error
I even tried...
The SHORT_ORGSEQNO field is a varchar(8) so there should be no need for the TO_CHAR, but I thought I'd try anything to get it working. I am missing something though -- anyone got any ideas?
Thanks in advance for any help!!
Sincerely
Brenda L.
I am working with SSRS 2008 with an Oracle datasource -
Need to give the report parameter for the OrgSequenceNumber ... but they only need to be able to give the first couple numbers ...in other words they want a "starts with" parameter. I know this is LIKE @Parameter + '%' -- but I keep getting an "invalid number" error from the datasource. Any idea what I'm doing wrong?
THIS WORKS--
Code:
SELECT DESCRIPTION, DAILY_INJ_DATE, METERED_VOL, INJ_TUBING_PRESS, INJ_FLUID_TYPE, SHORT_ORGSEQNO
from ODSVIEWS.ODSV_MONTHLY_INJ_REPORT
WHERE (SHORT_ORGSEQNO LIKE '16%')
But this DOES NOT...
Code:
SELECT DESCRIPTION, DAILY_INJ_DATE, METERED_VOL, INJ_TUBING_PRESS, INJ_FLUID_TYPE, SHORT_ORGSEQNO
from ODSVIEWS.ODSV_MONTHLY_INJ_REPORT
WHERE (SHORT_ORGSEQNO LIKE :OrgSeqNo + '%')
I even tried...
Code:
SELECT DESCRIPTION, DAILY_INJ_DATE, METERED_VOL, INJ_TUBING_PRESS, INJ_FLUID_TYPE, SHORT_ORGSEQNO
from ODSVIEWS.ODSV_MONTHLY_INJ_REPORT
WHERE (SHORT_ORGSEQNO LIKE TO_CHAR(:OrgSeqNo)+'%')
The SHORT_ORGSEQNO field is a varchar(8) so there should be no need for the TO_CHAR, but I thought I'd try anything to get it working. I am missing something though -- anyone got any ideas?
Thanks in advance for any help!!
Sincerely
Brenda L.