Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SQLServer connection from Java. SQLServerException: TCP/IP connection to the host has failed  RSS feed

andrew ronchi
Ranch Hand
Posts: 50
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to connect to MS SQLServer 2012(localdb) from java. But I am facing same issue. I tried almost all the solutions mentioned on the sites.
1) My TCP/IP port is enable and it is 1433
2) I can access SQL server via SQL Server Management Studio (by both windows authentication and SQLServer authentication) but not using telnet command
3) It does not show 1433 port in the list when I execute netstat -a command
4) Connection failed on telnet command execution
5) Firewall is off
6) There is nothing under SQL server services in SQL server configur ation manager. It is totally empty.
7) start,stop,pause options are disabled in SQL Server Management Studio.

Any help would be greatly appreciated. Thank you.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!