Click here to Skip to main content
15,905,233 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am creating report with following Store Proc :
SQL
ALTER PROCEDURE [dbo].[Spstore]
    @Storeid  char(5),
	@startDate datetime,
	@endDate datetime
 
AS
BEGIN
 
SELECT * 
FROM  [dbo].[sales]
where
     Stor_id = @Storeid and

      ord_date >= @startDate AND
      ord_date <= @endDate
 
END

Above mentioned stored procedure I need to populate Storeid in drop down and startdate and enddate in text box (I have already accomplish this)

I have tried different way to do this but I am unsuccessful.

Any idea.
Posted
Updated 16-Jul-12 10:45am
v6
Comments
Sandeep Mewara 17-Jul-12 2:30am    
Not clear. What you have not accomplished and still struggling with?

1 solution

SQL
SELECT *
FROM  [dbo].[sales]
where
     Stor_id = @Storeid and

      ord_date between @startDate AND @endDate


May be u want this.
 
Share this answer
 
Comments
patelv61 17-Jul-12 8:48am    
while I am writing SSRS report I need Store_ID or number populate in drop down if you have any idea.
Thank you very much.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900