July 23, 2009 at 3:46 am
Hi
I Using Datetime parameters for check the querystring in SSRS 2005
Parameters are: rpFromDate and rpToDate
i am using following way
SELECT BILL_NO,BILL_DATE,BILL_AMOUNT FROM BILL_PROCESS
WHERE BILL_DATE BETWEEN '2009-07-01' AND '2009-07-23'
PARAMETERS ARE
SELECT BILL_NO,BILL_DATE,BILL_AMOUNT FROM BILL_PROCESS
WHERE BILL_DATE BETWEEN @rpFromDate AND @rpToDate
I am getting error if any way to avoid error to get result?
I am only want to use datetime parameter.
but i am used string for the date parameter getting answer is correct.
urjent pls
Gururajan.K
July 28, 2009 at 11:22 am
Can you post the actual error you are seeing? That would be rather helpful in answering your question.
One thing to note, since you're using between and note passing the time portion of the datetime, be aware you may be missing data.
between '2009-01-01' and '2009-01-31' misses anything that occurred after midnight (00:00:00.001) on Jan 31.
August 8, 2011 at 12:36 am
i m not getting ur point
August 8, 2011 at 12:51 am
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply