The Azure SQL Server allows accessing multiple SQL databases via the same instance, however it does not allow switching between the databases as they are separate physical instances (I guess).
When creating an MS SQL data source within Grafana, it currently asks for a database which you are running queries against.
What I would like to do would be to fill in the parametre effectively using a dashboard variable.
For example, the dashboard would do something like the following to get a list of databases populated in the dropdown list:
SELECT name FROM master.dbo.sysdatabases
This part works because we’re on the master database by default.
From here, I would then like to run queries against the specific database. Currently because the plugin source specifies the database at the plugin source level, I don’t think this is possible.
Would anyone happen to have any suggestions? Thinking currently might have to mirror the data into another database somewhere.