I installed Microsoft SQL Server 2012 Express localdb on my system.
After I created (and started) the instance (Test) with the database (db1), I tried to connect to my java-Applikation.
The driver ist "com.microsoft.sqlserver.jdbc.SQLServerDriver".
My connection string is: "jdbc: sqlserver: // (localdb) \ Test; databaseName = db1; schema = db1;"
Error (truncated): java.net.UnknownHostException: '(localdb)' named instance 'Test' Check UDP port 1434 Check if the SQL Server service browser is running
My version of .NET Framework 4.0.2
'SQLCMD.EXE -S (localdb) \ Test' works fine.
How can I solve this problem?
source share