Organizational Research By

Surprising Reserch Topic

connect to sql server localdb jdbc


connect to sql server localdb jdbc  using -'I,installed,Microsoft,SQL,Server,2012,Express,localdb,on,my,system.

After,I,created,(and,started),a,Instance,(Test),with,an,database,(db1),I,tried,to,connect,with,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,SQL,Server,browser-Service,is,started

My,.NET,Framework,Version,is,4.0.2

'SQLCMD.EXE,-S(localdb)\Test',works,fine.
asked Oct 19, 2015 by mca.agarwal
edited Oct 19, 2015 by rajesh
0 votes
25 views



Related Hot Questions



Government Jobs Opening


...