SELECT
[Day],[Date]
FROM
dbo.fnGetDatesforAday('2008/09/10', '2008/09/30',(
SELECT
CASE @Monday
WHEN 0 THEN 'Monday'
WHEN 1 THEN 'Tuesday'
ELSE 'Other'
END
)
)
It's a wild guess, I haven't executed it though.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions