Anonymous_User Absent Member.
Absent Member.
418 views

Event detail SQL query not working after upgrade to 8.2


How do we make this work with 8.2 of the NQCCDB? There is a red
squiggly line under ModificationTime, DataSourceName,Computer,EventMsg,
EventID, Event1 and ParentEventID. What are the updated values?
Thanks.



set nocount on
Select dateadd(second,ModificationTime,'01-01-1970')
,DataSourceName
,Computer
,EventMsg
,ModificationTime
,EventID
from Event1
where
datediff(minute,dateadd(second,ModificationTime,'01-01-1970'),dateadd(HOUR,4,
GETDATE())) between 0 and 6
and Status = 0
and ParentEventID IS NOT NULL
set nocount off

WHICH GAVE AN EVENT IN THIS FORMAT IN A TEXT FILE:
2014-10-21 03:56:31.000,qdbserver.qdb,servername,One or more disks has
exceeded a threshold setting (D:),1413863791,1404265


--
mcschall
------------------------------------------------------------------------
mcschall's Profile: https://forums.netiq.com/member.php?userid=4778
View this thread: https://forums.netiq.com/showthread.php?t=52052

0 Likes
1 Reply
Anonymous_User Absent Member.
Absent Member.

Re: Event detail SQL query not working after upgrade to 8.2


Resolved. Changed "Event1" to "ComputerEvent".


--
mcschall
------------------------------------------------------------------------
mcschall's Profile: https://forums.netiq.com/member.php?userid=4778
View this thread: https://forums.netiq.com/showthread.php?t=52052

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.