Avatar of Butler Bros
Butler Bros
Flag for United States of America asked on

How do I pass in 2 parameters to a SSRS report, that's based on a SQL function query?

I'm trying to design a report based on a function query in our ERP. (as in, under Database/Programmability/Functions/Table-valued Functions)

The FROM clause is this:

FROM p21_fnt_invoice_hdr('COMPNAME', @ls_begin_invoice_no,@ls_end_invoice_no, 0, 9999, '0', 'ZZZZZZZZZZ', 0, 999999999, ' ', 'ZZZZZZZZZZ', ' ', 'ZZZZZ', 0,999999999, {ts '1900-01-01 00:00:00.000'}, {ts '2019-12-05 23:59:59.000'}, 'Y', 'N', 'N','B','Y', 'N','','N')

Open in new window


If I run this in SSMS, providing the two parameters (@ls_begin_invoice_no  and  @ls_end_invoice_no),  it returns the data as expected.

But, I cannot figure out how to make SSRS work?

I get no results if I try & apply parameters..
No errors, just no results

thanks,

Rich
Microsoft SQL ServerSSRSSQL

Avatar of undefined
Last Comment
Butler Bros

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
lcohan

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Butler Bros

ASKER
abandoned that particular query, but good thanks for the direction.
Your help has saved me hundreds of hours of internet surfing.
fblack61