Quantcast
Channel: SQL Server Reporting Services, Power View 포럼
Viewing all articles
Browse latest Browse all 24955

How to run a procedure in SSRS

$
0
0

Hi,

I have a procedure which is something like this

Declare

@FiscalDay AsInt

@location AsINT

Select

*

From

EDW.Retail.TEDW_F_EMAIL_CAPTURE

Inner

Join

Edw

.Calendar.TEDW_D_DATE_TYPE_1

On

TEDW_F_EMAIL_CAPTURE.DATE_KEY= TEDW_D_DATE_TYPE_1.DATE_KEY

left

outerjoin

EDW

.Location.TEDW_D_LOCATION_TYPE_3

on

TEDW_D_LOCATION_TYPE_3.LOCATION_KEY_AS_WAS= TEDW_F_EMAIL_CAPTURE.LOCATION_KEY_AS_WAS

Where

case

when TEDW_D_LOCATION_TYPE_3.LOCATION_NUMisnull

then 1

else TEDW_D_LOCATION_TYPE_3.LOCATION_NUM

end=case

when TEDW_D_LOCATION_TYPE_3.LOCATION_NUMisnull

then 1

else @Location

end

And

TEDW_D_DATE_TYPE_1.DATE_KEY<= @FiscalDay

Declare

Now,i have to use this in ssrs dataset ,If i give @FiscalDay hardcoded as '20120524' then the report runs fine but gives me the values for only 5/24 irrespective of the day as it is hardcoded.But the problem is if i dont hardcode the date and want to get the values at runtime it gives me nothing.My date paramater is of datetime.

Can somebody help me

with this please?

Thanks

.


Viewing all articles
Browse latest Browse all 24955

Trending Articles