troubleshooting Question

SSRS Report Builder can't figure out how to set up parameters correctly

Avatar of biotec
biotec asked on
SSRSMicrosoft SQL Server 2008
1 Comment1 Solution129 ViewsLast Modified:
I have a simple stored procedure that has 4 date parameters @startdate, @enddate etc. They show in Report Builder but I can't figure out how to get the report to call them and force the user to enter their dates.

Second question is that my dates are unfortunately varchar(8) so I'm not sure how that will work in regards to entering dates in the parameters on the report server as 20150101?

CREATE PROCEDURE [dbo].[Dental_Assessment]

@dobstart	VARCHAR(8),
@dobend		VARCHAR(8),
@servdatestart   VARCHAR(8), 
@servdateend   VARCHAR(8) 

select distinct pp.person_id, p.last_name, p.first_name, p.person_nbr,p.date_of_birth  from 
patient_procedure pp 
inner join person p on pp.person_id = p.person_id
where pp.cpt4_code_id in ('D0191','D0120','D0145','D1050','D1080', 'D0140', 'D0160', 'D0170', 'D0171')
and p.date_of_birth between @dobstart and @dobend
and pp.service_date between @servdatestart and @servdateend
Russell Fox
Data Engineer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Top Expert 2014

The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros