Extract SQL native query code from Orion Interfaces dashboard
{ queries which Orion is running to get bandwidth usage stats }
https://sccorion.sccgov.org/Orion/Interfaces/InterfaceDetails.aspx?NetObject=I:19622&view=InterfaceDetails
https://sccorion.sccgov.org/Orion/Interfaces/InterfaceDetails.aspx?NetObject=I:26138&view=InterfaceDetails
https://sccorion.sccgov.org/Orion/Interfaces/InterfaceDetails.aspx?NetObject=I:22266&view=InterfaceDetails
https://sccorion.sccgov.org/Orion/Interfaces/InterfaceDetails.aspx?NetObject=I:19356&view=InterfaceDetails
Honestly, you shouldn't use SQL to query this information directly because it comes from all over the database and won't be 'safe' if the underlying data structure changes after an upgrade/hotfix. Instead you should use the SolarWinds Query Language (SWQL) which speaks directly to the Orion API. Also, those pages (at least with no customizations) contains at least 9 different widgets). Do you have a specific one where you are trying to extract the data?