Reading data FROM SQL Database

I am using Sonarqube 9.0.1 on Windows server connected to a SQL Server database.
Sonarqube is working perfectly, no problems at all and I can see data in the Database.

Is there any documentation on how to query the database directly to pull out stats, much the same as the Sonarqube screens, total bugs, vulnerabilities, smells etc. I want to do this to pull some stats into an internal system.

Hi.

No, there isn’t. You must use the web API (the documation is available at http://your_server…/web_api), take a look at the api/measures and the api/metrics endpoints.

1 Like