Link to home
Start Free TrialLog in
Avatar of dkim18
dkim18

asked on

SQL Server Reporting Services Query COMPLETE WHERE CLAUSE PARAMETER?

Hi,

Is it possible for me to pass the where clause to the Sql server report (dataset)?

Select * from where FromDate =@FromDate and ToDate =@ToDate AND strWhere


SOLUTION
Avatar of Howard Cantrell
Howard Cantrell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dkim18
dkim18

ASKER

How can I do that in the SSRS report?
Can you explain?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Addition to my previous comment. Both queries create a stored procedure. You can use the procedure in a dataset en the variables before the AS part of the query will turn up as paramaters in SSRS.
Avatar of dkim18

ASKER

Thanks everyone.

planocz's comment kicked me where to look.

eiramar,

That's exactly what I did.
Thanks again.