Depending on your goal, there may be other means to accomplish what you want to do.
If you are using MS-SQL 2k5 +, you can use a computed column. For example: "(CASE WHEN GetDate () <= DateAdd (hh, 1, DateCreated) THEN" I'm expired "ELSE" I'm still waiting for "END)"
Or you can create a view to perform similar transformations in the data.
This may not work on what you want to accomplish, but I decided that I would publish it anyway.
source share