Metric Request Error - 500 internal server error in MicrosoftSqlServer in PANEL

Getting Metric Request Error while using MicrosoftSQL Server data source. Need help with this please !

Points:
The query is fine when being executed in localhost of Grafana
The issue is coming for one specific data source
The issue is coming for this specific data source even before query is added (on loading/selection)
I am admin in the grafana account
I have full access to the server & database on microsoft sql server that i am attempting to connect to
SQL server verion: 2012
Grafana Version: 7.0.3

What could be the issue for this ?

The issue is the data source had server filled but the database was empty/deafult. On filling the data base as well, this issue got resolved.