Do you define the start and end dates to calculate the number of days? If so
Code:
DECLARE @StartDate datetime, @EndDate datetime
SET @StartDate = '2007-01-01'
SET @EndDate = '2007-05-01'
SELECT DateDiff(d, @StartDate, @EndDate)
Which returns 120. Does this helps?
Cheers
_________________________
- Vijay G
Strive for Perfection