lkasper318
Posts: 7
Score: 0 Joined: 12/23/2005 Status: offline
|
Guys, I have made a report which replicates data from the Package Status inside the console, and I'm after the last 12 hours of status messages of data from the OSD/RIS information.... select v_StatusMessage.SiteCode, v_StatusMessage.Time, v_StatusMessage.MachineName, v_StatusMessage.Component, v_StatusMessage.MessageID, v_AdvertisementStatusInformation.MessageStateName, v_AdvertisementStatusInformation.MessageName from v_StatusMessage join v_AdvertisementStatusInformation on v_StatusMessage.MessageID = v_AdvertisementStatusInformation.MessageID where (v_StatusMessage.MessageID >= 11100 and v_StatusMessage.MessageID <= 11199) and v_StatusMessage.Time > DATEADD(ss,-@__timezoneoffset-(12*3600),GetDate()) and v_StatusMessage.SiteCode = 'P0A' order by v_StatusMessage.Time desc What I found was that it was giving me the last 12 hours of messages but the time seems to be 10 hours earlier... I know it has something to do with the timezoneoffset component of the DATEADD command, but I can't find any information regarding this command... Help? Thanks Lloyd
|