When trying to do a SQL query with the fn_ExtractField I am having trouble getting the CVE information from the dbo.bes_object_defs view. Unfortunately IBM does NOT support helping with any queries (relevance or SQL), and they suggested either getting professional services or going to the forum.
Has anyone else used the fn_ExtractFields to gather CVE information? Here is the query that sums up what I have tried so far. Source Severity and Source Release Date both work. None of the CVEs work.
SELECT
Sitename
,ID
,Name
,dbo.fn_ExtractField('Source Severity', 0,O.Fields) as [Severity]
,dbo.fn_ExtractField('Source Release Date', 0,O.Fields) as [Released]
,dbo.fn_ExtractField('CVE Names', 0,O.Fields) as [CVE1]
,dbo.fn_ExtractField('CVENames', 0,O.Fields) as [CVE2]
,dbo.fn_ExtractField('CVEID', 0,O.Fields) as [CVE3]
,dbo.fn_ExtractField('CVE ID', 0,O.Fields) as [CVE4]
,dbo.fn_ExtractField('CVE', 0,O.Fields) as [CVE5]
,dbo.fn_ExtractField('cve', 0,O.Fields) as [CVE6]
,dbo.fn_ExtractField('cve id', 0,O.Fields) as [CVE7]
,dbo.fn_ExtractField('cvenames', 0,O.Fields) as [CVE8]
FROM
[dbo].[BES_OBJECT_DEFS] O
WHERE
Sitename LIKE '%Vulnerabilities to Win%'
AND
ContentType = 0
AND
IsFixlet = 1
AND
NOT ParentID = 1
Anyone knows how to see a list of the field names that are available in a row/xml through the SQL, that would be amazing.
Thank you.
Chris