ALTER PROCEDURE dbo.UserDairy @pToDate datetime AS SELECT * FROM tbl_UserDetail WHERE UDate BETWEEN @pToDate AND DATEADD(day, -5, @pToDate) ORDER BY UserID DESC RETURN
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)