Error connecting to MSSQL data source

Grafana v10.3.3 (252761264e) Windows

  • What are you trying to achieve?
    Add a MSSQL Data Source

  • How are you trying to achieve it?
    Add new data source

  • What happened?
    It says failed to connect to server

  • What did you expect to happen?
    Data source added

  • Can you copy/paste the configuration(s) that you are having problems with?

Probably best not to use sa.
Create a swlmuser called grafana give it real only perms to db, or add it to a read only group.

Sql auth is inherently weak, suggest you use a real ad user.

Still cannot connect

Check this





still cannot connect

this might help

so basically your issue is really not grafana issue it is a network connection issue to a sql server instance, multiple factors that you need to sort out on the SQL side.

also could be you need a comma before the port instead of colon :


Also always restart sql server service for the specific instance (careful not restart other instances) for changes to take full effect