Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
IF @d = 'd' select datediff(day, . . .)if @d = 'w' select datediff(week, . . .)orselect case @d when 'd' then datediff(day, . . ) when 'w' then datediff(day, . . ) end
KH[spoiler]Time is always against us[/spoiler]
harlingtonthewizard
Constraint Violating Yak Guru
352 Posts
Posted - 2008-08-04 : 08:33:32
This maybe useful?http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=107666