I'm getting this 2 errors repeatedly when I'm trying to connect eclipse with sql server through jdbc.Can anyone help me with this or explain why am GETTING THIS??
1.The TCP/IP connection to the host localhost, port 1433 has failed .2.The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption.
Thank you..
this is the code am working on.
String driver = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
Class.forName(driver).newInstance();
String connString ="jdbc:sqlserver://localhost:1433/databaseName=Engg_Street;instance=SQLSERVER;encrypt=true; trustServerCertificate=true";
String username = "Vijayalakshmi";
String password = "";
conn = DriverManager.getConnection(connString,username,password);