I'm using this in the where statement feel like there should be another variable?
WHERE s.Polling.Node.Caption LIKE '%${SEARCH_STRING}%' OR s.Name LIKE '%${SEARCH_STRING}%'
So thinking about this more, you might be able just wrap the comparison fields in a ToLower() so you're forcing them to be the same.
Something like this may work:
WHERE ToLower(s.Polling.Node.Caption) LIKE ToLower('%${SEARCH_STRING}%') OR ToLower(s.Name) LIKE ToLower('%${SEARCH_STRING}%')
That's strange I didn't think the LIKE keyword was case sensitive... mind sharing the query? I'll see if I get the same behaviour and mess with it a bit.
I've never seen the search box be case-sensitive like that. I think it depends on your SQL collation as SWQL queries are converted to SQL.
Unless I'm misreading the question and you want the search to be case-sensitive?
So this was the search query
SELECTs.Polling.Node.Caption as [Node Name],'/Orion/images/StatusIcons/small-' + ToString(s.Polling.Node.StatusIcon) AS [_IconFor_Node Name], s.Polling.Node.DetailsUrl AS [_LinkFor_Node Name],s.Name, s.InstallDate as [Install Date], s.Publisher, s.VersionFROM Orion.AssetInventory.Software sWHERE s.Polling.Node.Caption LIKE '%${SEARCH_STRING}%' OR s.Name LIKE '%${SEARCH_STRING}%'
perfect that did the trick!
SELECTs.Polling.Node.Caption as [Node Name],'/Orion/images/StatusIcons/small-' + ToString(s.Polling.Node.StatusIcon) AS [_IconFor_Node Name], s.Polling.Node.DetailsUrl AS [_LinkFor_Node Name],s.Name, s.InstallDate as [Install Date], s.Publisher, s.VersionFROM Orion.AssetInventory.Software sWHERE ToLower(s.Polling.Node.Caption) LIKE ToLower('%${SEARCH_STRING}%') OR ToLower(s.Name) LIKE ToLower('%${SEARCH_STRING}%')
The deep down technical answer to why it behaves like this here and only on this table:
The SQL table [AssetInventory_Software] containing this info is NOT case sensitive. So I ran the query in SWQL studio and there it's case sensitive. In SWQL studio you can add "With querystats" to see the actual SQL query behind this: