I have just installed metabase and was testing the .jar file with SQL SERVER 2008 on my local network (i know it's old but can't do much about it).
I can successfully connect to it with PowerBI, DBeaver and Azure Data Studio. But I can't find a way to connect it in Metabase. It times out.
I gave up, downloaded Apache Superset and it just worked...
Then I tried a little more... I'm new to DBs and, as far as I know, mine uses dynamic ports but I tried the following
SELECT DISTINCT local_tcp_port FROM sys.dm_exec_connections WHERE local_tcp_port IS NOT NULL
I put the result port on Metabase connection form and FINALLY it didn't time out and gave usefull error message. TLS10 not accepted. I used the solution below
mattocchi
Jun '22
TLS10 can be disabled by default form Java Secuity configuration, if you are using Dockerized metabase you can re-enable TLS10 by:
docker exec -it metabase /bin/bash
than
cd /opt/java/openjdk/conf/security/
cp java.security java.security.bak #backup
vi java.security #edit and re-enable it removing form the configuration jdk.tls.disabledAlgorithms=
than you can restart Dockerized Metabase:
docker restart metabase
thanks for letting us know, remember that TLS 1.0 is deprecated as it's insecure for today's standards. I would recommend that you forcefully enable TLS 1.2+
Put the instance name in the 'Database instance name' box. Remove the instance name (SQLEXPRESS) from the host.
You should be able to leave the port empty.
Change the database name - you shouldn't be using 'Master'
With SQL Server, it's always easier to use a native connection or ODBC. In Metabase you can only use JDBC which is always more work.