SCCM WOL waking PC's hour early.
First, Get rid of all the "dbo." from the query. Then, the dateadd is wrong here: DATEADD(HOUR,@__timezoneoffset,(SELECT dbo.v_ClientAdvertisementStatus.laststatustime)) AS 'Last Status Time' It should be: DATEADD(HOUR,@__timezoneoffset,v_ClientAdvertisementStatus.laststatustime) AS 'Last Status Time' I would make your "FROM" statement like so: FROM v_r_system and left join dbo.v_AdvertisementInfo instead. Also, your LEFT OUTER joins should just be LEFT joins. nick
January 24th, 2010 2:19am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics