I have searched the better part of the day looking for an answer - can't believe it doesn't exist, either that or I just couldn't find it.
I am looking to get the browser type from the useragent field of an IIS Log.
I have it working in SQL using the following:
MainBrowser = case substring(dbo.cf_GetSplit(csuseragent, ';',2),1,3)
when '+U' then dbo.cf_GetSplit (dbo.cf_GetSplit(dbo.cf_GetSplit(csuseragent, ';',6),'+',4),
'/',1)
when '+MS' then 'Microsoft Internet Explorer'
else 'Unknown'
end,
However when I replace substring with Mid, cf_GetSplit with Split, case with If statments and the csuseragent with the correct field name I get:"This array must be subscripted For example Array.
Thanks,
Kevin.
I am looking to get the browser type from the useragent field of an IIS Log.
I have it working in SQL using the following:
MainBrowser = case substring(dbo.cf_GetSplit(csuseragent, ';',2),1,3)
when '+U' then dbo.cf_GetSplit (dbo.cf_GetSplit(dbo.cf_GetSplit(csuseragent, ';',6),'+',4),
'/',1)
when '+MS' then 'Microsoft Internet Explorer'
else 'Unknown'
end,
However when I replace substring with Mid, cf_GetSplit with Split, case with If statments and the csuseragent with the correct field name I get:"This array must be subscripted For example Array.
Thanks,
Kevin.