Viewing post 1 (of 1 total)
Hi dilipd006,
I have debugged your code and the problem lies with the declaration of your parameters.
You must explicitly convert them to date e.g.
DECLARE @fromdate DATETIME = CONVERT(DATE,'2012-05-24');
DECLARE @todate DATETIME =...
May 30, 2012 at 8:15 am
#1494697