chrissparkle
Programmer
I have this line of code in a proc:
How can I get the DateDiff function to output the actual value when inside quotes? At the moment it just outputs the raw sql??
Code:
CASE WHEN DATEDIFF(n, mbx.date_received, GETDATE()) BETWEEN 0 AND 10 THEN 'DATEDIFF(n, mbx.date_received, GETDATE()) min ago' END as USE_DATE
How can I get the DateDiff function to output the actual value when inside quotes? At the moment it just outputs the raw sql??