I need to access to my solarwinds database using pyodbc. I am using Orion Log Viewer.
Why are you accessing the DB directly? The schema might change. Instead you should query it via the API.
There's some example python code here: GitHub - solarwinds/orionsdk-python: Python client for interacting with the SolarWinds Orion API