Here's a quick and dirty hint in a direction that will work.However, Peso has some better methods that he's posted. I'd look around for those for more permanent and elegant solutions.This only adds the hour to the date, but you get the idea.select dateadd(hh,convert(int,left(convert(varchar(8),last_occurrence_time),2)),convert(varchar(8),last_occurrence_date)) from msdb..sysalerts where last_occurrence_date <> 0
An infinite universe is the ultimate cartesian product.